예제 #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