-
Notifications
You must be signed in to change notification settings - Fork 285
➕(backend) add django-lasuite
dependency
#839
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
671336c
to
9af8edd
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot reviewed 10 out of 10 changed files in this pull request and generated 1 comment.
Comments suppressed due to low confidence (1)
src/backend/core/tests/authentication/test_views.py:1
- The removal of authentication view tests may lead to reduced test coverage for the logout and callback flows. Please double-check that the new OIDC functionality from django-lasuite is comprehensively tested elsewhere.
Removed entire file
9af8edd
to
067b41f
Compare
067b41f
to
b724000
Compare
USER_OIDC_FIELD_TO_SHORTNAME: "given_name" | ||
USER_OIDC_FIELDS_TO_FULLNAME: "given_name,usual_name" | ||
OIDC_USERINFO_SHORTNAME_FIELD: "given_name" | ||
OIDC_USERINFO_FULLNAME_FIELDS: "given_name,usual_name" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know how to deal with it. Renaming it directly is a breaking change. Having both makes non sense has the new settings will overwrite the legacy one.
b724000
to
07911a8
Compare
Use the OIDC backend from the new library and add settings to setup OIDC token storage required for later calls to OIDC Resource Servers.
07911a8
to
2557c6b
Compare
Purpose
We work on a common library for our project (https://github.com/suitenumerique/django-lasuite), this is the first step on this.
Proposal
Use the OIDC backends from the new library.
OIDCAuthenticationBackend
django-lasuite
in thepyproject.toml
file