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

fix(request): Move API token to Authorization header #10

Merged

Conversation

benmvp
Copy link
Contributor

@benmvp benmvp commented Mar 1, 2018

The v3 API Authentication docs indicate that the preferred approach for authenticating requests is to pass the OAuth token in the Authorization header instead of as a query parameter, so this makes that change.

Also adds prefer-const ESLint rule since eslint-config-evenbrite doesn't yet have it defined.

Fixes #9

The [v3 API Authentication docs](https://www.eventbrite.com/developer/v3/api_overview/authentication/#ebapi-authenticating-requests) indicate that the preferred approach for authenticating requests is to pass the OAuth token in the `Authorization` header instead of as a query parameter, so this makes that change.

Also adds `prefer-const` ESLint rule since `eslint-config-evenbrite` doesn't yet have it defined.
@benmvp benmvp mentioned this pull request Mar 2, 2018
@BenAtEventbrite BenAtEventbrite merged commit ed8df35 into eventbrite:master Mar 2, 2018
@benmvp benmvp deleted the token-authorization-header branch March 2, 2018 01:32
@BenAtEventbrite BenAtEventbrite added this to the Alpha milestone Apr 5, 2018
@ebtravis
Copy link
Collaborator

🎉 This PR is included in version 1.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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.

4 participants