Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Err_unknown_url_scheme issue #81

Open
karunanaik opened this issue Feb 4, 2019 · 0 comments
Open

Err_unknown_url_scheme issue #81

karunanaik opened this issue Feb 4, 2019 · 0 comments

Comments

@karunanaik
Copy link

karunanaik commented Feb 4, 2019

Hello,
The library throws an error when somebody clicks a phone or email link on the SSO page. The error is
ERR_UNKNOWN_URL_SCHEME
How do I handle this?
Below is my code

instantiateOauthManager(getOauthBuilder(authorizationUrl));

    OAuthManager.OAuthCallback<Credential> authorizationCallback = future -> {
      try {
        Credential credential = future.getResult();
        this.credential = credential;
      } catch (IOException e) {
        Log.e(LOG_TAG, "Error getting oauth2 ping sso credential. " + e.getMessage());
      } catch (CancellationException e) {
        Log.e(LOG_TAG, "Single sign on action has been cancelled by the user. " + e.getMessage());
      }
    };

    oauth.authorizeExplicitly(Constants.PING_SSO_OAUTH2_USERID, authorizationCallback, null);
@karunanaik karunanaik changed the title ERR_UNKNOWN_URL_SCHEME Err_unknown_url_scheme issue Feb 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant