diff options
author | anna wimbauer <anna.wibauer@gmx.de> | 2020-10-26 15:48:39 +0100 |
---|---|---|
committer | anna wimbauer <anna.wibauer@gmx.de> | 2020-10-26 15:48:39 +0100 |
commit | be8bdc944e2063f289d141f0aec7351991afbebe (patch) | |
tree | 385ad500ee683bc22c585356d488241927901e02 | |
parent | b5c129b8136698c4c582d597cbf34c38c051c04b (diff) | |
parent | a941b44ef8fa986c3b2bf28520f7c29193e38b33 (diff) | |
download | reclaim-ui-be8bdc944e2063f289d141f0aec7351991afbebe.tar.gz reclaim-ui-be8bdc944e2063f289d141f0aec7351991afbebe.zip |
Merge branch 'master' of gitlab.com:reclaimid/ui
-rw-r--r-- | src/app/edit-credentials/edit-credentials.component.ts | 4 | ||||
-rw-r--r-- | src/app/edit-identity/edit-identity.component.html | 10 |
2 files changed, 7 insertions, 7 deletions
diff --git a/src/app/edit-credentials/edit-credentials.component.ts b/src/app/edit-credentials/edit-credentials.component.ts index 790a5db..c19a0f9 100644 --- a/src/app/edit-credentials/edit-credentials.component.ts +++ b/src/app/edit-credentials/edit-credentials.component.ts | |||
@@ -96,7 +96,7 @@ export class EditCredentialsComponent implements OnInit { | |||
96 | console.log("No AccessToken"); | 96 | console.log("No AccessToken"); |
97 | return; | 97 | return; |
98 | } | 98 | } |
99 | this.newCredential.value = this.oauthService.getAccessToken(); | 99 | this.newCredential.value = this.oauthService.getIdToken(); |
100 | this.reclaimService.addCredential(this.identity, this.newCredential).subscribe(res => { | 100 | this.reclaimService.addCredential(this.identity, this.newCredential).subscribe(res => { |
101 | console.log("Saved Credential"); | 101 | console.log("Saved Credential"); |
102 | this.resetNewIdProvider(); | 102 | this.resetNewIdProvider(); |
@@ -118,7 +118,7 @@ export class EditCredentialsComponent implements OnInit { | |||
118 | } | 118 | } |
119 | 119 | ||
120 | saveIdProviderinLocalStorage(){ | 120 | saveIdProviderinLocalStorage(){ |
121 | localStorage.setItem('Authorization: ' + this.newCredential.name, 'idProvider: ' + this.newIdProvider.url + ';redirectUri: ' + this.oauthService.redirectUri + ';clientId: ' + this.oauthService.clientId + ';accessToken: ' + this.oauthService.getAccessToken() + ';idToken: ' + this.oauthService.getIdToken()); | 121 | localStorage.setItem('Authorization: ' + this.newCredential.name, 'idProvider: ' + this.newIdProvider.url + ';redirectUri: ' + this.oauthService.redirectUri + ';clientId: ' + this.oauthService.clientId + ';accessToken: ' + this.oauthService.getIdToken() + ';idToken: ' + this.oauthService.getIdToken()); |
122 | } | 122 | } |
123 | 123 | ||
124 | private storeCredential() { | 124 | private storeCredential() { |
diff --git a/src/app/edit-identity/edit-identity.component.html b/src/app/edit-identity/edit-identity.component.html index ba4a1f3..ad71ec5 100644 --- a/src/app/edit-identity/edit-identity.component.html +++ b/src/app/edit-identity/edit-identity.component.html | |||
@@ -29,7 +29,7 @@ | |||
29 | </div> | 29 | </div> |
30 | <div class="col-sm"> | 30 | <div class="col-sm"> |
31 | <input *ngIf="!isClaimCred(claim)" placeholder="{{ getMessage('Value') }}" [(ngModel)]="claim.value"> | 31 | <input *ngIf="!isClaimCred(claim)" placeholder="{{ getMessage('Value') }}" [(ngModel)]="claim.value"> |
32 | <span *ngIf="isClaimCred(claim)" >{{getMessage("edit_identity_html@claimAsAttribute", {CREDVALUE: getCredValue(claim), ISSUER: getIssuer(claim), CLAIMVALUE: claim.value})}}</span> | 32 | <span *ngIf="isClaimCred(claim)" >{{getMessage("edit_identity_html@claimAsAttribute", {CREDVALUE: getCredValue(claim), ISSUER: getIssuer(claim), CLAIMVALUE: claim.value, interpolation: { escapeValue: false } }) }}</span> |
33 | </div> | 33 | </div> |
34 | <div class="col-sm"> | 34 | <div class="col-sm"> |
35 | <button class="btn btn-primary" (click)="deleteAttribute(claim)" *ngIf="!isClaimCred(claim)"> | 35 | <button class="btn btn-primary" (click)="deleteAttribute(claim)" *ngIf="!isClaimCred(claim)"> |
@@ -70,7 +70,7 @@ | |||
70 | <i *ngIf="isClaimRequested(claim)" class="fa fa-openid"></i><b> {{ getDescription(claim) }}</b></div></div> | 70 | <i *ngIf="isClaimRequested(claim)" class="fa fa-openid"></i><b> {{ getDescription(claim) }}</b></div></div> |
71 | <div class="col-sm"> | 71 | <div class="col-sm"> |
72 | <input *ngIf="!isClaimCred(claim)" placeholder="{{ getMessage('Value') }}" [(ngModel)]="claim.value"> | 72 | <input *ngIf="!isClaimCred(claim)" placeholder="{{ getMessage('Value') }}" [(ngModel)]="claim.value"> |
73 | <span *ngIf="isClaimCred(claim)" >{{getMessage("edit_identity_html@claimAsAttribute", [getCredValue(claim), getIssuer(claim), claim.value])}}</span> | 73 | <span *ngIf="isClaimCred(claim)" >{{getMessage("edit_identity_html@claimAsAttribute", {CREDVALUE: getCredValue(claim), ISSUER: getIssuer(claim), CLAIMVALUE: claim.value, interpolation: { escapeValue: false } }) }}</span> |
74 | </div> | 74 | </div> |
75 | <div class="col-sm"> | 75 | <div class="col-sm"> |
76 | <button class="btn btn-primary" (click)="deleteAttribute(claim)" *ngIf="!isClaimCred(claim)"> | 76 | <button class="btn btn-primary" (click)="deleteAttribute(claim)" *ngIf="!isClaimCred(claim)"> |
@@ -113,7 +113,7 @@ | |||
113 | <i *ngIf="isClaimRequested(claim)" class="fa fa-openid"></i><b> {{ getDescription(claim) }}</b></div></div> | 113 | <i *ngIf="isClaimRequested(claim)" class="fa fa-openid"></i><b> {{ getDescription(claim) }}</b></div></div> |
114 | <div class="col-sm"> | 114 | <div class="col-sm"> |
115 | <input *ngIf="!isClaimCred(claim)" placeholder="{{ getMessage('Value') }}" [(ngModel)]="claim.value"> | 115 | <input *ngIf="!isClaimCred(claim)" placeholder="{{ getMessage('Value') }}" [(ngModel)]="claim.value"> |
116 | <span *ngIf="isClaimCred(claim)" >{{getMessage("edit_identity_html@claimAsAttribute", [getCredValue(claim), getIssuer(claim), claim.value])}}</span> | 116 | <span *ngIf="isClaimCred(claim)" >{{getMessage("edit_identity_html@claimAsAttribute", { CREDVALUE: getCredValue(claim), ISSUER: getIssuer(claim), CLAIMVALUE: claim.value, interpolation: { escapeValue: false } }) }}</span> |
117 | </div> | 117 | </div> |
118 | <div class="col-sm"> | 118 | <div class="col-sm"> |
119 | <button class="btn btn-primary" (click)="deleteAttribute(claim)" *ngIf="!isClaimCred(claim)"> | 119 | <button class="btn btn-primary" (click)="deleteAttribute(claim)" *ngIf="!isClaimCred(claim)"> |
@@ -155,7 +155,7 @@ | |||
155 | <i *ngIf="isClaimRequested(claim)" class="fa fa-openid"></i><b> {{ getDescription(claim) }}</b></div></div> | 155 | <i *ngIf="isClaimRequested(claim)" class="fa fa-openid"></i><b> {{ getDescription(claim) }}</b></div></div> |
156 | <div class="col-sm"> | 156 | <div class="col-sm"> |
157 | <input *ngIf="!isClaimCred(claim)" placeholder="{{ getMessage('Value') }}" [(ngModel)]="claim.value"> | 157 | <input *ngIf="!isClaimCred(claim)" placeholder="{{ getMessage('Value') }}" [(ngModel)]="claim.value"> |
158 | <span *ngIf="isClaimCred(claim)" >{{getMessage("edit_identity_html@claimAsAttribute", [getCredValue(claim), getIssuer(claim), claim.value])}}</span> | 158 | <span *ngIf="isClaimCred(claim)" >{{getMessage("edit_identity_html@claimAsAttribute", { CREDVALUE: getCredValue(claim), ISSUER: getIssuer(claim), CLAIMVALUE: claim.value, interpolation: { escapeValue: false } }) }}</span> |
159 | </div> | 159 | </div> |
160 | <div class="col-sm"> | 160 | <div class="col-sm"> |
161 | <button class="btn btn-primary" (click)="deleteAttribute(claim)" *ngIf="!isClaimCred(claim)"> | 161 | <button class="btn btn-primary" (click)="deleteAttribute(claim)" *ngIf="!isClaimCred(claim)"> |
@@ -252,7 +252,7 @@ | |||
252 | </div> | 252 | </div> |
253 | <div class="col-sm"> | 253 | <div class="col-sm"> |
254 | <input *ngIf="!isClaimCred(attribute)" placeholder="{{ getMessage('Value') }}" [(ngModel)]="attribute.value"> | 254 | <input *ngIf="!isClaimCred(attribute)" placeholder="{{ getMessage('Value') }}" [(ngModel)]="attribute.value"> |
255 | <span *ngIf="isClaimCred(attribute)" >{{getMessage("edit_identity_html@claimAsAttribute", [getCredValue(claim), getIssuer(claim), claim.value])}}</span> | 255 | <span *ngIf="isClaimCred(attribute)" >{{getMessage("edit_identity_html@claimAsAttribute", {CREDVALUE: getCredValue(attribute), ISSUER: getIssuer(attribute), CLAIMVALUE: attribute.value, interpolation: { escapeValue: false } }) }}</span> |
256 | </div> | 256 | </div> |
257 | <div class="col-sm"> | 257 | <div class="col-sm"> |
258 | <button class="btn btn-primary" (click)="deleteAttribute(attribute)" *ngIf="!isClaimCred(attribute)"> | 258 | <button class="btn btn-primary" (click)="deleteAttribute(attribute)" *ngIf="!isClaimCred(attribute)"> |