feat(console): grpc web interceptors, cleanup services (#631)

* managementservice, authservice, change all refs

* refactor grpc auth

* fix references

* interceptor logic

* new interceptor

* appinitializers, environment loader, interceptors

* remove circular dep

* init authconfig in grpc service

* authconfig

* lint

* update mgmt service

* fix references

* update clientid, fix interceptor

* rm unused authconfig

* todo auth interceptor
This commit is contained in:
Max Peintner
2020-08-29 10:43:35 +02:00
committed by GitHub
parent 40b8faaddd
commit eeea1f1c4b
81 changed files with 1877 additions and 2639 deletions
+7 -9
View File
@@ -32,12 +32,11 @@ import { AvatarModule } from './modules/avatar/avatar.module';
import { WarnDialogModule } from './modules/warn-dialog/warn-dialog.module';
import { SignedoutComponent } from './pages/signedout/signedout.component';
import { HasRolePipeModule } from './pipes/has-role-pipe.module';
import { AuthUserService } from './services/auth-user.service';
import { AuthService } from './services/auth.service';
import { GrpcAuthService } from './services/grpc-auth.service';
import { GrpcService } from './services/grpc.service';
import { GrpcAuthInterceptor } from './services/interceptors/grpc-auth.interceptor';
import { AuthInterceptor } from './services/interceptors/auth.interceptor';
import { GRPC_INTERCEPTORS } from './services/interceptors/grpc-interceptor';
import { GrpcOrgInterceptor } from './services/interceptors/grpc-org.interceptor';
import { OrgInterceptor } from './services/interceptors/org.interceptor';
import { StatehandlerProcessorService, StatehandlerProcessorServiceImpl } from './services/statehandler-processor.service';
import { StatehandlerService, StatehandlerServiceImpl } from './services/statehandler.service';
import { StorageService } from './services/storage.service';
@@ -146,21 +145,20 @@ const authConfig: AuthConfig = {
{
provide: GRPC_INTERCEPTORS,
multi: true,
useClass: GrpcAuthInterceptor,
useClass: AuthInterceptor,
},
{
provide: GRPC_INTERCEPTORS,
multi: true,
useClass: GrpcOrgInterceptor,
useClass: OrgInterceptor,
},
GrpcService,
AuthService,
AuthUserService,
GrpcAuthService,
{ provide: 'windowObject', useValue: window },
],
bootstrap: [AppComponent],
})
export class AppModule {
export class AppModule {
constructor() { }
}