Skip to content

Commit cc3fd3d

Browse files
committed
preserve Requested Route in case of login failure
1 parent ab76af5 commit cc3fd3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/core/auth/oauth-init.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import { OAuthService, AuthConfig } from 'angular-oauth2-oidc';
33
import { from, race, of, timer, Observable, throwError } from 'rxjs';
44
import { catchError, mapTo, map } from 'rxjs/operators';
55
import { IAppConfig } from 'src/app/config/app-config.model';
6-
import { environment } from 'src/environments/environment';
76

87
@Injectable({
98
providedIn: 'root',
@@ -62,6 +61,7 @@ export class OAuthInitService {
6261
const CLIENT_ID = config.auth.clientId;
6362

6463
const authConfig: AuthConfig = {
64+
preserveRequestedRoute: true,
6565
issuer: `${BASE_URL}/realms/${REALM}`,
6666
clientId: CLIENT_ID,
6767
responseType: 'code',

0 commit comments

Comments
 (0)