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

Copyright(c) 2013-2017 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:

  • 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).
  • 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 InitiateAuth . 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 # 
Data RespondToAuthChallenge Source # 

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 # 
Generic RespondToAuthChallenge Source # 
Hashable RespondToAuthChallenge Source # 
ToJSON RespondToAuthChallenge Source # 
NFData RespondToAuthChallenge Source # 

Methods

rnf :: RespondToAuthChallenge -> () #

AWSRequest RespondToAuthChallenge Source # 
ToQuery RespondToAuthChallenge Source # 
ToPath RespondToAuthChallenge Source # 
ToHeaders RespondToAuthChallenge Source # 
type Rep RespondToAuthChallenge Source # 
type Rep RespondToAuthChallenge = D1 (MetaData "RespondToAuthChallenge" "Network.AWS.CognitoIdentityProvider.RespondToAuthChallenge" "amazonka-cognito-idp-1.5.0-6L4ibyApQsq9OINZIpqhIF" False) (C1 (MetaCons "RespondToAuthChallenge'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_rtacChallengeResponses") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Map Text Text)))) (S1 (MetaSel (Just Symbol "_rtacSession") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) ((:*:) (S1 (MetaSel (Just Symbol "_rtacClientId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Sensitive Text))) (S1 (MetaSel (Just Symbol "_rtacChallengeName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 ChallengeNameType)))))
type Rs RespondToAuthChallenge Source # 

Request Lenses

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).

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 InitiateAuth . 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:

data RespondToAuthChallengeResponse Source #

The response to respond to the authentication challenge.

See: respondToAuthChallengeResponse smart constructor.

Instances

Eq RespondToAuthChallengeResponse Source # 
Data RespondToAuthChallengeResponse Source # 

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 # 
Generic RespondToAuthChallengeResponse Source # 
NFData RespondToAuthChallengeResponse Source # 
type Rep RespondToAuthChallengeResponse Source # 
type Rep RespondToAuthChallengeResponse = D1 (MetaData "RespondToAuthChallengeResponse" "Network.AWS.CognitoIdentityProvider.RespondToAuthChallenge" "amazonka-cognito-idp-1.5.0-6L4ibyApQsq9OINZIpqhIF" False) (C1 (MetaCons "RespondToAuthChallengeResponse'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_rtacrsChallengeName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe ChallengeNameType))) (S1 (MetaSel (Just Symbol "_rtacrsChallengeParameters") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Map Text Text))))) ((:*:) (S1 (MetaSel (Just Symbol "_rtacrsAuthenticationResult") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe AuthenticationResultType))) ((:*:) (S1 (MetaSel (Just Symbol "_rtacrsSession") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_rtacrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))))

Response Lenses

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

The challenge parameters. For more information, see InitiateAuth .

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 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.