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
+2 -2
View File
@@ -1,13 +1,13 @@
import { Pipe, PipeTransform } from '@angular/core';
import { Observable } from 'rxjs';
import { AuthService } from '../services/auth.service';
import { GrpcAuthService } from '../services/grpc-auth.service';
@Pipe({
name: 'hasRole',
})
export class HasRolePipe implements PipeTransform {
constructor(private authService: AuthService) { }
constructor(private authService: GrpcAuthService) { }
public transform(values: string[]): Observable<boolean> {
return this.authService.isAllowed(values);