Remove @onecx/keycloak-auth
In v6 of libs, the @onecx/keycloak-auth package has been removed and replaced with @onecx/angular-auth.
Update module imports
-
Install the
@onecx/angular-authpackage (if not already installed)npm install @onecx/angular-auth -
Replace all imports of
KeycloakAuthModulefrom@onecx/keycloak-authwithAngularAuthModulefrom@onecx/angular-auth. -
Replace
KeycloakAuthModulewithAngularAuthModule.
Update Packages
After removing @onecx/keycloak-auth, keycloak-angular is no longer required and can be removed (unless your application still uses it directly). Update your dependencies as follows:
npm uninstall --save @onecx/keycloak-auth
npm uninstall --save keycloak-angular
|
If you use Keycloak as your identity provider and want to keep using it with the new authentication module, you may need to install Check whether your application still requires
|