describeIdentityProvider method
Given a user pool ID and identity provider (IdP) name, returns details about the IdP.
May throw InternalErrorException.
May throw InvalidParameterException.
May throw NotAuthorizedException.
May throw ResourceNotFoundException.
May throw TooManyRequestsException.
Parameter providerName :
The name of the IdP that you want to describe.
Parameter userPoolId :
The ID of the user pool that has the IdP that you want to describe..
Implementation
Future<DescribeIdentityProviderResponse> describeIdentityProvider({
required String providerName,
required String userPoolId,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target':
'AWSCognitoIdentityProviderService.DescribeIdentityProvider'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'ProviderName': providerName,
'UserPoolId': userPoolId,
},
);
return DescribeIdentityProviderResponse.fromJson(jsonResponse.body);
}