- Fix Joi schema missusage
- Fix access token expiration properties omission
- Ignore access token date properties when not available
- Add support to revoke accessToken and refreshToken in a single call with
revokeAll
- Replace internal request library to wreck
- Replace bluebird with native promise implementation
- Replace callback interface with async/await
- Improve integration tests coverage
- Add support to specify scopes as array in
getToken
method - Add support to empty strings and visual ASCII characters on
clientId
/clientSecret
options
- Update debug dependency
- Add support to encode the authorization headers
- Update dependencies
- Add Node 8 to test matrix
- Add support for custom idParamName in authCode.authorizeURL() method
- Upgrade dependencies, to avoid using outdated/vulnerable versions
- Add support to body encoding format in library requests
- Add missing documentation for module options
- Parse token payload response
expires_in
property as integer
- Fixed documentation for client option.
- Refactored test to use fixtures.
- Update code to comply with more linter rules.
- Fixed examples in README to return on error.
- Added a working example example.
- Clone params and configuration passed
- Changed public api to, to make it consistent. Changed shortcut names to full names.
- Changed public api to allow different sites for /authorize and /tokens
- Added strict schema validation to module options.
- Does not override expires_at property if passed into accessToken.create.
- Upgraded code to strict mode.
- Upgraded all the code base to es6.
- Updated linter settings to meet the new es6 code requirements.
- Fixed shared value for access token, causing tokens to be overriding.
- Replaced internal logger by the debug module logger.
- Fixed some project metadata.
- Added optional sending support to the body auth params.
- Updated license information.
- Updated main dependencies version.
- Fixed leaked token when a refresh token was used.
- Fixed error class prototype inheritance. Now inherits correctly from Error.
- Now all error states returned from the server, are rejected as HTTPError instances. (This allow to know what httpStatusCode was returned)
- Updated project dependencies.
- Added support for passing arguments to the refresh token action.
- Added project badges.
- Code general cleanup and applied code styleguide.
- Created CONTRIBUTING guides! (Separated from README)
- Fixed bug, which resolved promises even if the token wasn´t retrieved. #64
- Better documentation!
- Added support for promise based API
- Adds revocation token method
- Not using headers if access_token is defined as a part of the URL.
- Changes from Pascal Case to Camel Case in the API.
- Adds Bearer Header for requests.
- Now compatible with Github
- Updated name convention on using simple oauth2 configuration block.
- Token expiration is now dinamically defined through the expires_in field returned with the access token from the OAuth2 server
- Fixed missing Basic Auth that somehow is not created from the request library
- Fixed bug on AccessToken#expired() as it had the inverse logic
- AccessToken#refresh() now returns an AccessToken object
- Updated documentation
- Added Password credentials flow
- First version Node client for OAuth2