use GET for shortlivedtoken requests on the server, POST on the client

This commit is contained in:
Art Lowel
2021-04-06 16:45:06 +02:00
parent 72ca74bdf3
commit ff4bd59de0
9 changed files with 238 additions and 14 deletions

View File

@@ -31,6 +31,8 @@ import {
import { LocaleService } from '../../app/core/locale/locale.service';
import { GoogleAnalyticsService } from '../../app/statistics/google-analytics.service';
import { RouterModule, NoPreloading } from '@angular/router';
import { AuthRequestService } from '../../app/core/auth/auth-request.service';
import { BrowserAuthRequestService } from '../../app/core/auth/browser-auth-request.service';
export const REQ_KEY = makeStateKey<string>('req');
@@ -104,6 +106,10 @@ export function getRequest(transferState: TransferState): any {
provide: GoogleAnalyticsService,
useClass: GoogleAnalyticsService,
},
{
provide: AuthRequestService,
useClass: BrowserAuthRequestService,
},
{
provide: LocationToken,
useFactory: locationProvider,