Client roles are now extracted from the access token and exposed to the custom LOAD_USER_ROLES_FUNCTION.
The proposed implementation refactors role extraction into a standalone function in the hope to make the code more readable and easier to test.
This PR also includes a .gitignore file with basic rules for ignoring unwanted artifacts. While not strictly related to the issue being addressed here, it seemed like a worthy addition. If you don't want it please ask for changes and I'll remove it.
This PR fixes #19
Client roles are now extracted from the access token and exposed to the custom
LOAD_USER_ROLES_FUNCTION
.The proposed implementation refactors role extraction into a standalone function in the hope to make the code more readable and easier to test.
This PR also includes a
.gitignore
file with basic rules for ignoring unwanted artifacts. While not strictly related to the issue being addressed here, it seemed like a worthy addition. If you don't want it please ask for changes and I'll remove it.