Package org.brickred.socialauth.exception

Examples of org.brickred.socialauth.exception.ProviderStateException


  @Override
  public AccessGrant verifyResponse(final Map<String, String> requestParams,
      final String methodType) throws Exception {
    if (!providerState) {
      throw new ProviderStateException();
    }

    LOG.debug("Running OpenID discovery");
    String reqTokenStr = "";
    if (this.scope != null) {
View Full Code Here


  @Override
  public AccessGrant verifyResponse(final Map<String, String> requestParams,
      final String methodType) throws Exception {
    LOG.info("Verifying the authentication response from provider");
    if (!providerState) {
      throw new ProviderStateException();
    }
    if (requestToken == null) {
      throw new SocialAuthException("Request token is null");
    }
    String verifier = requestParams.get(Constants.OAUTH_VERIFIER);
View Full Code Here

      LOG.debug(accessGrant);
      return accessGrant;
    }

    if (!providerState) {
      throw new ProviderStateException();
    }

    String code = requestParams.get("code");
    if (code == null || code.length() == 0) {
      throw new SocialAuthException("Verification code is null");
View Full Code Here

  @Override
  public Profile verifyResponse(final Map<String, String> requestParams)
      throws Exception {
    if (!providerState) {
      throw new ProviderStateException();
    }
    try {
      // extract the parameters from the authentication response
      // (which comes in as a HTTP request from the OpenID provider)
      ParameterList response = new ParameterList(requestParams);
View Full Code Here

    if (requestParams.get("error") != null
        && "access_denied".equals(requestParams.get("error"))) {
      throw new UserDeniedPermissionException();
    }
    if (!providerState) {
      throw new ProviderStateException();
    }
    String code = requestParams.get("code");
    if (code == null || code.length() == 0) {
      throw new SocialAuthException("Verification code is null");
    }
View Full Code Here

TOP

Related Classes of org.brickred.socialauth.exception.ProviderStateException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.