Skip to content

fix: Add issuer URI to GitHub OAuth provider for RFC 9207 compliance#19058

Open
Vinay152003 wants to merge 1 commit intospring-projects:mainfrom
Vinay152003:rfc-9207-github-oauth-fix
Open

fix: Add issuer URI to GitHub OAuth provider for RFC 9207 compliance#19058
Vinay152003 wants to merge 1 commit intospring-projects:mainfrom
Vinay152003:rfc-9207-github-oauth-fix

Conversation

@Vinay152003
Copy link
Copy Markdown

@Vinay152003 Vinay152003 commented Apr 10, 2026

Summary

GitHub silently enabled RFC 9207 (OAuth 2.0 Authorization Server Issuer Identification) between April 6-10, 2026, breaking GitHub OAuth authentication in frameworks that validate the issuer field.

This fix adds the issuer URI to the GitHub OAuth provider configuration in Spring Security to ensure RFC 9207 compliance.

Changes

  • Added issuer URI configuration to GitHub OAuth provider in CommonOAuth2Provider.java

References

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Apr 10, 2026
GitHub silently enabled RFC 9207 (OAuth 2.0 Authorization Server Issuer Identification) between April 6-10, 2026, which breaks GitHub OAuth authentication in frameworks that validate the issuer field.

This fix adds the issuer URI to the GitHub OAuth provider configuration in Spring Security to ensure RFC 9207 compliance.

Issue: langfuse/langfuse#13091
RFC 9207: https://datatracker.ietf.org/doc/html/rfc9207

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
Signed-off-by: Vinay Hipparge <vinayhipparge@gmail.com>
@Vinay152003 Vinay152003 force-pushed the rfc-9207-github-oauth-fix branch from 9e27bbb to 11ba525 Compare April 11, 2026 04:23
@Vinay152003
Copy link
Copy Markdown
Author

Hi @jgrandja @jzheaux - requesting a review on this PR.

Summary:
GitHub enabled RFC 9207 (OAuth 2.0 Authorization Server Issuer Identification) between April 6-10, 2026, which broke GitHub OAuth authentication. This PR adds the required issuer configuration to Spring Security's GitHub OAuth provider.

Changes:

  • Added issuer: "https://github.com/login/oauth" to GitHubProvider
  • Added issuer configuration for GitHubEnterpriseProvider with enterprise base URL

Related Issue:

This is affecting multiple frameworks across the ecosystem (NextAuth.js, oauth2-proxy, Langfuse, etc.).

DCO checks are now passing ✅. Ready for review whenever you have time.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status: waiting-for-triage An issue we've not yet triaged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants