Skip to content
This repository has been archived by the owner on Jan 20, 2024. It is now read-only.

Releases: mulesoft-labs/js-client-oauth2

Changes in 4.3.3

12 Aug 06:43
68d2a71
Compare
Choose a tag to compare

1. Updated dependencies.

2. Preserve query string params in authorizationUri (Fixed #144 with #153).
Now when authorizationUri contains contains query string parameters, they are preserved on getUri methods calls.

Affects methods: ClientOAuth2.token.getUri, ClientOAuth2.code.getUri.

E.g. having authorizationUri=https://example.com/foo?bar=qux and calling getUri 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).
If scopes is set to "" or [] then we send an empty string to an auth server. If scopes 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.

Changes in 4.3.2

21 Jul 07:04
b2f7174
Compare
Choose a tag to compare
  • Fixed window.btoa call issue in Internet Explorer 11 and Edge (Chromium). Contributed reports and PRs: #150, #148, #78, #70

v4.3.0

08 May 06:49
2752e8b
Compare
Choose a tag to compare
  • Updated dependencies
  • Dropped Node 8 support

Make `getToken` fail when no token

02 Apr 19:12
Compare
Choose a tag to compare

Fixed

  • getToken succeeds when token is not supplied #59
  • updated dependencies (using Greekeeper onward)

Get URI Query

26 Apr 20:44
Compare
Choose a tag to compare

Fixed

  • Merge query over default options with getUri methods

Code Flow Update

22 Mar 18:46
Compare
Choose a tag to 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 like grant_type or response_type)
  • Updated build and dependencies to use ES2015 language features (namely Object.assign)

Definition Tweaks

24 Jan 18:04
Compare
Choose a tag to compare

Fixed

  • Tweak TypeScript definition - make scope an array of strings, and request is optional in constructor

Allow `getToken` methods to receive object

03 Jan 03:25
Compare
Choose a tag to compare

Changed

  • Allow the getToken method to receive the URI pre-parsed and as a partial URL object

TypeScript Definition

30 Dec 20:09
Compare
Choose a tag to compare

Added

  • Publish a TypeScript definition for the library

Update `expiresIn`

07 Nov 18:24
Compare
Choose a tag to compare

Changed

  • Update and document expiresIn for setting expiration as a number or Date