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

gandiv5: Add "Bearer" prefix to the auth header #2029

Merged
merged 1 commit into from Oct 7, 2023

Conversation

Christoph-D
Copy link
Contributor

@Christoph-D Christoph-D commented Oct 6, 2023

The "Bearer" prefix is required per
https://api.gandi.net/docs/authentication/ to declare the content of the Authorization header as a personal access token.

Without this change, the user has to specify GANDIV5_PERSONAL_ACCESS_TOKEN='Bearer 12341234' instead of GANDIV5_PERSONAL_ACCESS_TOKEN=12341234 which disagrees with the documentation and the existing test data.

This change is not backwards-compatible. This should be OK because the commit 113648a (#2007) which added support for personal access tokens was not in any release yet.

The "Bearer" prefix is required per
https://api.gandi.net/docs/authentication/ to declare the content of
the Authorization header as a personal access token.

Without this change, the user has to specify

  GANDIV5_PERSONAL_ACCESS_TOKEN='Bearer 12341234'

instead of

  GANDIV5_PERSONAL_ACCESS_TOKEN=12341234

which disagrees with the documentation and the existing test data.

This change is not backwards-compatible. This should be OK because the
commit 113648a which added support
for personal access tokens was not in any release yet.
Copy link
Member

@ldez ldez left a comment

Choose a reason for hiding this comment

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

LGTM, Thank you.

@ldez ldez added this to the v4.15 milestone Oct 7, 2023
@ldez ldez enabled auto-merge (squash) October 7, 2023 00:01
@ldez ldez merged commit 2140e6b into go-acme:master Oct 7, 2023
7 checks passed
@Christoph-D Christoph-D deleted the gandi-token branch October 7, 2023 08:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

None yet

2 participants