Package com.google.api.explorer.client.AuthManager

Examples of com.google.api.explorer.client.AuthManager.AuthCompleteCallback


    // Inform analytics that a user is requesting auth.
    final String scopesString = Joiner.on("; ").join(scopes);
    analytics.trackEventWithValue(AnalyticsEvent.AUTH_REQUEST, scopesString);

    authManager.requestAuth(service, scopes, new AuthCompleteCallback() {
      @Override
      public void complete(AuthToken token) {
        analytics.trackEventWithValue(AnalyticsEvent.AUTH_TOKEN, scopesString);
        display.setState(State.PRIVATE, requiredScopes, token.getScopes());
      }
View Full Code Here

TOP

Related Classes of com.google.api.explorer.client.AuthManager.AuthCompleteCallback

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.