Comment 0 for bug 878431

Revision history for this message
Liem Nguyen (liemmn) wrote : token_auth middleware: username -> name

Branch: stable/diablo

In auth_token.py (282):

verified_claims = {'user': token_info['access']['user']['username'],

should be:

verified_claims = {'user': token_info['access']['user']['name'],

Also, while touching the middleware, the _validate_claims function should use HEAD instead of GET for efficiency reason.