File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed
libs/perun/services/src/lib Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -129,7 +129,8 @@ export class ApiInterceptor implements HttpInterceptor {
129
129
if (
130
130
e . type === 'MfaPrivilegeException' ||
131
131
e . type === 'MfaRolePrivilegeException' ||
132
- e . type === 'MfaTimeoutException'
132
+ e . type === 'MfaTimeoutException' ||
133
+ e . type === 'MfaRoleTimeoutException'
133
134
) {
134
135
return this . mfaHandlerService . openMfaWindow ( e . type ) . pipe (
135
136
switchMap ( ( verified ) => {
Original file line number Diff line number Diff line change @@ -14,7 +14,8 @@ import { StoreService } from './store.service';
14
14
export type MfaExceptionType =
15
15
| 'MfaPrivilegeException'
16
16
| 'MfaRolePrivilegeException'
17
- | 'MfaTimeoutException' ;
17
+ | 'MfaTimeoutException'
18
+ | 'MfaRoleTimeoutException' ;
18
19
19
20
@Injectable ( {
20
21
providedIn : 'root' ,
@@ -42,14 +43,15 @@ export class MfaHandlerService {
42
43
const configVerify = getDefaultDialogConfig ( ) ;
43
44
configVerify . width = '450px' ;
44
45
configVerify . data = {
45
- mfaRoleException : mfaExceptionType === 'MfaRolePrivilegeException' ,
46
+ mfaRoleException :
47
+ mfaExceptionType === ( 'MfaRolePrivilegeException' || 'MfaRoleTimeoutException' ) ,
46
48
} ;
47
49
const dialogVerifyRef = this . dialog . open ( MfaRequiredDialogComponent , configVerify ) ;
48
50
let verificationSkipped = false ;
49
51
50
52
dialogVerifyRef . afterClosed ( ) . subscribe ( ( result ) => {
51
53
if ( result ) {
52
- if ( mfaExceptionType === 'MfaTimeoutException' ) {
54
+ if ( mfaExceptionType === ( 'MfaTimeoutException' || 'MfaRoleTimeoutException' ) ) {
53
55
localStorage . setItem ( 'mfaTimeout' , 'true' ) ;
54
56
}
55
57
You can’t perform that action at this time.
0 commit comments