amazonka-cognito-idp-1.6.1: Amazon Cognito Identity Provider SDK.

Copyright(c) 2013-2018 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.CognitoIdentityProvider.RespondToAuthChallenge

Contents

Description

Responds to the authentication challenge.

Synopsis

Creating a Request

respondToAuthChallenge Source #

Creates a value of RespondToAuthChallenge with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • rtacAnalyticsMetadata - The Amazon Pinpoint analytics metadata for collecting metrics for RespondToAuthChallenge calls.
  • rtacChallengeResponses - The challenge responses. These are inputs corresponding to the value of ChallengeName , for example: * SMS_MFA : SMS_MFA_CODE , USERNAME , SECRET_HASH (if app client is configured with client secret). * PASSWORD_VERIFIER : PASSWORD_CLAIM_SIGNATURE , PASSWORD_CLAIM_SECRET_BLOCK , TIMESTAMP , USERNAME , SECRET_HASH (if app client is configured with client secret). * NEW_PASSWORD_REQUIRED : NEW_PASSWORD , any other required attributes, USERNAME , SECRET_HASH (if app client is configured with client secret).
  • rtacUserContextData - Contextual data such as the user's device fingerprint, IP address, or location used for evaluating the risk of an unexpected event by Amazon Cognito advanced security.
  • rtacSession - The session which should be passed both ways in challenge-response calls to the service. If InitiateAuth or RespondToAuthChallenge API call determines that the caller needs to go through another challenge, they return a session with other challenge parameters. This session should be passed as it is to the next RespondToAuthChallenge API call.
  • rtacClientId - The app client ID.
  • rtacChallengeName - The challenge name. For more information, see . ADMIN_NO_SRP_AUTH is not a valid value.

data RespondToAuthChallenge Source #

The request to respond to an authentication challenge.

See: respondToAuthChallenge smart constructor.

Instances
Eq RespondToAuthChallenge Source # 
Instance details

Defined in Network.AWS.CognitoIdentityProvider.RespondToAuthChallenge

Data RespondToAuthChallenge Source # 
Instance details

Defined in Network.AWS.CognitoIdentityProvider.RespondToAuthChallenge

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> RespondToAuthChallenge -> c RespondToAuthChallenge #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c RespondToAuthChallenge #

toConstr :: RespondToAuthChallenge -> Constr #

dataTypeOf :: RespondToAuthChallenge -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c RespondToAuthChallenge) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c RespondToAuthChallenge) #

gmapT :: (forall b. Data b => b -> b) -> RespondToAuthChallenge -> RespondToAuthChallenge #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> RespondToAuthChallenge -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> RespondToAuthChallenge -> r #

gmapQ :: (forall d. Data d => d -> u) -> RespondToAuthChallenge -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> RespondToAuthChallenge -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> RespondToAuthChallenge -> m RespondToAuthChallenge #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> RespondToAuthChallenge -> m RespondToAuthChallenge #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> RespondToAuthChallenge -> m RespondToAuthChallenge #

Show RespondToAuthChallenge Source # 
Instance details

Defined in Network.AWS.CognitoIdentityProvider.RespondToAuthChallenge

Generic RespondToAuthChallenge Source # 
Instance details

Defined in Network.AWS.CognitoIdentityProvider.RespondToAuthChallenge

Associated Types

type Rep RespondToAuthChallenge :: Type -> Type #

Hashable RespondToAuthChallenge Source # 
Instance details

Defined in Network.AWS.CognitoIdentityProvider.RespondToAuthChallenge

ToJSON RespondToAuthChallenge Source # 
Instance details

Defined in Network.AWS.CognitoIdentityProvider.RespondToAuthChallenge

AWSRequest RespondToAuthChallenge Source # 
Instance details

Defined in Network.AWS.CognitoIdentityProvider.RespondToAuthChallenge

Associated Types

type Rs RespondToAuthChallenge :: Type #

