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

Replace api_key querystring or body parameter by more secure header #26

Merged
merged 1 commit into from Jan 28, 2017

Conversation

ruimarinho
Copy link
Owner

Looks like Authy finally migrated away from the querystring/body parameter api_key and now uses an header for authentication.

@@ -64,11 +64,16 @@ export default class Client {

this.rpc = Promise.promisifyAll(request.defaults(_.defaultsDeep({
baseUrl: `${this.host}/protected/json/`,
qs: { api_key: this.key }
headers: {
Copy link
Contributor

@fixe fixe Jan 24, 2017

Choose a reason for hiding this comment

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

Move to L58?

Copy link
Owner Author

Choose a reason for hiding this comment

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

Fixed.

@ruimarinho ruimarinho force-pushed the enhancement/use-authy-api-key-header branch from 8339e1c to 9a48cb1 Compare January 24, 2017 23:30
@ruimarinho ruimarinho force-pushed the enhancement/use-authy-api-key-header branch from 9a48cb1 to 26befd7 Compare January 28, 2017 19:06
@ruimarinho ruimarinho merged commit da7f307 into master Jan 28, 2017
@ruimarinho ruimarinho deleted the enhancement/use-authy-api-key-header branch January 28, 2017 19:12
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.

None yet

2 participants