Transfer.Client.test_identity_provider(**kwargs)¶If the IdentityProviderType of a file transfer protocol-enabled server is AWS_DIRECTORY_SERVICE or API_Gateway , tests whether your identity provider is set up successfully. We highly recommend that you call this operation to test your authentication method as soon as you create your server. By doing so, you can troubleshoot issues with the identity provider integration to ensure that your users can successfully use the service.
The ServerId and UserName parameters are required. The ServerProtocol , SourceIp , and UserPassword are all optional.
Note
You cannot use TestIdentityProvider if the IdentityProviderType of your server is SERVICE_MANAGED .
Response field is empty.An error occurred (InvalidRequestException) when calling the TestIdentityProvider operation: s-server-IDnot configured for external auth--server-id parameter that does not identify an actual Transfer server, you receive the following error: An error occurred (ResourceNotFoundException) when calling the TestIdentityProvider operation: Unknown serverSee also: AWS API Documentation
Request Syntax
response = client.test_identity_provider(
ServerId='string',
ServerProtocol='SFTP'|'FTP'|'FTPS'|'AS2',
SourceIp='string',
UserName='string',
UserPassword='string'
)
[REQUIRED]
A system-assigned identifier for a specific server. That server's user authentication method is tested with a user name and password.
The type of file transfer protocol to be tested.
The available protocols are:
[REQUIRED]
The name of the user account to be tested.
dict
Response Syntax
{
'Response': 'string',
'StatusCode': 123,
'Message': 'string',
'Url': 'string'
}
Response Structure
(dict) --
Response (string) --
The response that is returned from your API Gateway.
StatusCode (integer) --
The HTTP status code that is the response from your API Gateway.
Message (string) --
A message that indicates whether the test was successful or not.
Note
If an empty string is returned, the most likely cause is that the authentication failed due to an incorrect username or password.
Url (string) --
The endpoint of the service used to authenticate a user.
Exceptions
Transfer.Client.exceptions.ServiceUnavailableExceptionTransfer.Client.exceptions.InternalServiceErrorTransfer.Client.exceptions.InvalidRequestExceptionTransfer.Client.exceptions.ResourceNotFoundException