-
Notifications
You must be signed in to change notification settings - Fork 841
feature: add flag omitIdTokenHintOnLogout in OIDC config #3711
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
base: develop
Are you sure you want to change the base?
Conversation
Omit id_token_hint if omitIdTokenHintOnLogout: true Default is false and adds the id_token_hint during logout
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.
Pull request overview
This PR adds a new configuration flag omitIdTokenHintOnLogout to OIDC identity provider settings, allowing users to control whether the id_token_hint parameter is included when performing RP-Initiated Logout at external OIDC providers. By default, the hint is included (false), but can be omitted by setting this flag to true.
Key changes:
- Added
omitIdTokenHintOnLogoutBoolean field toOIDCIdentityProviderDefinitionwith proper getter/setter, equals, hashCode, and toString implementations - Updated logout URL construction logic in
ExternalOAuthLogoutSuccessHandlerto conditionally omit the id_token_hint parameter based on the new flag - Added deserialization support in
OauthIDPWrapperFactoryBeanto load the configuration from identity provider definitions
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
model/src/main/java/org/cloudfoundry/identity/uaa/provider/OIDCIdentityProviderDefinition.java |
Adds the new omitIdTokenHintOnLogout Boolean field with complete implementation including getter/setter, equals, hashCode, and toString methods |
server/src/main/java/org/cloudfoundry/identity/uaa/provider/oauth/ExternalOAuthLogoutSuccessHandler.java |
Updates logout URL construction to conditionally omit id_token_hint when the new flag is true |
server/src/main/java/org/cloudfoundry/identity/uaa/provider/oauth/OauthIDPWrapperFactoryBean.java |
Adds deserialization logic to read omitIdTokenHintOnLogout from provider configuration maps |
server/src/test/java/org/cloudfoundry/identity/uaa/provider/oauth/ExternalOAuthLogoutSuccessHandlerTest.java |
Adds test case verifying that id_token_hint is omitted when the flag is set to true |
model/src/test/java/org/cloudfoundry/identity/uaa/provider/OIDCIdentityProviderDefinitionTests.java |
Updates equality test to include the new field |
uaa/src/test/java/org/cloudfoundry/identity/uaa/mock/providers/IdentityProviderEndpointDocs.java |
Documents the new configuration parameter for API documentation |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
...java/org/cloudfoundry/identity/uaa/provider/oauth/ExternalOAuthLogoutSuccessHandlerTest.java
Show resolved
Hide resolved
...ain/java/org/cloudfoundry/identity/uaa/provider/oauth/ExternalOAuthLogoutSuccessHandler.java
Outdated
Show resolved
Hide resolved
...r/src/main/java/org/cloudfoundry/identity/uaa/provider/oauth/OauthIDPWrapperFactoryBean.java
Show resolved
Hide resolved
…uth/ExternalOAuthLogoutSuccessHandler.java ok, good to know Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
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.
Pull request overview
Copilot reviewed 6 out of 6 changed files in this pull request and generated 3 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
...rc/test/java/org/cloudfoundry/identity/uaa/provider/OIDCIdentityProviderDefinitionTests.java
Show resolved
Hide resolved
...src/test/java/org/cloudfoundry/identity/uaa/mock/providers/IdentityProviderEndpointDocs.java
Show resolved
Hide resolved
model/src/main/java/org/cloudfoundry/identity/uaa/provider/OIDCIdentityProviderDefinition.java
Show resolved
Hide resolved
it is scary, but the inital code was generated by copilot, then review done and improved, but all from copilot
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.
Pull request overview
Copilot reviewed 6 out of 6 changed files in this pull request and generated no new comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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.
Pull request overview
Copilot reviewed 6 out of 6 changed files in this pull request and generated no new comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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.
Pull request overview
Copilot reviewed 6 out of 6 changed files in this pull request and generated no new comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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.
Pull request overview
Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
...src/test/java/org/cloudfoundry/identity/uaa/mock/providers/IdentityProviderEndpointDocs.java
Show resolved
Hide resolved
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.
Pull request overview
Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
feature: add flag omitIdTokenHintOnLogout in OIDC config
Omit id_token_hint if omitIdTokenHintOnLogout: true Default is false and adds the id_token_hint during logout