Пример #1
0
def list_identity_tokens():
    email = get_jwt_identity()
    return jsonify(get_stored_tokens(email)), 200
Пример #2
0
def list_identity_tokens():
    username = get_jwt_identity()
    return jsonify(get_stored_tokens(username)), 200
Пример #3
0
 def list_identity_tokens(identity):
     return jsonify(get_stored_tokens(identity)), 200
Пример #4
0
def list_tokens():
    # TODO you should put some extra protection on this, so a user can only
    #      view their tokens, or some extra privillage roles so an admin can
    #      view everyones token
    return jsonify(get_stored_tokens()), 200