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

feat: use either Apikey or Bearer authorization header #74

Merged
merged 6 commits into from
Apr 12, 2024
Merged

Conversation

marcaurele
Copy link
Owner

What

Allow for authentication through either the legacy API key, or the Bearer PAT. Both should be provided still under the same environment key GANDI_KEY.

Looking at the existing values for both, the PAT is longer and therefore I suppose the type of token can be detected based on its length.

Closes #73

@marcaurele marcaurele marked this pull request as draft April 10, 2024 08:12
@marcaurele marcaurele changed the title feat: implement either Apikey or Bearer authentication feat: use either Apikey or Bearer authorization header Apr 12, 2024
@marcaurele marcaurele marked this pull request as ready for review April 12, 2024 21:39
@marcaurele marcaurele merged commit 3c3ff23 into main Apr 12, 2024
6 checks passed
@marcaurele marcaurele deleted the auth-pat branch April 12, 2024 21:39
@marcaurele marcaurele added the enhancement New feature or request label Apr 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Personal Access Token
1 participant