aboutsummaryrefslogtreecommitdiff
path: root/src/app/identity-list/identity-list.component.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/app/identity-list/identity-list.component.ts')
-rw-r--r--src/app/identity-list/identity-list.component.ts14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/app/identity-list/identity-list.component.ts b/src/app/identity-list/identity-list.component.ts
index 8c44d79..9ac3ff0 100644
--- a/src/app/identity-list/identity-list.component.ts
+++ b/src/app/identity-list/identity-list.component.ts
@@ -40,6 +40,7 @@ export class IdentityListComponent implements OnInit {
40 showSharingInfo: any = ''; 40 showSharingInfo: any = '';
41 sortAttributeByStandardClaim: any; 41 sortAttributeByStandardClaim: any;
42 openIdentity: any = ''; 42 openIdentity: any = '';
43 authorizationRequest: any;
43 44
44 constructor(private route: ActivatedRoute, private oidcService: OpenIdService, 45 constructor(private route: ActivatedRoute, private oidcService: OpenIdService,
45 private identityService: IdentityService, 46 private identityService: IdentityService,
@@ -60,6 +61,7 @@ export class IdentityListComponent implements OnInit {
60 this.missingClaims = {}; 61 this.missingClaims = {};
61 this.connected = false; 62 this.connected = false;
62 this.modalOpened = false; 63 this.modalOpened = false;
64 this.authorizationRequest = false;
63 if (undefined !== this.route.snapshot.queryParams["code"]) { 65 if (undefined !== this.route.snapshot.queryParams["code"]) {
64 localStorage.setItem('credentialCode', this.route.snapshot.queryParams["code"]); 66 localStorage.setItem('credentialCode', this.route.snapshot.queryParams["code"]);
65 localStorage.setItem('credentialState', this.route.snapshot.queryParams["state"]); 67 localStorage.setItem('credentialState', this.route.snapshot.queryParams["state"]);
@@ -74,8 +76,10 @@ export class IdentityListComponent implements OnInit {
74 if (!this.oidcService.inOpenIdFlow() && undefined == this.route.snapshot.queryParams["authz_request"]) { 76 if (!this.oidcService.inOpenIdFlow() && undefined == this.route.snapshot.queryParams["authz_request"]) {
75 this.oidcService.parseRouteParams(this.route.snapshot.queryParams); 77 this.oidcService.parseRouteParams(this.route.snapshot.queryParams);
76 if (this.oidcService.inOpenIdFlow()) { 78 if (this.oidcService.inOpenIdFlow()) {
77 this.router.navigate(['/authorization-request']); 79 /**this.router.navigate(['/authorization-request']);
78 return; 80 return;*/
81 this.retryVerify();
82 this.authorizationRequest = true;
79 } 83 }
80 } 84 }
81 this.updateIdentities(); 85 this.updateIdentities();
@@ -91,6 +95,7 @@ export class IdentityListComponent implements OnInit {
91 } 95 }
92 96
93 cancelRequest() { 97 cancelRequest() {
98 this.authorizationRequest = false;
94 this.oidcService.cancelAuthorization(); 99 this.oidcService.cancelAuthorization();
95 } 100 }
96 101
@@ -499,4 +504,9 @@ export class IdentityListComponent implements OnInit {
499 getMessage(key, sub?){ 504 getMessage(key, sub?){
500 return this.languageService.getMessage(key, sub); 505 return this.languageService.getMessage(key, sub);
501 } 506 }
507
508 //Authorization Request
509 retryVerify() {
510 this.oidcService.getClientName();
511 }
502} 512}