Skip to content

Conversation

@Tejas-Kochar
Copy link

@Tejas-Kochar Tejas-Kochar commented Dec 22, 2025

Summary

  • Introduce factory pattern for testability of PersistentAuth.
  • Pass scopes and disableOfflineAccess in U2M authentication instead of hard coded "all-apis".
  • only add "offline-access" if disableOfflineAccess is not set.

Testing

  • unit tests for different configurations of disableOfflineAccess in persistent_auth_test.go.
  • integration test (with mocking) to ensure configured scopes used for authentication inauth_u2m_test.go.

NO_CHANGELOG=true

@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-go

Inputs:

  • PR number: 1390
  • Commit SHA: fe702d29fda88c9e0e4e3884460263ffab2e6ac3

Checks will be approved automatically on success.

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