simple-oauth2
Advanced tools
Changelog
3.0.0
#260 Use @hapi/wreck v15. This version changes how a baseUrl is resolved against a path, affecting how auth.tokenHost
, auth.tokenPath
, auth.authorizeHost
and auth.authorizePath
are resolved when using the .getToken
methods. See @hapi/wreck breaking changes to better understand potential issues that may arise.
#260 Use new Node.js WHATWG URL api instead of the legacy url module. This change affects how auth.authorizeHost
and auth.authorizePath
are resolved when using the authorizationCode.authorizeURL
method.
#256 Users can override the grant_type
parameter when performing a token exchange throught the .getToken
method. Useful in cases where the auth server uses a value different from the standard.
#256 Token exchange methods no longer mutate provided arguments
#255 Follow up to 20 redirects by default
#200 #256 Change default multiple scope encoding from using comma to spaces on all token exchange methods
#88 Change JSON response parsing mode from smart
to strict
. Since the OAuth2 specification indicates only JSON responses are valid, any non-JSON response throws an error instead of resolving into a Buffer. Use http.json = true
to restore the previous behavior.
#270 All token exchange methods now accept an optional argument to override non-essential http options or read parsing options.
#268 All token exchange methods can be called without arguments
#263 Use @hapi/joi v16. No breaking changes are expected.
Changelog
2.2.0