check.py 文件源码

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

项目:otest 作者: rohe 项目源码 文件源码
def _func(self, conv):
        try:
            request = registration_request(conv)
        except NoSuchEvent:
            self._status = ERROR
        else:
            # 'offline_access only allow if response_type == 'code'
            try:
                req_scope = request['scope']
            except KeyError:
                pass
            else:
                if 'offline_access' in req_scope:
                    if request['response_type'] != 'code':
                        self._status = ERROR
                        self._message = 'Offline access not allowed for ' \
                                        'anything but code flow'

        return {}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号