示例#1
0
def oauth_authorization_code_verify(authorization_code):
    id, code = id_binary_decode(authorization_code)
    t = oauth_authorize_code.get(id)
    if t and t == code:
        return id
    return 0
示例#2
0
def oauth_authorization_code_verify(authorization_code):
    id, code = id_binary_decode(authorization_code)
    t = oauth_authorize_code.get(id)
    if t and t == code:
        return id
    return 0
示例#3
0
def oauth_access_token_verify(access_token):
    id, token = id_binary_decode(access_token)
    o = OauthAccessToken.get(id)
    if o and o.token == token:
        return o.user_id
    return 0
示例#4
0
def oauth_access_token_verify(access_token):
    id, token = id_binary_decode(access_token)
    o = OauthAccessToken.get(id)
    if o and o.token == token:
        return o.user_id
    return 0