File tree Expand file tree Collapse file tree 4 files changed +10
-5
lines changed
app/pages/identities-page
libs/perun/models/src/lib Expand file tree Collapse file tree 4 files changed +10
-5
lines changed Original file line number Diff line number Diff line change 1
1
< div class ="user-theme ">
2
2
< h1 class ="page-title "> {{'IDENTITIES.IDP' | customTranslate | translate}}</ h1 >
3
- < button mat-flat-button color ="accent " (click) ="addIdentity() " [disabled] ="loading ">
3
+ < button mat-flat-button color ="accent " (click) ="addIdentity(false ) " [disabled] ="loading ">
4
4
{{'IDENTITIES.ADD' | customTranslate | translate}}
5
5
</ button >
6
6
< button
@@ -23,7 +23,7 @@ <h1 class="page-title">{{'IDENTITIES.IDP' | customTranslate | translate}}</h1>
23
23
24
24
< div *ngIf ="displayCertificates ">
25
25
< h1 class ="page-title mt-5 "> {{'IDENTITIES.CERT' | customTranslate | translate}}</ h1 >
26
- < button mat-flat-button color ="accent " (click) ="addIdentity() " [disabled] ="loading ">
26
+ < button mat-flat-button color ="accent " (click) ="addIdentity(true ) " [disabled] ="loading ">
27
27
{{'IDENTITIES.ADD' | customTranslate | translate}}
28
28
</ button >
29
29
< button
Original file line number Diff line number Diff line change @@ -125,7 +125,7 @@ export class IdentitiesPageComponent implements OnInit {
125
125
} ) ;
126
126
}
127
127
128
- addIdentity ( ) : void {
128
+ addIdentity ( cert : boolean ) : void {
129
129
if ( this . storage . getProperty ( 'use_new_consolidator' ) ) {
130
130
this . openLinkerService . openLinkerWindow ( ( result : LinkerResult ) => {
131
131
if ( result === 'TOKEN_EXPIRED' ) {
@@ -143,7 +143,10 @@ export class IdentitiesPageComponent implements OnInit {
143
143
} ) ;
144
144
} else {
145
145
this . registrarManagerService . getConsolidatorToken ( ) . subscribe ( ( token ) => {
146
- const consolidatorUrl = this . storage . getProperty ( 'consolidator_url' ) ;
146
+ let consolidatorUrl = this . storage . getProperty ( 'consolidator_url' ) ;
147
+ if ( cert ) {
148
+ consolidatorUrl = this . storage . getProperty ( 'consolidator_url_cert' ) ;
149
+ }
147
150
window . location . href = `${ consolidatorUrl } ?target_url=${ window . location . href } &token=${ token } ` ;
148
151
} ) ;
149
152
}
Original file line number Diff line number Diff line change 28
28
" urn:perun:user:attribute-def:def:login-namespace:egi-ui" ,
29
29
" urn:perun:user:attribute-def:def:login-namespace:sitola"
30
30
],
31
- "consolidator_url" : " https://perun-dev.cesnet.cz/cert-ic/ic/" ,
31
+ "consolidator_url" : " https://perun-dev.cesnet.cz/allfed-ic/ic/" ,
32
+ "consolidator_url_cert" : " https://perun-dev.cesnet.cz/cert-ic/ic/" ,
32
33
"registrar_base_url" : " https://perun-dev.cesnet.cz/fed/registrar/" ,
33
34
"use_localhost_linker_url" : false ,
34
35
"password_help" : {
Original file line number Diff line number Diff line change @@ -187,6 +187,7 @@ export interface PerunConfig {
187
187
// Required
188
188
displayed_tabs : string [ ] ;
189
189
consolidator_url : string ;
190
+ consolidator_url_cert : string ;
190
191
registrar_base_url : string ;
191
192
mfa : ProfileMFA ;
192
193
preferred_unix_group_names : string [ ] ;
You can’t perform that action at this time.
0 commit comments