Skip to content

Commit

Permalink
fix: IAuthService moved
Browse files Browse the repository at this point in the history
  • Loading branch information
markuczy committed Mar 19, 2024
1 parent 9c020f8 commit 08a4b73
Show file tree
Hide file tree
Showing 10 changed files with 8 additions and 11 deletions.
1 change: 0 additions & 1 deletion libs/angular-accelerator/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ export * from './lib/model/diagram-type'
export * from './lib/model/search-config-info'

// core
export * from './lib/api/iauth.service'
export * from './lib/angular-accelerator.module'
export * from './lib/angular-accelerator-primeng.module'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Injectable } from '@angular/core'
import { BehaviorSubject } from 'rxjs'
import { UserProfile } from '@onecx/integration-interface'
import { IAuthService } from '../api/iauth.service'
import { IAuthService } from '@onecx/angular-integration-interface'

@Injectable()
export class MockAuthService implements IAuthService {
Expand Down
1 change: 1 addition & 0 deletions libs/angular-integration-interface/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export * from './lib/services/theme.service'
export * from './lib/model/config-key.model'

// core
export * from './lib/api/iauth.service'
export * from './lib/api/injection-tokens'

// utils
Expand Down
3 changes: 1 addition & 2 deletions libs/keycloak-auth/src/lib/keycloak-auth.service.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { Injectable } from '@angular/core'
import { IAuthService } from '@onecx/angular-accelerator'
import { AppStateService, ConfigurationService, CONFIG_KEY } from '@onecx/angular-integration-interface'
import { AppStateService, ConfigurationService, CONFIG_KEY, IAuthService } from '@onecx/angular-integration-interface'
import { KeycloakEventType, KeycloakOptions, KeycloakService } from 'keycloak-angular'
import { KeycloakConfig } from 'keycloak-js'

Expand Down
3 changes: 1 addition & 2 deletions libs/keycloak-auth/src/lib/token.interceptor.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { Inject, Injectable, Optional } from '@angular/core'
import { HttpRequest, HttpHandler, HttpEvent, HttpInterceptor } from '@angular/common/http'
import { AUTH_SERVICE } from '@onecx/angular-integration-interface'
import { IAuthService } from '@onecx/angular-accelerator'
import { AUTH_SERVICE, IAuthService } from '@onecx/angular-integration-interface'
import { Observable } from 'rxjs'
import { KeycloakAuthModuleConfig } from './keycloak-auth.module'
import { KEYCLOAK_AUTH_CONFIG } from './keycloak-injection-token'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ import { Component, EventEmitter, Inject, Input, OnInit, Output } from '@angular
import { UntilDestroy, untilDestroyed } from '@ngneat/until-destroy'
import { map, Observable } from 'rxjs'
import { MenuItem } from 'primeng/api'
import { IAuthService } from '@onecx/angular-accelerator'
import { UserService, AUTH_SERVICE } from '@onecx/angular-integration-interface'
import { UserService, AUTH_SERVICE, IAuthService } from '@onecx/angular-integration-interface'
import { MenuService } from '../../../services/app.menu.service'
import { UserProfile } from '../../../model/user-profile.model'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ import {
AUTH_SERVICE,
ConfigurationService,
CONFIG_KEY,
IAuthService,
} from '@onecx/angular-integration-interface'

import { IAuthService } from '@onecx/angular-accelerator'
import { UserProfile } from '../../../model/user-profile.model'
import { MenuService } from '../../../services/app.menu.service'
import { ImageLogoUrlUtils } from '../../utils/image-logo-url.utils'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { firstValueFrom } from 'rxjs'
import { IAuthService } from '@onecx/angular-accelerator'
import {
AppStateService,
UserService,
ThemeService,
ConfigurationService,
CONFIG_KEY,
IAuthService,
} from '@onecx/angular-integration-interface'
import { MfeInfo } from '@onecx/integration-interface'
import { PortalApiService } from '../../services/portal-api.service'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Injectable } from '@angular/core'
import { BehaviorSubject } from 'rxjs'
import { IAuthService } from '@onecx/angular-accelerator'
import { IAuthService } from '@onecx/angular-integration-interface'
import { UserProfile } from '../model/user-profile.model'

@Injectable()
Expand Down

0 comments on commit 08a4b73

Please sign in to comment.