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 ))
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) ))
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 )
def build(self): return dict(appid=self.app.id, grant_type=value_of(self.grant_type))