Excluding oauth token validation in the oauth callback endpoint

pull/143/head
Matheus Lima 2019-05-17 18:26:51 -03:00
parent aa73066d95
commit 5ae440373c
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ ONE_DAY = 86400
def check_oauth_token():
global_context.url = request.url
exclude_paths = ['/v1/device/code', '/v1/device/activate', '/api/account', '/v1/auth/token']
exclude_paths = ['/v1/device/code', '/v1/device/activate', '/api/account', '/v1/auth/token', '/v1/auth/callback']
exclude = any(request.path.startswith(path) for path in exclude_paths)
if not exclude:
headers = request.headers