Package com.google.api.gwt.oauth2.client

Examples of com.google.api.gwt.oauth2.client.AuthRequest


        signInLink.setText(loginInfo.getName());
        signInLink.setTitle("Sign out");
    }

    private void addGoogleAuthHelper() {
        final AuthRequest req =
            new AuthRequest(GOOGLE_AUTH_URL, GOOGLE_CLIENT_ID).withScopes(PLUS_ME_SCOPE);
        AUTH.login(req, new Callback<String, Throwable>() {
            @Override
            public void onSuccess(final String token) {
                if (!token.isEmpty()) {
                    greetingService.loginDetails(token, new AsyncCallback<LoginInfo>() {
View Full Code Here


  public void requestAuth(
      final ApiService service, final Set<String> scopes, final AuthCompleteCallback callback) {

    // TODO(jasonhall): Show some indication that auth is in progress here.
    String[] scopeArray = scopes.toArray(new String[] {});
    AuthRequest req = new AuthRequest(Config.AUTH_URL, Config.CLIENT_ID).withScopes(scopeArray);

    Auth.get().login(req, new Callback<String, Throwable>() {
      @Override
      public void onSuccess(String tokenString) {
        AuthToken token = new AuthToken(tokenString, scopes);
View Full Code Here

TOP

Related Classes of com.google.api.gwt.oauth2.client.AuthRequest

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.