Skip to content

Conversation

@Tejas-Kochar
Copy link

@Tejas-Kochar Tejas-Kochar commented Jan 8, 2026

Summary

  • Update M2M, WIF and U2M auth to use get_scopes instead of hard-coded values.

How is this tested?

  • Integration tests with mocking to ensure correct scopes propogated to token requests.

NO_CHANGELOG=true

@Tejas-Kochar Tejas-Kochar changed the title Custom scopes support in M2M and WIF Custom scopes support in M2M, WIF and U2M Jan 11, 2026
@github-actions
Copy link

If integration tests don't run automatically, an authorized user can run them manually by following the instructions below:

Trigger:
go/deco-tests-run/sdk-py

Inputs:

  • PR number: 1194
  • Commit SHA: 5031119382b9452741fffe580671039266f4d473

Checks will be approved automatically on success.

@Tejas-Kochar Tejas-Kochar requested review from hectorcast-db and removed request for parthban-db January 12, 2026 11:55
Copy link
Contributor

@hectorcast-db hectorcast-db left a comment

Choose a reason for hiding this comment

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

Incremental code is good. Let's add a bit more tests.


scopes = cfg.get_scopes()
if not cfg.disable_oauth_refresh_token:
if "offline_access" not in scopes:
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's add a couple of tests to (1) ensure that offline_access is added (2) only if not present.

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.

3 participants