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

Changes in 4.3.3

Latest
Compare
Choose a tag to compare
@postatum postatum released this 12 Aug 06:43
68d2a71

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.