feat: Try to allow openid
All checks were successful
Build Docker / Build Docker (push) Successful in 2m55s
All checks were successful
Build Docker / Build Docker (push) Successful in 2m55s
This commit is contained in:
parent
fdc09029d7
commit
bfbd986469
@ -144,7 +144,7 @@ def revoke_token():
|
|||||||
|
|
||||||
|
|
||||||
@bp.route('/api/me')
|
@bp.route('/api/me')
|
||||||
@require_oauth('profile')
|
@require_oauth(['profile', 'openid'])
|
||||||
def api_me():
|
def api_me():
|
||||||
user = current_token.user
|
user = current_token.user
|
||||||
print(user.id, user.username)
|
print(user.id, user.username)
|
||||||
|
Loading…
Reference in New Issue
Block a user