This repository has been archived by the owner on Oct 24, 2024. It is now read-only.
Features
OktaCallbackComponent
will catch and display exceptions thrown fromhandleAuthentication()
onAuthRequired
callbacks will now receive the Angular injector as the 2nd parameter. This change allows logic using any services available within your application.
Bug Fixes
- Saved URI is now stored in
sessionStorage
instead oflocalStorage
. This fixes an issue which can occur when multiple instances of the app are loading at the same time. OktaCallbackComponent
useswindow.location.replace()
to complete the login flow afterhandleAuthentication
completes. This fixes an issue where the user could navigate back to the callback hander.
Breaking Changes
- Signature for
onAuthRequired
callback functions has changed. Callbacks will receive theOktaAuthService
as the first argument, and the AngularInjector
as the second argument. - Static initializer
OktaAuthModule.initAuth()
has been removed.OKTA_CONFIG
should be provided directly by your module. getFromUri
now returns an absolute URI as a stringsetFromUri
takes a string. If it is a relative path, it will be converted to an absolute URI before being saved.- Legacy config formats are no longer supported. See Configuration Reference for supported values.
- The
pkce
option now defaults totrue
, using the Authorization Code w/PKCE flow- Those using the (previous default) Implicit Flow should pass
pkce: false
to their config - See the @okta/okta-auth-js README regarding PKCE OAuth2 Flow for PKCE requirements
- Which include the Application settings in the Okta Admin Dashboard allowing for PKCE
- Those using the (previous default) Implicit Flow should pass
Other
- Upgrades
@okta/okta-auth-js
to version 3.0.0