Search in sources :

Example 1 with GetIdPMetadataForWorkloadSSOResponse

use of com.cloudera.thunderhead.service.usermanagement.UserManagementProto.GetIdPMetadataForWorkloadSSOResponse 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();
}
Also used : GetIdPMetadataForWorkloadSSOResponse(com.cloudera.thunderhead.service.usermanagement.UserManagementProto.GetIdPMetadataForWorkloadSSOResponse) GetIdPMetadataForWorkloadSSORequest(com.cloudera.thunderhead.service.usermanagement.UserManagementProto.GetIdPMetadataForWorkloadSSORequest)

Aggregations

GetIdPMetadataForWorkloadSSORequest (com.cloudera.thunderhead.service.usermanagement.UserManagementProto.GetIdPMetadataForWorkloadSSORequest)1 GetIdPMetadataForWorkloadSSOResponse (com.cloudera.thunderhead.service.usermanagement.UserManagementProto.GetIdPMetadataForWorkloadSSOResponse)1