-
Notifications
You must be signed in to change notification settings - Fork 544
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
Introduce accessing organization and user resident organization attributes for the authenticated user. #4915
Introduce accessing organization and user resident organization attributes for the authenticated user. #4915
Conversation
...rbon/identity/application/authentication/framework/handler/step/impl/DefaultStepHandler.java
Outdated
Show resolved
Hide resolved
...rbon/identity/application/authentication/framework/handler/step/impl/DefaultStepHandler.java
Outdated
Show resolved
Hide resolved
...rbon/identity/application/authentication/framework/handler/step/impl/DefaultStepHandler.java
Outdated
Show resolved
Hide resolved
16fe20a
to
d0ccd16
Compare
3ef1ada
to
de9853e
Compare
de9853e
to
69d513f
Compare
69d513f
to
17c874a
Compare
PR builder started |
PR builder completed |
17c874a
to
737859d
Compare
PR builder started |
...rbon/identity/application/authentication/framework/handler/step/impl/DefaultStepHandler.java
Outdated
Show resolved
Hide resolved
PR builder completed |
PR builder started |
PR builder completed |
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.
Approving the pull request based on the successful pr build https://github.com/wso2/product-is/actions/runs/6453734827
...rbon/identity/application/authentication/framework/handler/step/impl/DefaultStepHandler.java
Outdated
Show resolved
Hide resolved
...a/org/wso2/carbon/identity/application/authentication/framework/model/AuthenticatedUser.java
Outdated
Show resolved
Hide resolved
...rbon/identity/application/authentication/framework/handler/step/impl/DefaultStepHandler.java
Outdated
Show resolved
Hide resolved
...ation/authentication/framework/handler/request/impl/DefaultAuthenticationRequestHandler.java
Outdated
Show resolved
Hide resolved
...ation/authentication/framework/handler/request/impl/DefaultAuthenticationRequestHandler.java
Outdated
Show resolved
Hide resolved
...rbon/identity/application/authentication/framework/handler/step/impl/DefaultStepHandler.java
Outdated
Show resolved
Hide resolved
...a/org/wso2/carbon/identity/application/authentication/framework/model/AuthenticatedUser.java
Outdated
Show resolved
Hide resolved
1dc7425
to
7360e49
Compare
PR builder started |
PR builder completed |
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.
Approving the pull request based on the successful pr build https://github.com/wso2/product-is/actions/runs/6478030372
3f7a830
to
35b96bd
Compare
...rbon/identity/application/authentication/framework/handler/step/impl/DefaultStepHandler.java
Outdated
Show resolved
Hide resolved
...rbon/identity/application/authentication/framework/handler/step/impl/DefaultStepHandler.java
Outdated
Show resolved
Hide resolved
df8e755
to
ae978f2
Compare
Proposed changes in this pull request
A new attribute called
accessingOrganization
&userResidentOrganization
are introduced to theAuthenticatedUser
object, which keeps the ID of the organization where the B2B user is authorized to access and the organization where the user's identity is managed.For federated users who login via the organization SSO authenticator (for B2B use cases), the
user_organization
claim is set in the user attributes by the authenticator. That value is taken as the authorizedOrganization as that organization where the B2B user intend to access. For other cases like B2C logins,accessingOrganization
will be set to null.The
accessingOrganization
is reflected in the token table by the introduced column below.A new column
AUTHORIZED_ORGANIZATION
is introduced to theIDN_OAUTH2_ACCESS_TOKEN
table. That column implies the organization where the access token is bounded for access.Related Issues.
Following figure shows how the authenticated user at the framework level propagated to the OAuth layer for persitening and wise versa.
For B2B user logins, the authenticated user is treated as usual federated user. Two new attributes are added called accessingOrganization and userResidentOrganization. Those information are stored in access token, and should be able to build the exact similar authenticated user object from the data stored in the token table.