ToHeaders RespondToAuthChallenge Source # 
Instance details

Defined in Network.AWS.CognitoIdentityProvider.RespondToAuthChallenge

ToPath RespondToAuthChallenge Source # 
Instance details

Defined in Network.AWS.CognitoIdentityProvider.RespondToAuthChallenge

ToQuery RespondToAuthChallenge Source # 
Instance details

Defined in Network.AWS.CognitoIdentityProvider.RespondToAuthChallenge

NFData RespondToAuthChallenge Source # 
Instance details

Defined in Network.AWS.CognitoIdentityProvider.RespondToAuthChallenge

Methods

rnf :: RespondToAuthChallenge -> () #

type Rep RespondToAuthChallenge Source # 
Instance details

Defined in Network.AWS.CognitoIdentityProvider.RespondToAuthChallenge

type Rep RespondToAuthChallenge = D1 (MetaData "RespondToAuthChallenge" "Network.AWS.CognitoIdentityProvider.RespondToAuthChallenge" "amazonka-cognito-idp-1.6.1-IATNKTGZSOc4TejpW4Ifw7" False) (C1 (MetaCons "RespondToAuthChallenge'" PrefixI True) ((S1 (MetaSel (Just "_rtacAnalyticsMetadata") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe AnalyticsMetadataType)) :*: (S1 (MetaSel (Just "_rtacChallengeResponses") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Map Text Text))) :*: S1 (MetaSel (Just "_rtacUserContextData") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe UserContextDataType)))) :*: (S1 (MetaSel (Just "_rtacSession") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_rtacClientId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Sensitive Text)) :*: S1 (MetaSel (Just "_rtacChallengeName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 ChallengeNameType)))))
type Rs RespondToAuthChallenge Source # 
Instance details

Defined in Network.AWS.CognitoIdentityProvider.RespondToAuthChallenge

Request Lenses

rtacAnalyticsMetadata :: Lens' RespondToAuthChallenge (Maybe AnalyticsMetadataType) Source #

The Amazon Pinpoint analytics metadata for collecting metrics for RespondToAuthChallenge calls.

rtacChallengeResponses :: Lens' RespondToAuthChallenge (HashMap Text Text) Source #

The challenge responses. These are inputs corresponding to the value of ChallengeName , for example: * SMS_MFA : SMS_MFA_CODE , USERNAME , SECRET_HASH (if app client is configured with client secret). * PASSWORD_VERIFIER : PASSWORD_CLAIM_SIGNATURE , PASSWORD_CLAIM_SECRET_BLOCK , TIMESTAMP , USERNAME , SECRET_HASH (if app client is configured with client secret). * NEW_PASSWORD_REQUIRED : NEW_PASSWORD , any other required attributes, USERNAME , SECRET_HASH (if app client is configured with client secret).

rtacUserContextData :: Lens' RespondToAuthChallenge (Maybe UserContextDataType) Source #

Contextual data such as the user's device fingerprint, IP address, or location used for evaluating the risk of an unexpected event by Amazon Cognito advanced security.

rtacSession :: Lens' RespondToAuthChallenge (Maybe Text) Source #

The session which should be passed both ways in challenge-response calls to the service. If InitiateAuth or RespondToAuthChallenge API call determines that the caller needs to go through another challenge, they return a session with other challenge parameters. This session should be passed as it is to the next RespondToAuthChallenge API call.

rtacChallengeName :: Lens' RespondToAuthChallenge ChallengeNameType Source #

The challenge name. For more information, see . ADMIN_NO_SRP_AUTH is not a valid value.

Destructuring the Response

respondToAuthChallengeResponse Source #

Creates a value of RespondToAuthChallengeResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • rtacrsChallengeName - The challenge name. For more information, see .
  • rtacrsChallengeParameters - The challenge parameters. For more information, see .
  • rtacrsAuthenticationResult - The result returned by the server in response to the request to respond to the authentication challenge.
  • rtacrsSession - The session which should be passed both ways in challenge-response calls to the service. If the or API call determines that the caller needs to go through another challenge, they return a session with other challenge parameters. This session should be passed as it is to the next RespondToAuthChallenge API call.
  • rtacrsResponseStatus - -- | The response status code.

data RespondToAuthChallengeResponse Source #

The response to respond to the authentication challenge.

See: respondToAuthChallengeResponse smart constructor.

Instances
Eq RespondToAuthChallengeResponse Source # 
Instance details

Defined in Network.AWS.CognitoIdentityProvider.RespondToAuthChallenge

Data RespondToAuthChallengeResponse Source # 
Instance details

Defined in Network.AWS.CognitoIdentityProvider.RespondToAuthChallenge

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> RespondToAuthChallengeResponse -> c RespondToAuthChallengeResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c RespondToAuthChallengeResponse #

toConstr :: RespondToAuthChallengeResponse -> Constr #

dataTypeOf :: RespondToAuthChallengeResponse -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c RespondToAuthChallengeResponse) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c RespondToAuthChallengeResponse) #

