Skip to content

Custom Authentication Schemes-2 #1587 - 1#1589

Open
adk-bot wants to merge 2 commits into
mainfrom
agent-changes-20260409-200931
Open

Custom Authentication Schemes-2 #1587 - 1#1589
adk-bot wants to merge 2 commits into
mainfrom
agent-changes-20260409-200931

Conversation

@adk-bot

@adk-bot adk-bot commented Apr 9, 2026

Copy link
Copy Markdown
Collaborator

1. Custom Authentication Schemes

Doc file: docs/tools-custom/authentication.md

Current state:

The docs/tools-custom/authentication.md document describes standard OpenAPI authentication schemes (API Key, HTTP, OAuth2, OpenID Connect) but does not mention how to implement custom authentication schemes or that OAuth2Auth supports a nonce.

Proposed Change:

  1. Add a section explaining how to define custom authentication schemes by subclassing CustomAuthScheme (ensuring type_ has a default value).
  2. Explain that custom auth providers can now define a supported_auth_schemes property (returning a tuple of scheme types) on their BaseAuthProvider implementation for easier registration.
  3. Mention that OAuth2Auth now includes a nonce field, which can be used to securely bind the user's session to the authorization request during OIDC flows.

Reasoning:
The framework was expanded to support non-OpenAPI standard authentication flows via CustomAuthScheme and simplified provider registration. Documenting these features empowers developers to integrate with proprietary or legacy enterprise auth systems. The nonce addition is also an important security feature for OAuth/OIDC flows.

Reference: src/google/adk/auth/auth_schemes.py

@netlify

netlify Bot commented Apr 9, 2026

Copy link
Copy Markdown

Deploy Preview for adk-docs-preview ready!

Name Link
🔨 Latest commit d29fbbf
🔍 Latest deploy log https://app.netlify.com/projects/adk-docs-preview/deploys/6a3af63c9b394e00089021fe
😎 Deploy Preview https://deploy-preview-1589--adk-docs-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@jcwriter74 jcwriter74 self-assigned this Jun 9, 2026
@jcwriter74

Copy link
Copy Markdown
Collaborator

@jcwriter74 jcwriter74 closed this Jun 18, 2026
@jcwriter74 jcwriter74 reopened this Jun 23, 2026
@jcwriter74 jcwriter74 changed the title Update ADK doc according to issue #1587 - 1 Custom Authentication Schemes-2 #1587 - 1 Jun 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants