Skip to content

Prefer --url argument over empty auth token URL#1914

Merged
szokeasaurusrex merged 2 commits intomasterfrom
szokeasaurusrex/empty-org-auth-token-url
Jan 24, 2024
Merged

Prefer --url argument over empty auth token URL#1914
szokeasaurusrex merged 2 commits intomasterfrom
szokeasaurusrex/empty-org-auth-token-url

Conversation

@szokeasaurusrex
Copy link
Copy Markdown
Member

With this change, the CLI will treat an org auth token that specifies an empty URL the same way as an org auth token that is not specifying a URL at all.

We implemented this change in behavior by changing the type of the url in the AuthTokenPayload from an Option<String> to a String. In cases where the url previously would have been set to None, the url will now be set to an empty string. Uses of the AuthTokenPayload's url field have been updated to treat empty strings the way they previously treated None values.

Fixes GH-1913

Copy link
Copy Markdown
Contributor

@loewenheim loewenheim left a comment

Choose a reason for hiding this comment

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

Looks good to me!

@szokeasaurusrex szokeasaurusrex merged commit aa29477 into master Jan 24, 2024
@szokeasaurusrex szokeasaurusrex deleted the szokeasaurusrex/empty-org-auth-token-url branch January 24, 2024 13:43
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.

Prefer --url over empty Org Auth Token url

2 participants