gmapT :: (forall b. Data b => b -> b) -> RespondToAuthChallengeResponse -> RespondToAuthChallengeResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> RespondToAuthChallengeResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> RespondToAuthChallengeResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> RespondToAuthChallengeResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> RespondToAuthChallengeResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> RespondToAuthChallengeResponse -> m RespondToAuthChallengeResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> RespondToAuthChallengeResponse -> m RespondToAuthChallengeResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> RespondToAuthChallengeResponse -> m RespondToAuthChallengeResponse #

Show RespondToAuthChallengeResponse Source # 
Instance details

Defined in Network.AWS.CognitoIdentityProvider.RespondToAuthChallenge

Generic RespondToAuthChallengeResponse Source # 
Instance details

Defined in Network.AWS.CognitoIdentityProvider.RespondToAuthChallenge

Associated Types

type Rep RespondToAuthChallengeResponse :: Type -> Type #

NFData RespondToAuthChallengeResponse Source # 
Instance details

Defined in Network.AWS.CognitoIdentityProvider.RespondToAuthChallenge

type Rep RespondToAuthChallengeResponse Source # 
Instance details

Defined in Network.AWS.CognitoIdentityProvider.RespondToAuthChallenge

type Rep RespondToAuthChallengeResponse = D1 (MetaData "RespondToAuthChallengeResponse" "Network.AWS.CognitoIdentityProvider.RespondToAuthChallenge" "amazonka-cognito-idp-1.6.1-IATNKTGZSOc4TejpW4Ifw7" False) (C1 (MetaCons "RespondToAuthChallengeResponse'" PrefixI True) ((S1 (MetaSel (Just "_rtacrsChallengeName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe ChallengeNameType)) :*: S1 (MetaSel (Just "_rtacrsChallengeParameters") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Map Text Text)))) :*: (S1 (MetaSel (Just "_rtacrsAuthenticationResult") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe AuthenticationResultType)) :*: (S1 (MetaSel (Just "_rtacrsSession") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_rtacrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))))

Response Lenses

rtacrsChallengeName :: Lens' RespondToAuthChallengeResponse (Maybe ChallengeNameType) Source #

The challenge name. For more information, see .

rtacrsChallengeParameters :: Lens' RespondToAuthChallengeResponse (HashMap Text Text) Source #

The challenge parameters. For more information, see .

rtacrsAuthenticationResult :: Lens' RespondToAuthChallengeResponse (Maybe AuthenticationResultType) Source #

The result returned by the server in response to the request to respond to the authentication challenge.

rtacrsSession :: Lens' RespondToAuthChallengeResponse (Maybe Text) Source #

The session which should be passed both ways in challenge-response calls to the service. If the or API call determines that the caller needs to go through another challenge, they return a session with other challenge parameters. This session should be passed as it is to the next RespondToAuthChallenge API call.