Skip to content

Latest commit

 

History

History
152 lines (85 loc) · 6.8 KB

CHANGELOG.md

File metadata and controls

152 lines (85 loc) · 6.8 KB

2.2.1

Bug Fixes

#2 Builds library using Angular 7 package format for compatiblity with Angular 7+.

2.2.0

Features

#794 OktaAuthService.getUser only uses /userinfo endpoint to retrieve user claims. OktaAuthService.getUser should be the recommended method to acquire user information as idToken.claims may become stale due to data updating.

#867 The current instance of the OktaAuthService is passed to isAuthenticated callback function.

Bug Fixes

#867 Default onSessionExpired behavior is removed, as it was causing concurrency issues.

2.1.0

Features

#776 OktaAuthGuard now implements canActivateChild

2.0.0

Breaking Changes

#690

Features

  • OktaCallbackComponent will catch and display exceptions thrown from handleAuthentication()
  • 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 of localStorage. This fixes an issue which can occur when multiple instances of the app are loading at the same time.
  • OktaCallbackComponent uses window.location.replace() to complete the login flow after handleAuthentication 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 the OktaAuthService as the first argument, and the Angular Injector 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 string
  • setFromUri 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 to true, using the Authorization Code w/PKCE flow

Other

  • Upgrades @okta/okta-auth-js to version 3.0.0

1.4.0

Features

  • #648
    • Adds a default handler for onSessionExpired
    • Adds a new option isAuthenticated which works with onAuthRequired
    • Expose TokenManager
    • Adds documentation for postLogoutRedirectUri

1.3.1

Bug fixes

  • #646 - Fixes regression with AOT compilation. Also tested against Angular 9.

1.3.0

Features

1.2.3

Features

1.2.2

Features

  • ef10d85 - Support PKCE authorization flow

Other

  • 654550 - All configuration options are now accepted. See Configuration Reference. Camel-case (clientId) is now the preferred syntax for all Okta OIDC libraries. Underscore syntax (client_id) will be deprecated in a future release.

  • a2a7b3e - Configuration property scope (string) is deprecated in favor of scopes (array). Normalize config format for the properties responseType and scopes, used in get token flows. Fully support deprecated config properties request_type and scope as previously documented and used within the okta-angular samples.

1.2.1

Other

  • 0703aff - Relaxes peerDependency to include latest versions of Angular

1.2.0

Other

  • f972822 - Deprecates 'initAuth' method.

1.1.0

Features

  • 2ae1eff - Adds TokenManager configuration parameters.

1.0.7

Other

  • 2945461 - Updates @okta/configuration-validation version

1.0.6

Bug fixes

  • 6242f2d - Fixes an issue where the library was not correctly building the /dist output before publishing to npm.

1.0.5

Features

  • 29d04f6 - Adds configuration validation for issuer, clientId, and redirectUri when passed into the auth service.

Other

1.0.4

Bug fixes

  • 5862e32 - Fixes an issue where the library would enter an error state when attempting to renew expired tokens (errorCode: login_required).

1.0.3

Other

  • Updated @okta/okta-auth-js dependency to version 2.

1.0.2

Other

  • The supported range of Angular peer dependencies has been upgraded to include versions 4, 5, and 6. At the moment we only test on the latest stable version of Angular, currently version 6.