Skip to content
This repository has been archived by the owner on Mar 16, 2024. It is now read-only.

Extra fields in OIDCUser. #49

Closed
twistfire92 opened this issue May 24, 2022 · 4 comments
Closed

Extra fields in OIDCUser. #49

twistfire92 opened this issue May 24, 2022 · 4 comments
Labels
pull requests welcome An issue that we would like to see fixed, but don't have the time for to fix them personally

Comments

@twistfire92
Copy link
Contributor

JWT may contain additional data, but there is no field for this data in the OIDCUser model

@twistfire92
Copy link
Contributor Author

resolve with pull request #50

@twistfire92 twistfire92 reopened this Jun 2, 2022
@yannicschroeer yannicschroeer added the pull requests welcome An issue that we would like to see fixed, but don't have the time for to fix them personally label Jun 3, 2022
yannicschroeer pushed a commit that referenced this issue Jun 14, 2022
* add extra_fields to OIDCUser,
attributes to create_user method

* add extra_fields to OIDCUser,
attributes to create_user method

* add coma

Co-authored-by: m.krostelev <mikhailkrostelev@redcollar.ru>
@chirdeeptomar
Copy link

#50 Has a bug, please review my comment

@yannicschroeer
Copy link
Collaborator

#50 Has a bug, please review my comment

Which comment are you referring to?

@chirdeeptomar
Copy link

user.extra_fields[field] = decoded_token.get(field, None)
TypeError: 'NoneType' object does not support item assignment.

Initialize at line 275, user.extra_fields = {}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
pull requests welcome An issue that we would like to see fixed, but don't have the time for to fix them personally
Projects
None yet
Development

No branches or pull requests

3 participants