Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Breaking Changes
#308 - Removed
jquery
andreqwest
httpRequesters#309 - Removed
Q
library, now using standard Promise. IE11 will require a polyfill for thePromise
object. Use ofPromise.prototype.finally
requires Node > 10.3 for server-side use.#310
postLogoutRedirectUri
will default towindow.location.origin
signOut
will revoke access token and perform redirect by default. Fallback to XHR (closeSession
) if no idToken.closeSession
for XHR signout without redirect or reload.revokeAccessToken
#311 -
parseFromUrl
now returns tokens in an object hash (instead of array). Thestate
parameter (passed to authorize request) is also returned.#313 - New option
secureCookies
, which istrue
by default. An HTTPS origin will be enforced unlesssecureCookies
is set tofalse
.#316 - Option
issuer
is required. Optionurl
has been deprecated and is no longer used.#317 -
pkce
option is nowtrue
by default.grantType
option is removed.#320 -
getWithRedirect
,getWithPopup
, andgetWithoutPrompt
previously took 2 sets of option objects as parameters, a set of "oauthOptions" and additional options. These methods now take a single options object which can hold all available options. Passing a second options object will cause an exception to be thrown.#321
#325 - Previously, the default
responseMode
for PKCE was "fragment". It is now "query". Unless explicitly specified using theresponseMode
option, theresponse_mode
parameter is no longer passed bytoken.getWithRedirect
to the/authorize
endpoint. Theresponse_mode
will be set by the backend according to the OpenID specification. Implicit flow will use "fragment" and PKCE will use "query". If previous behavior is desired, PKCE can set theresponseMode
option to "fragment".Other
#306 - Now using babel for ES5 compatibility. All polyfills have been removed.
#312 - Added an E2E test for server-side authentication (node module, not webpack).