コード例 #1
0
ファイル: Google2Client.java プロジェクト: DevFactory/pac4j
 @Override
 protected void internalInit(final WebContext context) {
   super.internalInit(context);
   CommonHelper.assertNotNull("scope", this.scope);
   if (this.scope == Google2Scope.EMAIL) {
     this.scopeValue = this.EMAIL_SCOPE;
   } else if (this.scope == Google2Scope.PROFILE) {
     this.scopeValue = this.PROFILE_SCOPE;
   } else {
     this.scopeValue = this.PROFILE_SCOPE + " " + this.EMAIL_SCOPE;
   }
   this.service =
       new StateOAuth20ServiceImpl(
           new GoogleApi20(),
           new OAuthConfig(
               this.key,
               this.secret,
               computeFinalCallbackUrl(context),
               SignatureType.Header,
               this.scopeValue,
               null),
           this.connectTimeout,
           this.readTimeout,
           this.proxyHost,
           this.proxyPort,
           false,
           true);
 }
コード例 #2
0
ファイル: WordPressClient.java プロジェクト: papegaaij/pac4j
 @Override
 protected void internalInit() {
   super.internalInit();
   this.service =
       new ExtendedOAuth20ServiceImpl(
           new WordPressApi(),
           new OAuthConfig(
               this.key, this.secret, this.callbackUrl, SignatureType.Header, null, null),
           this.connectTimeout,
           this.readTimeout,
           this.proxyHost,
           this.proxyPort);
 }
コード例 #3
0
ファイル: LinkedIn2Client.java プロジェクト: rhudson/pac4j
 @Override
 protected void internalInit() {
   super.internalInit();
   CommonHelper.assertNotBlank("scope", this.scope);
   CommonHelper.assertNotBlank("fields", this.fields);
   StateApi20 api20 = new LinkedInApi20();
   this.service =
       new LinkedInOAuth20ServiceImpl(
           api20,
           new OAuthConfig(
               this.key, this.secret, this.callbackUrl, SignatureType.Header, this.scope, null),
           this.connectTimeout,
           this.readTimeout,
           this.proxyHost,
           this.proxyPort);
 }
コード例 #4
0
ファイル: OkClient.java プロジェクト: baxterj/pac4j
 @Override
 protected void internalInit(final WebContext context) {
   CommonHelper.assertNotBlank("publicKey", this.publicKey);
   super.internalInit(context);
 }