Skip to content

1.2.0

Compare
Choose a tag to compare
@tschale tschale released this 21 Feb 18:15
· 31 commits to main since this release
08ee3be

Summary

This release allows pycloak to take the value of a claim in the token and save it directly at a field on the Django user model. Multiple claims can be mapped, the field on which the claim value is mapped can also be on a related model. An optional callback function can be specified to which the value is passed before storing it.

Three settings are added, PYCLOAK_CLAIM_TO_USER_MAPPING, PYCLOAK_CLAIM_SKIP_MISSING and PYCLOAK_CLAIM_IGNORE_VALIDATION_ERRORS. See #46 and the readme for more information.

What's Changed

Full Changelog: 1.1.0...1.2.0