Skip to content

Commit

Permalink
Merge branch 'master' into production
Browse files Browse the repository at this point in the history
  • Loading branch information
HejdaJakub committed Sep 15, 2023
2 parents dc5183c + f9b66c0 commit 740b446
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div class="user-theme">
<h1 class="page-title">{{'IDENTITIES.IDP' | customTranslate | translate}}</h1>
<button mat-flat-button color="accent" (click)="addIdentity()" [disabled]="loading">
<button mat-flat-button color="accent" (click)="addIdentity(false)" [disabled]="loading">
{{'IDENTITIES.ADD' | customTranslate | translate}}
</button>
<button
Expand All @@ -23,7 +23,7 @@ <h1 class="page-title">{{'IDENTITIES.IDP' | customTranslate | translate}}</h1>

<div *ngIf="displayCertificates">
<h1 class="page-title mt-5">{{'IDENTITIES.CERT' | customTranslate | translate}}</h1>
<button mat-flat-button color="accent" (click)="addIdentity()" [disabled]="loading">
<button mat-flat-button color="accent" (click)="addIdentity(true)" [disabled]="loading">
{{'IDENTITIES.ADD' | customTranslate | translate}}
</button>
<button
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ export class IdentitiesPageComponent implements OnInit {
});
}

addIdentity(): void {
addIdentity(cert: boolean): void {
if (this.storage.getProperty('use_new_consolidator')) {
this.openLinkerService.openLinkerWindow((result: LinkerResult) => {
if (result === 'TOKEN_EXPIRED') {
Expand All @@ -143,7 +143,10 @@ export class IdentitiesPageComponent implements OnInit {
});
} else {
this.registrarManagerService.getConsolidatorToken().subscribe((token) => {
const consolidatorUrl = this.storage.getProperty('consolidator_url');
let consolidatorUrl = this.storage.getProperty('consolidator_url');
if (cert) {
consolidatorUrl = this.storage.getProperty('consolidator_url_cert');
}
window.location.href = `${consolidatorUrl}?target_url=${window.location.href}&token=${token}`;
});
}
Expand Down
3 changes: 2 additions & 1 deletion apps/user-profile/src/assets/config/defaultConfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@
"urn:perun:user:attribute-def:def:login-namespace:egi-ui",
"urn:perun:user:attribute-def:def:login-namespace:sitola"
],
"consolidator_url": "https://perun-dev.cesnet.cz/cert-ic/ic/",
"consolidator_url": "https://perun-dev.cesnet.cz/allfed-ic/ic/",
"consolidator_url_cert": "https://perun-dev.cesnet.cz/cert-ic/ic/",
"registrar_base_url": "https://perun-dev.cesnet.cz/fed/registrar/",
"use_localhost_linker_url": false,
"password_help": {
Expand Down
1 change: 1 addition & 0 deletions libs/perun/models/src/lib/ConfigProperties.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ export interface PerunConfig {
// Required
displayed_tabs: string[];
consolidator_url: string;
consolidator_url_cert: string;
registrar_base_url: string;
mfa: ProfileMFA;
preferred_unix_group_names: string[];
Expand Down

0 comments on commit 740b446

Please sign in to comment.