Skip to content
This repository has been archived by the owner on May 26, 2020. It is now read-only.

setting JWT_PAYLOAD_GET_USER_ID_HANDLER ignored #380

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

SPKorhonen
Copy link

User_id is read directly from payload leading to problems when using custom encoding on user_id field. Trivial fix: use api_settings.JWT_PAYLOAD_GET_USER_ID_HANDLER instead of payload.get('user_id').
Fixes issue #379

User_id is read directly from payload leading to problems when using custom useri_id
@blueyed
Copy link
Contributor

blueyed commented Sep 22, 2017

Can you add a test, please?

@SPKorhonen
Copy link
Author

Tests added to exercise the code paths within jwt_get_secret_key

@paolodamico
Copy link

Could you please merge this PR?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants