FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Refeds entity category handling improvements by fredrikt · Pull Request #897 · IdentityPython/pysaml2 · GitHub

Refeds entity category handling improvements - #897

Open
fredrikt wants to merge 6 commits into
IdentityPython:masterfrom
fredrikt:ft-ec_improvements
Open

Refeds entity category handling improvements#897
fredrikt wants to merge 6 commits into
IdentityPython:masterfrom
fredrikt:ft-ec_improvements

Conversation

fredrikt commented Mar 3, 2023

Copy link
Copy Markdown
Contributor

Description

The feature or problem addressed by this PR

Complete the changes needed to entity category handling in order to support refeds personalized, pseudononymous and anonymous.

What your changes do and why you chose this solution

A new format for entity category restrictions was needed to support
being able to express that certain categories should not be "mixed"
(refeds personalized, pseudonymous, anonymous).

In discussions, it was determined that Pydantic was a suitable tool to
load such configuration in a way that made it convenient, and safe, to
work with.

This code is backwards compatible with the old entity categories module
data format (RELEASE and ONLY_REQUIRED, two dictionaries) but also adds
support for a new format, RESTRICTIONS which is a list of dicts that
Pydantic will marshal into EntityCategoryRule objects when loaded.

As often is the case when typing, the scope of the change spread a
little to related functions and classes.

Checklist

  • Checked that no other issues or pull requests exist for the same issue/change
  • Added tests covering the new functionality
  • Updated documentation OR the change is too minor to be documented
  • Updated CHANGELOG.md OR changes are insignificant

fredrikt and others added 6 commits March 3, 2023 12:27
A new format for entity category restrictions was needed to support
being able to express that certain categories should not be "mixed"
(refeds personalized, pseudonymous, anonymous).

In discussions, it was determined that Pydantic was a suitable tool to
load such configuration in a way that made it convenient, and safe, to
work with.

This code is backwards compatible with the old entity categories module
data format (RELEASE and ONLY_REQUIRED, two dictionaries) but also adds
support for a new format, RESTRICTIONS which is a list of dicts that
Pydantic will marshal into EntityCategoryRule objects when loaded.

As often is the case when typing, the scope of the change spread a
little to related functions and classes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL