Skip to content

Support id_token_hint on logout in OIDC integration - #1282

Open
spastorelli wants to merge 4 commits into
mainfrom
steeve/rnd-12626-add-support-for-id_token_hint-in-oidc
Open

Support id_token_hint on logout in OIDC integration#1282
spastorelli wants to merge 4 commits into
mainfrom
steeve/rnd-12626-add-support-for-id_token_hint-in-oidc

Conversation

@spastorelli

@spastorelli spastorelli commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

This PR aims to add support to the OIDC integration to skip the logout confirmation screen that some authentication providers show visitors, by passing the ID token issued at login back to the provider as an id_token_hint.

The changes in this PR relies on https://github.com/GitbookIO/gitbook-x/pull/25186 to be deployed first.

@changeset-bot

changeset-bot Bot commented Aug 27, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 7f83a96

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@gitbook/integration-oidc Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@pkg-pr-new

pkg-pr-new Bot commented Aug 27, 2026

Copy link
Copy Markdown

Open in StackBlitz

bun add https://pkg.pr.new/GitbookIO/integrations/@gitbook/api@1282

commit: 7f83a96

*
* TODO: drop this once `cookies` ships on the generated event type.
*/
type OIDCVisitorAuthenticationEvent = FetchVisitorAuthenticationEvent & {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will be deleted from this PR once https://github.com/GitbookIO/gitbook-x/pull/25186 lands

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

Successfully merging this pull request may close these issues.

2 participants