Skip to content
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

Additional methods to set AuthContextClass from attributes #463

Open
dsarnstrom opened this issue Apr 24, 2024 · 0 comments
Open

Additional methods to set AuthContextClass from attributes #463

dsarnstrom opened this issue Apr 24, 2024 · 0 comments

Comments

@dsarnstrom
Copy link

There is a method of linking different IdP:s to AuthContextClassRef by mapping in config file. If same IdP can be used with multiple AuthContext, there needs to be other mechanisms to set the authContext

Code Version

All versions

Expected Behavior

Use of attributes from IdP to map AuthContext

Current Behavior

Only mapping of authContext and IdP is posible

Possible Solution

In frontend/saml2.py and an if statement. If the attribute "AuthContext", set the class_ref from the attribute.

if attributes.get("AuthContext") :
auth_info["class_ref"] = attributes.get("AuthContext")
elsif self.acr_mapping:
auth_info["class_ref"] = self.acr_mapping.get(
internal_response.auth_info.issuer, self.acr_mapping[""])
else:
auth_info["class_ref"] = internal_response.auth_info.auth_class_ref

Steps to Reproduce

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

No branches or pull requests

1 participant