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

I am looking for a way to perform attribute query from the SP to the IDP not associated with a specific login session #912

Open
lee-elenbaas opened this issue Jun 12, 2023 · 1 comment

Comments

@lee-elenbaas
Copy link

I am looking for a way to perform attribute query from the SP to the IDP not associated with a specific login session
I did not found any way to do it outside of getting the attributes as part of a login process

and i need to be able to keep my cached copy of those values up to date on the SP side, and have it updated on the SP side automatically when they change on the IDP side

@c00kiemon5ter
Copy link
Member

Using a saml2.client.Saml2Client instance, you can invoke do_attribute_query(...), or try create_attribute_query(...) for a lower-level API. Check how the tests use those methods.

The SAML Response dictates for how long the attribute statement is valid; you can then chose to invalidate the session and request the user to re-authenticate. Keeping the subject's attributes up to date within a session is only possible by having the client query the attribute authority, but this is not how entities are setup most of the time.

It sounds like what you would want is similar to invoking the userinfo endpoint in OIDC, which would/should return fresh information about the user.

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

2 participants