oauth1.py 文件源码

python
阅读 20 收藏 0 点赞 0 评论 0

项目:Sanic-OAuth 作者: Sniedes722 项目源码 文件源码
def error_uri(self):
        """The error page URI.
        When something turns error, it will redirect to this error page.
        You can configure the error page URI with Flask config::
            OAUTH1_PROVIDER_ERROR_URI = '/error'
        You can also define the error page by a named endpoint::
            OAUTH1_PROVIDER_ERROR_ENDPOINT = 'oauth.error'
        """
        error_uri = self.app.config.get('OAUTH1_PROVIDER_ERROR_URI')
        if error_uri:
            return error_uri
        error_endpoint = self.app.config.get('OAUTH1_PROVIDER_ERROR_ENDPOINT')
        if error_endpoint:
            return url_for(error_endpoint)
        return '/oauth/errors'
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号