Examples of ProviderStateException


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

Examples of org.brickred.socialauth.exception.ProviderStateException

  @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

Examples of org.brickred.socialauth.exception.ProviderStateException

      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

Examples of org.brickred.socialauth.exception.ProviderStateException

  @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

Examples of org.brickred.socialauth.exception.ProviderStateException

    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
Copyright © 2018 www.massapi.com. 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.