コード例 #1
0
def get_oauthlib_core():
    """
    Utility function that take a request and returns an instance of
    `oauth2_provider.backends.OAuthLibCore`
    """
    validator = OAuth2V1Validator()
    server = oauth2.Server(validator)
    return OAuthLibCore(server)
コード例 #2
0
 def __init__(self, server=None):
     """
     :params server: An instance of oauthlib.oauth2.Server class
     """
     self.server = server or oauth2.Server(
         oauth2_settings.OAUTH2_VALIDATOR_CLASS())
コード例 #3
0
 def __init__(self, server=None):
     """
     :params server: An instance of oauthlib.oauth2.Server class
     """
     self.server = server or oauth2.Server(OAuth2Validator())
コード例 #4
0
 def __init__(self, server=None):
     self.server = server or oauth2.Server(OAuth2Validator())
コード例 #5
0
ファイル: provider.py プロジェクト: PeithVergil/authnado
 def __init__(self, executor):
     self.executor = executor
     self.server = oauth2.Server(AuthnadoValidator(self))