-
Notifications
You must be signed in to change notification settings - Fork 5
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
Tenant-scoped sessions #92
Merged
Merged
Conversation
This file contains 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
byewokko
commented
Oct 5, 2022
Further questions:
|
# Conflicts: # seacatauth/audit/codes.py # seacatauth/authz/utils.py # seacatauth/session/adapter.py
# Conflicts: # seacatauth/authz/resource/service.py
ateska
approved these changes
Nov 30, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Tenants in scope
OIDC authorize
scope
parameter now takes a list of requested tenants that should be accessible from the client session, e.g.Encoded
Specifying
tenant:*
in scope requests authorization for all the user's tenants.Specifying
tenant
in scope requests authorization for the user's last accessed tenant.Not including any tenants in the
scope
results in a session that has only access to global resources.Userinfo scope
In order to reduce the size of user info and ID token, only the essential details are included in userinfo response by default. Additional details must be requested in scope:
userinfo:username
includes usernameuserinfo:email
includes email addressuserinfo:phone
includes phone numberuserinfo:data
includes custom credential datauserinfo:authn
includes info about login factors and descriptorsuserinfo:*
includes all of the fields aboveChanges
BREAKING
Tenant-aware sessions require specifying tenant in authorization scope.authz:tenant:access
allows the user to enter any tenant with their global resources (solves Resource for access to all tenants #83).preferred_username
renamed tousername
. The original field is preserved for backward compatibility.phone_number
renamed tophone
. The original field is preserved for backward compatibility.