- Notifications
You must be signed in to change notification settings - Fork146
Releases: mulesoft-labs/js-client-oauth2
Changes in 4.3.3
68d2a71
Compare
1. Updated dependencies.
2. Preserve query string params inauthorizationUri
(Fixed#144 with#153).
Now whenauthorizationUri
contains contains query string parameters, they are preserved ongetUri
methods calls.
Affects methods:ClientOAuth2.token.getUri
,ClientOAuth2.code.getUri
.
E.g. havingauthorizationUri=https://example.com/foo?bar=qux
and callinggetUri
method, the output would be:
Before:https://example.com/foo?bar=qux?client_id=....
Now:https://example.com/foo?bar=qux&client_id=....
3. Do not send empty scopes to an auth server (Fixed#98 with#154).
Ifscopes
is set to""
or[]
then we send an empty string to an auth server. Ifscopes
is undefined (not set), then we don't send it at all.
Affects method:getUri
,ClientOAuth2.owner.getToken
,ClientOAuth2.credentials.getToken
,ClientOAuth2.jwt.getToken
,ClientOAuth2.token.getUri
,ClientOAuth2.code.getUri
.
Assets2
Uh oh!
There was an error while loading.Please reload this page.
Changes in 4.3.2
b2f7174
Compare
Assets2
Uh oh!
There was an error while loading.Please reload this page.
v4.3.0
2752e8b
Compare
- Updated dependencies
- Dropped Node 8 support
Assets2
Uh oh!
There was an error while loading.Please reload this page.
Make `getToken` fail when no token
Compare
Fixed
- getToken succeeds when token is not supplied#59
- updated dependencies (using Greekeeper onward)
Assets2
Uh oh!
There was an error while loading.Please reload this page.
Get URI Query
Compare
Fixed
- Merge query over default options with
getUri
methods
Assets2
Uh oh!
There was an error while loading.Please reload this page.
Code Flow Update
Compare
Changed
- Send authorization header with code flow instead of
client_secret
in the body - Merge the global and passed in
options
over the local request options (allowing you to override things likegrant_type
orresponse_type
) - Updated build and dependencies to use ES2015 language features (namely
Object.assign
)
Assets2
Uh oh!
There was an error while loading.Please reload this page.
Definition Tweaks
Compare
Fixed
- Tweak TypeScript definition - make
scope
an array of strings, andrequest
is optional in constructor
Assets2
Uh oh!
There was an error while loading.Please reload this page.
Allow `getToken` methods to receive object
Compare
Changed
- Allow the
getToken
method to receive the URI pre-parsed and as a partial URL object
Assets2
Uh oh!
There was an error while loading.Please reload this page.
TypeScript Definition
Compare
Added
- Publish a TypeScript definition for the library
Assets2
Uh oh!
There was an error while loading.Please reload this page.
Update `expiresIn`
Compare
Changed
- Update and document
expiresIn
for setting expiration as a number orDate
Assets2
Uh oh!
There was an error while loading.Please reload this page.