public DeviceAuthenticationMethod(ILogger logger, IDevicePreferences preferences, IAWSSDK aws, string region, string userPoolId, string clientId, string identityPoolId) { _logger = logger; _preferences = preferences; _aws = aws; _region = region; _userPoolId = userPoolId; _clientId = clientId; _identityPoolId = identityPoolId; _cipClient = _aws.CreateCognitoIdentityProviderClient( _aws.CreateAnonymousAWSCredentials(), _region ); }
public IAmazonCognitoIdentityProvider CreateCognitoIdentityProviderClient(IAWSCredentials credentials, string region) { return(_sdk.CreateCognitoIdentityProviderClient(credentials, region)); }