Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SNOW-1825476 Implement programmatic access token (PAT) #1298

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sfc-gh-pfus
Copy link
Collaborator

@sfc-gh-pfus sfc-gh-pfus commented Feb 3, 2025

Description

SNOW-1825476 Implemented PAT/programmatic access token support.

Checklist

  • Created tests which fail without the change (if possible)
  • Extended the README / documentation, if necessary

@sfc-gh-pfus sfc-gh-pfus force-pushed the SNOW-1825476-pat branch 12 times, most recently from 8c3e25f to 23bd952 Compare February 3, 2025 13:08
@sfc-gh-pfus sfc-gh-pfus marked this pull request as ready for review February 3, 2025 13:09
@sfc-gh-pfus sfc-gh-pfus requested a review from a team as a code owner February 3, 2025 13:09
@sfc-gh-pfus sfc-gh-pfus force-pushed the SNOW-1825476-pat branch 8 times, most recently from fa0c6a4 to 0e3f6c4 Compare February 4, 2025 11:16
requestMain.LoginName = sc.cfg.User
requestMain.Token = sc.cfg.Token
if sc.cfg.Password != "" && sc.cfg.Token == "" {
requestMain.Token = sc.cfg.Password
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is it validated that one of the parameters {token password} is not empty?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, it is validated on wiremock.

Copy link
Collaborator

Choose a reason for hiding this comment

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

It is possible to fail faster :), during validation.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Ok, right, done.

auth_test.go Show resolved Hide resolved
auth_test.go Show resolved Hide resolved
ci/test.bat Show resolved Hide resolved
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