use of com.cloudera.thunderhead.service.usermanagement.UserManagementProto.GetIdPMetadataForWorkloadSSORequest in project cloudbreak by hortonworks.
the class UmsClient method getIdentityProviderMetadataXml.
/**
* Queries the metadata file used to configure SSO authentication on clusters.
*
* @param requestId the Request ID
* @param accountId the account ID
* @return metadata as string
*/
public String getIdentityProviderMetadataXml(String requestId, String accountId) {
validateAccountIdWithWarning(accountId);
GetIdPMetadataForWorkloadSSORequest request = GetIdPMetadataForWorkloadSSORequest.newBuilder().setAccountId(accountId).build();
GetIdPMetadataForWorkloadSSOResponse response = newStub(requestId).getIdPMetadataForWorkloadSSO(request);
return response.getMetadata();
}
Aggregations