-
Notifications
You must be signed in to change notification settings - Fork 0
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
Define "generic" OpenID Connect init view #100
Conversation
This shim was needed for Django versions <= 3.1
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.
Looks good! Just one very minor question regarding request
usage. Also happy to have the tests for the init flow in the library now :)
One thing I was wondering: will this refactor require any changes on the side of the projects that use this library for the simple OIDC admin login flow (i.e. Open Zaak) or will the usage stay the same for those cases?
There should not be any impact! If there is, it's a bug. |
Ported the refactor from Open Forms. The library now ships an OIDCInit view that can handle multiple config classes (and in the future: instances of a single model), which all have tailored behaviours. The default AuthenticationRequestView is now 'just a flavour' of this generic behaviour. We track some additional state and perform additional redirect URL validation for those situations where stricter behaviour of the OIDC flow is desired.
c77c31f
to
1a033f8
Compare
Part of #99
This is a port of the
digid_eherkenning_oidc_generics
package in Open Forms, after its refactor.The approach taken there is more generic than just DigiD/eHerkenning and is useful for our "main" OIDC library.
Authentication backend + callback view will follow in separate PRs.