示例#1
0
def revoke_token(token,
                 token_type,
                 client_id=CLIENT_ID,
                 secret_key=SECRET_KEY):
    authenticator = ESIAuthenticator()
    return authenticator.revoke_token(token,
                                      token_type=token_type,
                                      client_id=client_id,
                                      secret=secret_key)
示例#2
0
def verify_access_token(access_token):
    authenticator = ESIAuthenticator()
    return authenticator.verify_access_token(access_token)
示例#3
0
def get_access_token(refresh_token,
                     client_id=CLIENT_ID,
                     secret_key=SECRET_KEY):
    authenticator = ESIAuthenticator()
    return authenticator.get_access_token(refresh_token, client_id, secret_key)
示例#4
0
def verify_authorization_code(authorization_code,
                              client_id=CLIENT_ID,
                              secret_key=SECRET_KEY):
    authenticator = ESIAuthenticator()
    return authenticator.verify_authorization_code(authorization_code,
                                                   client_id, secret_key)