validator.py 文件源码

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

项目:bridge-adaptivity 作者: harvard-vpal 项目源码 文件源码
def __init__(self):
        super(SignatureValidator, self).__init__()
        self.endpoint = SignatureOnlyEndpoint(self)
        self.lti_consumer = None
        self.cache = cache

    # The OAuth signature uses the endpoint URL as part of the request to be
    # hashed. By default, the oauthlib library rejects any URLs that do not
    # use HTTPS. We turn this behavior off in order to allow edX to run without
    # SSL in development mode. When the platform is deployed and running with
    # SSL enabled, the URL passed to the signature verifier must start with
    # 'https', otherwise the message signature would not match the one generated
    # on the platform.
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号