Split shell and apps authentication
In OneCX libs v8, auth implementation classes were moved out of @onecx/angular-auth.
If your app imports auth implementation symbols directly from @onecx/angular-auth, your build will fail after upgrading to v8.
This split separates shell-specific authentication logic from regular application token-based authentication.
|
Shell usage: use |
What changed
The following symbols are no longer exported from @onecx/angular-auth:
-
AuthServiceWrapper -
provideAuthService -
KeycloakAuthService -
DisabledAuthService -
AuthService
In v8 these implementation APIs are provided by @onecx/shell-auth.
Onecx Angular applications
-
Use
@onecx/angular-authfor interceptor/token wiring (AngularAuthModule/provideTokenInterceptor) -
Uninstall
keycloak-jsdependency.npm uninstall keycloak-js
Onecx Standalone Applications Migration
-
If you use standalone-shell, replace shell auth implementation imports with
@onecx/shell-auth. -
Keep
AngularAuthModulefrom@onecx/angular-authfor regular application interceptor/token wiring. -
Add
@onecx/shell-authwith keycloak-js dependency only for standalone-shell authentication.