예제 #1
0
 def get_auth_pipeline(self):
     return [
         OAuth2Login(AUTHORIZE_URL, client_id=CLIENT_ID, scope=SCOPE),
         OAuth2Callback(
             access_token_url=ACCESS_TOKEN_URL,
             client_id=CLIENT_ID,
             client_secret=CLIENT_SECRET,
         ),
         FetchUser()
     ]
예제 #2
0
 def get_auth_pipeline(self):
     return [
         OAuth2Login(
             authorize_url=self.authorize_url,
             client_id=self.client_id,
             scope='whoami',
         ),
         PhabricatorOAuth2Callback(
             access_token_url=self.access_token_url, ),
     ]
예제 #3
0
 def get_auth_pipeline(self):
     return [
         OAuth2Login(authorize_url=self.authorize_url, client_id=self.client_id, scope=SCOPE),
         OAuth2Callback(
             access_token_url=self.access_token_url,
             client_id=self.client_id,
             client_secret=self.client_secret,
         ),
         FetchUser(org=self.org),
         ConfirmEmail(),
     ]
예제 #4
0
 def get_auth_pipeline(self):
     return [
         OAuth2Login(client_id=self.get_client_id(),
                     authorize_url=self.authorize_url,
                     scope=self.scope),
         OAuth2Callback(
             access_token_url=self.access_token_url,
             client_id=self.get_client_id(),
             client_secret=self.get_client_secret(),
         ),
         FetchUser(version=self.version)
     ]
예제 #5
0
 def get_auth_pipeline(self):
     return [
         OAuth2Login(
             authorize_url=self.authorize_url,
             client_id=self.client_id,
             scope=self.scope,
         ),
         OAuth2Callback(
             access_token_url=self.access_token_url,
             client_id=self.client_id,
             client_secret=self.client_secret,
         ),
         FetchUser(
             client_id=self.client_id,
             client_secret=self.client_secret,
         ),
         ValidatePermissions(),
     ]