Skip to content

Commit

Permalink
CB-5274. Added new link for download metadata file (#2900)
Browse files Browse the repository at this point in the history
* CB-5274. Added new link for download metadata file

* CB-5274. Refactor after review

* CB-5274 add entityIdLink field

* CB-5274. Rename property

---------

Co-authored-by: naumov <[email protected]>
Co-authored-by: Evgenia Bezborodova <[email protected]>
Co-authored-by: Alexander Skoblikov <[email protected]>
  • Loading branch information
4 people authored and Wroud committed Sep 16, 2024
1 parent 83fe4e8 commit e998a6c
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ default String getUserSignOutLink(
@Nullable
String getAcsLink(String id, @NotNull Map<String, Object> providerConfig) throws DBException;

@Nullable
String getEntityIdLink(String id, @NotNull Map<String, Object> providerConfig) throws DBException;

@Nullable
default String getRedirectLink(String id, @NotNull Map<String, Object> providerConfig) throws DBException {
return null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,14 @@ public String getAcsLink() throws DBException {
return instance instanceof SMAuthProviderFederated ? ((SMAuthProviderFederated) instance).getAcsLink(getId(), config.getParameters()) : null;
}

@Property
public String getEntityIdLink() throws DBException {
SMAuthProvider<?> instance = providerDescriptor.getInstance();
return instance instanceof SMAuthProviderFederated
? ((SMAuthProviderFederated) instance).getEntityIdLink(getId(), config.getParameters())
: null;
}

@Override
public String toString() {
return getDisplayName();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ type AdminAuthProviderConfiguration {
redirectLink: String
metadataLink: String
acsLink: String
entityIdLink: String @since(version: "24.2.1")
}

type WebFeatureSet {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ type AuthProviderConfiguration {
signOutLink: String
metadataLink: String
acsLink: String
entityIdLink: String @since(version: "24.2.1")
}

type AuthProviderCredentialsProfile {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@ query getAuthProviderConfigurations($providerId: ID) {
redirectLink
metadataLink
acsLink
entityIdLink
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,6 @@ query saveAuthProviderConfiguration(
redirectLink
metadataLink
acsLink
entityIdLink
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ fragment AuthProviderConfigurationInfo on AuthProviderConfiguration {
signOutLink
metadataLink
acsLink
entityIdLink
}

0 comments on commit e998a6c

Please sign in to comment.