-
Notifications
You must be signed in to change notification settings - Fork 26
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
🗃️ [#4246] Expand AuthInfo model to capture mandate context #4339
🗃️ [#4246] Expand AuthInfo model to capture mandate context #4339
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #4339 +/- ##
=======================================
Coverage 96.26% 96.26%
=======================================
Files 731 731
Lines 23756 23786 +30
Branches 2801 2803 +2
=======================================
+ Hits 22868 22898 +30
Misses 617 617
Partials 271 271 ☔ View full report in Codecov by Sentry. |
e66224c
to
3366046
Compare
For the reviewer, this relates to https://github.com/maykinmedia/authentication-context-schemas |
# deprecated! | ||
machtigen = models.JSONField( | ||
verbose_name=_("machtigen"), |
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 guess there's no way to extract things from this deprecated fields to set them to the mandate/authorizee fields?
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.
even worse - the data stored in there is just plain wrong now :)
* Added fields for the (optional) legal subject (authorizee) * Added fields for the (optional) acting subject (authorizee) * Added check constraints to enforce data integrity * Organized the admin in logical groups The authentication context data model identifies two parties: the representee and the authorizee. There is always an authorizee - it *can* be the same actor as the representee if no mandate is in involved. An authorizee has two aspects: legal subject and acting subject. There is always a legal subject. If no acting subject is provided, it is inferred from the legal subject. So, a simple DigiD login in this model is represented by a legal subject authorizee of type BSN. We still keep storing this data in the attribute + value fields, but in the event of a mandate, we will store the additional information for the legal/acting subject.
3366046
to
ff451e3
Compare
Partly closes #4246
Changes
The authentication context data model identifies two parties: the representee and the authorizee. There is always an authorizee - it can be the same actor as the representee if no mandate is in involved.
An authorizee has two aspects: legal subject and acting subject. There is always a legal subject. If no acting subject is provided, it is inferred from the legal subject.
So, a simple DigiD login in this model is represented by a legal subject authorizee of type BSN. We still keep storing this data in the attribute + value fields, but in the event of a mandate, we will store the additional information for the legal/acting subject.
Checklist
Check off the items that are completed or not relevant.
Impact on features
Release management
I have updated the translations assets (you do NOT need to provide translations)
./bin/makemessages_js.sh.sh
./bin/compilemessages_js.sh
Commit hygiene