Examples of OAuth2


Examples of org.brickred.socialauth.oauthstrategy.OAuth2

  public HotmailImpl(final OAuthConfig providerConfig) throws Exception {
    config = providerConfig;
    if (config.getCustomPermissions() != null) {
      this.scope = Permission.CUSTOM;
    }
    authenticationStrategy = new OAuth2(config, ENDPOINTS);
    authenticationStrategy.setPermission(scope);
    authenticationStrategy.setScope(getScope());
  }
View Full Code Here

Examples of org.brickred.socialauth.oauthstrategy.OAuth2

    super(providerConfig);
    ENDPOINTS.put(Constants.OAUTH_AUTHORIZATION_URL,"https://github.com/login/oauth/authorize");
    ENDPOINTS.put(Constants.OAUTH_ACCESS_TOKEN_URL,"https://github.com/login/oauth/access_token");
    AllPerms = new String[] {};
    AuthPerms = new String[] {};
    authenticationStrategy = new OAuth2(config, ENDPOINTS);
    authenticationStrategy.setPermission(scope);
    authenticationStrategy.setScope(getScope());

    PROFILE_URL = "https://api.github.com/user";
  }
View Full Code Here

Examples of org.brickred.socialauth.oauthstrategy.OAuth2

    super(providerConfig);
    ENDPOINTS.put(Constants.OAUTH_AUTHORIZATION_URL,"https://graph.qq.com/oauth2.0/authorize");
    ENDPOINTS.put(Constants.OAUTH_ACCESS_TOKEN_URL,"https://graph.qq.com/oauth2.0/token");
    AllPerms = new String[] { "get_user_info", "get_info" };
    AuthPerms = new String[] { "get_user_info", "get_info" };
    authenticationStrategy = new OAuth2(config, ENDPOINTS);
    authenticationStrategy.setPermission(scope);
    authenticationStrategy.setScope(getScope());

    PROFILE_URL = "https://graph.qq.com/oauth2.0/me";
  }
View Full Code Here

Examples of org.brickred.socialauth.oauthstrategy.OAuth2

    super(providerConfig);
    ENDPOINTS.put(Constants.OAUTH_AUTHORIZATION_URL,"https://api.weibo.com/oauth2/authorize");
    ENDPOINTS.put(Constants.OAUTH_ACCESS_TOKEN_URL,"https://api.weibo.com/oauth2/access_token");
    AllPerms = new String[] {};
    AuthPerms = new String[] {};
    authenticationStrategy = new OAuth2(config, ENDPOINTS);
    authenticationStrategy.setPermission(scope);
    authenticationStrategy.setScope(getScope());

//    PROFILE_URL = "https://api.weibo.com/2/account/get_uid.json"; //只是取uid,其他啥都拿不到
    PROFILE_URL = "https://api.weibo.com/2/users/show.json?uid=${uid}"; //只是取uid,其他啥都拿不到
View Full Code Here

Examples of org.brickred.socialauth.oauthstrategy.OAuth2

    super(providerConfig);
    ENDPOINTS.put(Constants.OAUTH_AUTHORIZATION_URL,"https://oauth.taobao.com/authorize");
    ENDPOINTS.put(Constants.OAUTH_ACCESS_TOKEN_URL,"https://oauth.taobao.com/token");
    AllPerms = new String[] {};
    AuthPerms = new String[] {};
    authenticationStrategy = new OAuth2(config, ENDPOINTS);
    authenticationStrategy.setPermission(scope);
    authenticationStrategy.setScope(getScope());

    PROFILE_URL = "http://gw.api.taobao.com/router/rest?method=taobao.user.get&fields=user_id&format=json";
  }
View Full Code Here

Examples of org.brickred.socialauth.oauthstrategy.OAuth2

        "https://graph.renren.com/oauth/authorize");
    ENDPOINTS.put(Constants.OAUTH_ACCESS_TOKEN_URL,
        "https://graph.renren.com/oauth/token");
    AllPerms = new String[] {};
    AuthPerms = new String[] {};
    authenticationStrategy = new OAuth2(config, ENDPOINTS);
    authenticationStrategy.setPermission(scope);
    authenticationStrategy.setScope(getScope());

    PROFILE_URL = "http://api.renren.com/restserver.do?method=";
  }
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.