Skip to content

OAuth2Provider: Add support for 'kid' (private_key_id) in JWT header …#117

Open
yannicktrinh wants to merge 1 commit into
mainfrom
YT/Add-support-for-'kid'-(private_key_id)-in-JWT-header-for-Google-Service-Account-(#70)
Open

OAuth2Provider: Add support for 'kid' (private_key_id) in JWT header …#117
yannicktrinh wants to merge 1 commit into
mainfrom
YT/Add-support-for-'kid'-(private_key_id)-in-JWT-header-for-Google-Service-Account-(#70)

Conversation

@yannicktrinh

Copy link
Copy Markdown
Contributor

…for Google Service Account

Commit message:
Refs #70

PR description:
Fixes #70

OAuth2Provider: Add support for 'kid' (private_key_id) in JWT header for Google Service Account (#70)

  • Add 'privateKeyId' property to OAuth2Provider class
  • Accept 'privateKeyId' parameter in OAuth2Provider constructor
  • Include 'kid' field in JWT header when generating JWT Bearer tokens for Google service accounts
  • This aligns with Google's service account OAuth2 specification for JWT header formation
  • The 'kid' value comes from the 'private_key_id' field in the service account JSON file

Reference: https://developers.google.com/identity/protocols/oauth2/service-account

…for Google Service Account

Commit message:
Refs #70

PR description:
Fixes #70

OAuth2Provider: Add support for 'kid' (private_key_id) in JWT header for Google Service Account (#70)
- Add 'privateKeyId' property to OAuth2Provider class
- Accept 'privateKeyId' parameter in OAuth2Provider constructor
- Include 'kid' field in JWT header when generating JWT Bearer tokens for Google service accounts
- This aligns with Google's service account OAuth2 specification for JWT header formation
- The 'kid' value comes from the 'private_key_id' field in the service account JSON file

Reference: https://developers.google.com/identity/protocols/oauth2/service-account
@yannicktrinh yannicktrinh self-assigned this Jun 16, 2026
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.

jwt header missing kid, for google service accounts?

1 participant