Skip to content

feat(auth): make idtoken stable#3821

Merged
alvarowolfx merged 14 commits intogoogleapis:mainfrom
alvarowolfx:feat-auth-stable-idtoken
Nov 26, 2025
Merged

feat(auth): make idtoken stable#3821
alvarowolfx merged 14 commits intogoogleapis:mainfrom
alvarowolfx:feat-auth-stable-idtoken

Conversation

@alvarowolfx
Copy link
Copy Markdown
Collaborator

Towards #3449

@codecov
Copy link
Copy Markdown

codecov bot commented Nov 17, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.04%. Comparing base (37aef82) to head (f92596c).
⚠️ Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3821      +/-   ##
==========================================
+ Coverage   95.03%   95.04%   +0.01%     
==========================================
  Files         161      161              
  Lines        6097     6097              
==========================================
+ Hits         5794     5795       +1     
+ Misses        303      302       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@alvarowolfx alvarowolfx marked this pull request as ready for review November 21, 2025 15:17
@alvarowolfx alvarowolfx requested review from a team November 21, 2025 15:18
Copy link
Copy Markdown
Collaborator

@coryan coryan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A number of nits and questions.

Copy link
Copy Markdown
Collaborator Author

@alvarowolfx alvarowolfx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

addressed some of the comments

coryan
coryan previously approved these changes Nov 21, 2025
Copy link
Copy Markdown
Collaborator

@coryan coryan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can merge as-is. Some small cleanups you may want to do before.

coryan
coryan previously approved these changes Nov 25, 2025
coryan
coryan previously approved these changes Nov 25, 2025

unstable_flags = join(" ", [
"--cfg google_cloud_unstable_tracing",
"--cfg google_cloud_unstable_id_token",
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remember to update the triggers (terraform apply) after merging these changes.

Comment on lines 27 to 28
//! let audience = "https://my-service.a.run.app";
//! let verifier = idtoken::verifier::Builder::new([audience]).build();
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems like this test executes some non-trivial code, please merge and (if needed) clean up afterwards .

//! # use google_cloud_auth::credentials::idtoken;
//! # use google_cloud_auth::credentials::idtoken::verifier::Verifier;
//! # use std::time::Duration;
//! # tokio_test::block_on(async {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ditto. Please fix (if needed) afterwards.

@alvarowolfx alvarowolfx merged commit 3c4b8d6 into googleapis:main Nov 26, 2025
29 checks passed
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.

2 participants