Repository navigation
Conversation
Add urn:openid:params:grant-type:ciba: send a backchannel authentication request (login_hint/id_token_hint, binding_message, acr_values, audience) and poll the token endpoint with auth_req_id until the user approves. The backchannel endpoint is read from discovery (incl. mTLS alias) or set via --backchannel-authentication-endpoint. Device and CIBA flows now share one polling loop, which also increases the interval on slow_down. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
This file contains hidden or 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
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.
Summary
Adds support for the OpenID Connect CIBA grant (
urn:openid:params:grant-type:ciba) in poll mode.backchannel_authentication_endpoint(read from discovery, including the mTLS alias, or set with--backchannel-authentication-endpoint). The client authenticates the same way as at the token endpoint. Supported parameters:scope,login_hint,id_token_hint,binding_message,acr_values,audience.auth_req_iduntil the user approves, retrying onauthorization_pending/slow_down.--backchannel-authentication-endpoint,--binding-message.pollToken). It replaces the device flow's ticker/goroutine and increases the interval by 5s onslow_down(RFC 8628).Ping and push delivery modes are not supported; they need a client notification endpoint.
Testing
TestCIBAGrantFlowruns the full flow against anhttptestserver.TestOAuth2ClientAuthenticationMethods/tls_client_authfails against the live demo server with "SSL certificate error". It fails the same way onmaster.