From a23e799314dd98c9bea1b0e486519b27d43513bb Mon Sep 17 00:00:00 2001 From: markuczy Date: Wed, 13 Mar 2024 12:12:14 +0100 Subject: [PATCH] feat: removed PIA references from keycloak-auth --- libs/keycloak-auth/package.json | 1 - libs/keycloak-auth/src/lib/keycloak-auth.module.ts | 4 ++-- libs/keycloak-auth/src/lib/token.interceptor.ts | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/libs/keycloak-auth/package.json b/libs/keycloak-auth/package.json index dc60297a..555f64ea 100644 --- a/libs/keycloak-auth/package.json +++ b/libs/keycloak-auth/package.json @@ -4,7 +4,6 @@ "peerDependencies": { "@angular/common": ">=15.2.7", "@angular/core": ">=15.2.7", - "@onecx/portal-integration-angular": "~4", "@onecx/angular-integration-interface": "~4", "keycloak-angular": "^13.0.0", "keycloak-js": "^18.0.0", diff --git a/libs/keycloak-auth/src/lib/keycloak-auth.module.ts b/libs/keycloak-auth/src/lib/keycloak-auth.module.ts index 8f45a333..d3a7673a 100644 --- a/libs/keycloak-auth/src/lib/keycloak-auth.module.ts +++ b/libs/keycloak-auth/src/lib/keycloak-auth.module.ts @@ -1,6 +1,6 @@ import { NgModule, ModuleWithProviders } from '@angular/core' import { CommonModule } from '@angular/common' -import { AUTH_SERVICE } from '@onecx/portal-integration-angular' +import { AUTH_SERVICE } from '@onecx/angular-integration-interface' import { KeycloakAuthService } from './keycloak-auth.service' import { KeycloakAngularModule } from 'keycloak-angular' import { HTTP_INTERCEPTORS } from '@angular/common/http' @@ -11,7 +11,7 @@ export interface KeycloakAuthModuleConfig { tokenInterceptorWhitelist?: string[] } /** - * Authentication module for keycloak. Requires @onecx/portal-integration-angular and keycloak-js to work. + * Authentication module for keycloak. Requires @onecx/angular-integration-interfacer and keycloak-js to work. */ @NgModule({ imports: [CommonModule, KeycloakAngularModule], diff --git a/libs/keycloak-auth/src/lib/token.interceptor.ts b/libs/keycloak-auth/src/lib/token.interceptor.ts index 205461c0..0033e80e 100644 --- a/libs/keycloak-auth/src/lib/token.interceptor.ts +++ b/libs/keycloak-auth/src/lib/token.interceptor.ts @@ -1,7 +1,7 @@ import { Inject, Injectable, Optional } from '@angular/core' import { HttpRequest, HttpHandler, HttpEvent, HttpInterceptor } from '@angular/common/http' +import { AUTH_SERVICE, IAuthService } from '@onecx/angular-integration-interface' import { Observable } from 'rxjs' -import { AUTH_SERVICE, IAuthService } from '@onecx/portal-integration-angular' import { KeycloakAuthModuleConfig } from './keycloak-auth.module' import { KEYCLOAK_AUTH_CONFIG } from './keycloak-injection-token'