refactor(auth): keep the session in the browser
The WebApi no longer authenticates, so the login validates against the accounts in auth.service.ts and the session lives in sessionStorage. The guard, the domain guard and the filtering of the import workspace and governance stay as they were; the interceptor and the /auth proxy entries go away because nothing answers 401.
This commit is contained in:
@@ -8,9 +8,9 @@ import { ActivatedRoute, Router } from '@angular/router';
|
||||
import { AuthService } from './auth.service';
|
||||
|
||||
/**
|
||||
* Inicio de sesión: el formulario contra `POST /auth/login` y, si el usuario ya
|
||||
* tiene sesión, salta al destino. `returnUrl` lo pone el guard cuando una ruta
|
||||
* protegida lo trajo aquí.
|
||||
* Inicio de sesión: valida contra las cuentas locales de `AuthService` y, si el
|
||||
* usuario ya tiene sesión, salta al destino. `returnUrl` lo pone el guard cuando
|
||||
* una ruta protegida lo trajo aquí.
|
||||
*/
|
||||
@Component({
|
||||
selector: 'app-login-page',
|
||||
|
||||
Reference in New Issue
Block a user