Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat: add support for capturing id token returned by Azure OIDC login#20991

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Draft
rowansmithau wants to merge3 commits intomain
base:main
Choose a base branch
Loading
fromrowansmithau/feat/add-oidc-id-token-env-var

Conversation

@rowansmithau
Copy link
Contributor

Reported by ent customer on ticket 4688. related thread:https://codercom.slack.com/archives/C014JH42DBJ/p1763983935459739

This PR adds theoauth_id_token column to theuser_links table and has Coder capture and store theid_token returned by Azure as part of the OIDC login process to the new column. This is needed because Azure provides both anaccess_token andid_token value in it's response to coderd, but the access token is a v1 token which has an audience and issuer which corresponds to microsoft graph, while the id token is issued against the customer tenant.

The reasoning behind this is the access token / v1 graph token is only able to be validated by microsoft, which means when other services within Coder make use of the Azure OIDC token, such as authenticating to Vault, this fails. Authenticating manually (decrypting TLS, capturing theid_token from the Azure response) using theid_token works as desired.

Ref:https://github.com/coder/registry/blob/main/registry/coder/modules/vault-jwt/main.tf#L62 andhttps://github.com/coder/registry/blob/main/registry/coder/modules/vault-jwt/run.sh#L119

There will also be a Terraform provider update which will be used to facilitate the second half of this.

@rowansmithaurowansmithau self-assigned thisDec 1, 2025
@rowansmithaurowansmithau added needs-triageIssue that require triage enhancement labelsDec 1, 2025
@rowansmithaurowansmithau changed the titlefeat: Add support for capturing id token returned by Azure OIDC loginfeat: add support for capturing id token returned by Azure OIDC loginDec 1, 2025
@rowansmithaurowansmithauforce-pushed therowansmithau/feat/add-oidc-id-token-env-var branch 5 times, most recently from6fef761 to17683bfCompareDecember 1, 2025 07:56
@matifalimatifali removed the needs-triageIssue that require triage labelDec 1, 2025
…DC_ID_TOKEN env var- Add oauth_id_token column to user_links table (migration 402)- Capture and store ID token during OIDC authentication- Implement token refresh with ID token preservation- Add obtainOIDCIdToken() function for token retrieval- Pass ID token to provisioner via proto metadata- Expose as CODER_WORKSPACE_OWNER_OIDC_ID_TOKEN environment variable- Fix OAuthIdToken -> OAuthIDToken field naming (Go conventions)- Add OAuthIDToken to all UpdateUserLinkParams/InsertUserLinkParams structs- Update TypeScript and Go proto bindings- Regenerate database queries with correct column orderingThis enables Azure OIDC authentication which requires the ID tokenfor subsequent API calls.
@rowansmithaurowansmithauforce-pushed therowansmithau/feat/add-oidc-id-token-env-var branch 3 times, most recently from74eaa4e tobc89d5fCompareDecember 1, 2025 10:07
@rowansmithaurowansmithauforce-pushed therowansmithau/feat/add-oidc-id-token-env-var branch frombc89d5f to2964b75CompareDecember 1, 2025 10:07
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@spikecurtisspikecurtisAwaiting requested review from spikecurtisspikecurtis will be requested when the pull request is marked ready for reviewspikecurtis is a code owner

@johnstcnjohnstcnAwaiting requested review from johnstcnjohnstcn will be requested when the pull request is marked ready for reviewjohnstcn is a code owner

At least 1 approving review is required to merge this pull request.

Assignees

@rowansmithaurowansmithau

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@rowansmithau@matifali

[8]ページ先頭

©2009-2025 Movatter.jp