Added impersonation. More data available via auth service about the user. Added admin auth guard.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { Routes } from '@angular/router';
|
||||
import { PolicyComponent } from './policy/policy.component';
|
||||
import { AuthGuard } from './shared/auth/auth.guard';
|
||||
import { AuthUserGuard } from './shared/auth/auth.user.guard';
|
||||
import { LoginComponent } from './login/login.component';
|
||||
import { TtsLoginComponent } from './tts-login/tts-login.component';
|
||||
import { TwitchAuthCallbackComponent } from './twitch-auth-callback/twitch-auth-callback.component';
|
||||
@@ -9,7 +9,7 @@ export const routes: Routes = [
|
||||
{
|
||||
path: 'policies',
|
||||
component: PolicyComponent,
|
||||
canActivate: [AuthGuard],
|
||||
canActivate: [AuthUserGuard],
|
||||
},
|
||||
{
|
||||
path: 'login',
|
||||
@@ -18,7 +18,7 @@ export const routes: Routes = [
|
||||
{
|
||||
path: 'tts-login',
|
||||
component: TtsLoginComponent,
|
||||
canActivate: [AuthGuard],
|
||||
canActivate: [AuthUserGuard],
|
||||
},
|
||||
{
|
||||
path: 'auth',
|
||||
|
||||
Reference in New Issue
Block a user