Skip to content
This repository was archived by the owner on Feb 22, 2024. It is now read-only.

Conversation

@ntamas
Copy link

@ntamas ntamas commented Mar 5, 2016

The default implementation of jwt_payload_handler fails if the identity object has no id attribute, even though it was clearly an intention to fall back to a dictionary lookup when such an attribute does not exist. The current implementation fails because getattr throws an AttributeError for missing attributes if no default value is provided. The patch fixes this by providing a default value of None for the attribute lookup, preventing the exception.

@pall-valmundsson
Copy link

Same as #63

@ntamas
Copy link
Author

ntamas commented Mar 13, 2016

Closing this because of being a duplicate of #63.

@ntamas ntamas closed this Mar 13, 2016
@eLvErDe
Copy link

eLvErDe commented Jun 6, 2016

Hello,

I just ran into the same issue, please merge :)

Regards, Adam.

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

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants