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

setting JWT_PAYLOAD_GET_USER_ID_HANDLER ignored - #380

Open
SPKorhonen wants to merge 3 commits into
jpadilla:masterfrom
SPKorhonen:custom_user_id_handler
Open

SPKorhonen wants to merge 3 commits into
jpadilla:masterfrom
SPKorhonen:custom_user_id_handler

Conversation

@SPKorhonen

Copy link
Copy Markdown

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

blueyed commented Sep 22, 2017

Copy link
Copy Markdown
Contributor

Can you add a test, please?

@SPKorhonen

Copy link
Copy Markdown
Author

Tests added to exercise the code paths within jwt_get_secret_key

@paolodamico

Copy link
Copy Markdown

Could you please merge this PR?

This branch has not been deployed

No deployments
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