gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[reclaim-ui] 83/459: prevent authorization on unverified clients


From: gnunet
Subject: [reclaim-ui] 83/459: prevent authorization on unverified clients
Date: Fri, 11 Jun 2021 23:22:55 +0200

This is an automated email from the git hooks/post-receive script.

martin-schanzenbach pushed a commit to branch master
in repository reclaim-ui.

commit 4ce9574f8a4ff4e79d4af887d8c3af98d730fb13
Author: Schanzenbach, Martin <mschanzenbach@posteo.de>
AuthorDate: Fri Jun 14 10:13:33 2019 +0200

    prevent authorization on unverified clients
---
 src/app/identity-list/identity-list.component.html | 5 +++--
 src/app/identity-list/identity-list.component.ts   | 2 +-
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/app/identity-list/identity-list.component.html 
b/src/app/identity-list/identity-list.component.html
index de3c336..defe008 100644
--- a/src/app/identity-list/identity-list.component.html
+++ b/src/app/identity-list/identity-list.component.html
@@ -216,8 +216,9 @@
       <div>
 
         <div>
-          <button *ngIf="canAuthorize(identity)" [disabled]="!inOpenIdFlow() 
|| isAttributeMissing(identity)" (click)="loginIdentity(identity)" class="btn 
btn-primary mr-1 openid-login">
-            <span class="fa fa-openid"></span> Share from this 
identity</button>
+          <button *ngIf="canAuthorize(identity)" [disabled]="!inOpenIdFlow() 
|| isAttributeMissing(identity) || !clientNameFound" 
(click)="loginIdentity(identity)" class="btn btn-primary mr-1 openid-login">
+            <span *ngIf="!clientNameFound"><i class="fa fa-circle-o-notch 
fa-spin fa-fw"></i> Verifying remote party</span>
+            <span *ngIf="clientNameFound" class="fa fa-openid"></span> Share 
from this identity</button>
         </div>
       </div>
       <div>
diff --git a/src/app/identity-list/identity-list.component.ts 
b/src/app/identity-list/identity-list.component.ts
index 7817904..0ac4906 100644
--- a/src/app/identity-list/identity-list.component.ts
+++ b/src/app/identity-list/identity-list.component.ts
@@ -476,7 +476,7 @@ export class IdentityListComponent implements OnInit {
   getMissingPretty(identity) { return this.getMissing(identity).join(", "); }
   canAuthorize(identity)
   {
-    return this.inOpenIdFlow() && !this.isInEdit(identity);
+    return this.inOpenIdFlow() && !this.isInEdit(identity) && 
this.clientNameFound;
   }
   isRequested(identity, attribute)
   {

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]