mirror of
https://github.com/zitadel/zitadel.git
synced 2025-02-28 21:17:23 +00:00
fix(console): statehandler (#4042)
Co-authored-by: Livio Spring <livio.a@gmail.com>
This commit is contained in:
parent
0ebda7caaa
commit
9347a196c0
@ -15,6 +15,9 @@ import { TranslateLoader, TranslateModule } from '@ngx-translate/core';
|
||||
import { AuthConfig, OAuthModule, OAuthStorage } from 'angular-oauth2-oidc';
|
||||
import { QuicklinkModule } from 'ngx-quicklink';
|
||||
import { from, Observable } from 'rxjs';
|
||||
import { AuthGuard } from 'src/app/guards/auth.guard';
|
||||
import { RoleGuard } from 'src/app/guards/role.guard';
|
||||
import { UserGuard } from 'src/app/guards/user.guard';
|
||||
import { InfoOverlayModule } from 'src/app/modules/info-overlay/info-overlay.module';
|
||||
import { AssetService } from 'src/app/services/asset.service';
|
||||
|
||||
@ -120,6 +123,9 @@ const authConfig: AuthConfig = {
|
||||
ServiceWorkerModule.register('ngsw-worker.js', { enabled: false }),
|
||||
],
|
||||
providers: [
|
||||
AuthGuard,
|
||||
RoleGuard,
|
||||
UserGuard,
|
||||
ThemeService,
|
||||
{
|
||||
provide: APP_INITIALIZER,
|
||||
|
@ -13,7 +13,7 @@ export class StatehandlerProcessorServiceImpl implements StatehandlerProcessorSe
|
||||
constructor(private location: Location, private router: Router) {}
|
||||
|
||||
public createState(url: string): string {
|
||||
const externalUrl = this.location.prepareExternalUrl(url);
|
||||
const externalUrl = url;
|
||||
const urlId = uuidv4();
|
||||
sessionStorage.setItem(urlId, externalUrl);
|
||||
return urlId;
|
||||
|
Loading…
x
Reference in New Issue
Block a user