-
-
Notifications
You must be signed in to change notification settings - Fork 244
Open
Description
It looks to me that this part is not yet implemented:
def jwt_required(fn):
@wraps(fn)
def wrapper(*args, **kwargs):
jwt_data = _decode_jwt_from_request(request_type='access')
ctx_stack.top.jwt = jwt_data
_load_user(jwt_data[config.identity_claim])
return fn(*args, **kwargs)
return wrapper
The upper code raises many different exceptions, but I don't see any code returning the errors (my own default error handling of restplus triggers 500 error every time).
The documentation states that:
If the access token is not valid for any reason (missing, expired, tampered with, etc) we will return json in the format of {‘msg’: ‘why accessing endpoint failed’} along with an appropriate http status code (generally 401 or 422).
Default callbacks are all provided, but never returned.
Am I wrong?
Thanks,
Meir Tseitlin
aqibgatoo
Metadata
Metadata
Assignees
Labels
No labels