示例#1
0
 def __str__(self):
     return str(self.query(
         appid=self.app.id,
         redirect_uri=self.redirect_uri,
         response_type=value_of(self.response_type),
         scope=value_of(self.scope),
         state=self.state
     ))
示例#2
0
 def __str__(self):
     return str(self.query(
         client_id=self.app.id,
         redirect_uri=self.redirect_uri,
         scope=','.join(map(value_of, self.scopes)),
         state=self.state or '',
         display=value_of(self.display),
         forcelogin=str(self.force_login).lower(),
         language=value_of(self.language)
     ))
示例#3
0
 def build(self):
     return dict(
         client_id=self.app.id,
         client_secret=self.app.secret,
         grant_type=value_of(GrantType.AUTHORIZATION_CODE),
         redirect_uri=self.redirect_uri,
         code=self.code
     )
示例#4
0
 def build(self):
     return dict(appid=self.app.id, grant_type=value_of(self.grant_type))