Skip to content

Add Credentials interface and reimplement PAT authentication.#1260

Merged
renaudhartert-db merged 7 commits into
mainfrom
renaud-hartert_data/auth1
Aug 11, 2025
Merged

Add Credentials interface and reimplement PAT authentication.#1260
renaudhartert-db merged 7 commits into
mainfrom
renaud-hartert_data/auth1

Conversation

@renaudhartert-db

@renaudhartert-db renaudhartert-db commented Aug 6, 2025

Copy link
Copy Markdown
Contributor

What changes are proposed in this pull request?

This PR adds the missing Credentials interface to the experimental auth package. That interface is meant to replace the current CredentialsProvider interface. The PR also re-implements PAT using this new interface.

This PR also moves the token cache in its own file to better isolate the package's main interfaces.

How is this tested?

Unit + integration tests.

NO_CHANGELOG=true

@parthban-db parthban-db left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM modulo comment.

Comment thread config/credentials/credentials.go
@github-actions

Copy link
Copy Markdown

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: 1260
  • Commit SHA: 25dc5ab44da69e53099b9529fb2e1b30777c0a5d

Checks will be approved automatically on success.

@renaudhartert-db renaudhartert-db added this pull request to the merge queue Aug 11, 2025
Merged via the queue into main with commit 743aa5f Aug 11, 2025
15 checks passed
@renaudhartert-db renaudhartert-db deleted the renaud-hartert_data/auth1 branch August 11, 2025 11:04
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