I am using AWS cognito to provide the JWT token auth for my apis.And i am using Authorization_code grand type.And when i click on View Hosted UI, it's redirecting me to login and after success giving the code and using that code, i am generating tokens.As f now it's fine.When i click the on View hosted UI again immedeatly, it's again generating new code, and previously generated tokens are not working.So How do i make the Hosted UI to not generate the code if already code is generated.Or How do i get the same code if already code is generated.Please help me on this.
View Hosted UI button generating multiple codes for multiple clicks in AWS
107 Views Asked by venkat At
1
There are 1 best solutions below
Related Questions in AMAZON-COGNITO
- Why does terraform aws_cognito_user_pool always show as "updated in-place" on every single terraform plan?
- AWS Cognito Multi-tenant Integration | Ok to use Client’s Idp?
- How do I set custom attributes on a user who signs up via amplify's Authenticator?
- Python AWS Cognito authenticate to other user pool as in Javascript
- How to use multiple user pools with AWS Amplify in React?
- Integrating Sign in with Apple into React Native App with AWS Cognito Authentication
- Secure to share Access Token over public API using CORs?
- Automating Password Reset in Cognito Hosted UI for Users with Expired Temporary Passwords
- How can I add an identity provider to an existing user in an AWS Cognito user pool using the OIDC protocol?
- How to use Android S3 TransferUtility without Cognito?
- can not import Auth from aws-amplify in Angular even though docs says I can
- AWS Cognito SES FROM E-mail address only verified e-mail address allowed no verified domains
- Google signin for aws cognito using Amplify not working. | signInWithRedirect in amplify not working in React native
- AWS AppRunner: Redirect URI Mismatch Error with Amazon Cognito
- Add Cognito to Load Balancer Listener via AWS CLI
Related Questions in AWS-USERPOOLS
- Why does terraform aws_cognito_user_pool always show as "updated in-place" on every single terraform plan?
- Cognito User Invite
- Cognito Visitor Bind to Future User Pool Identity
- How to automatically set email_verified to True after federated user signed up and linked to local user in Cognito?
- Resolve: Client <XYZ> is configured for secret but secret was not received
- How to fix GlobalSignOutCommand JWT for AWS Cognito?
- How to implement forgot password route typescript AWS Cognito Userpool?
- How to send verification email to new a cognito user using signup method?
- How do I avoid manually updating my Google OAuth client ID for every new Cognito user pool?
- To create a login at the AWS amplify React Application
- Search AD users through Cognito in Spring Boot
- AWS Cognito issue while login with custom OpenID Connect
- React - AWS Amplify Auth Federated Sign In Facebook
- How do I programmatically setup a userpool in AWS Cognito using Go APIs?
- Update mobile number during login if MFA is required in cognito and only sms mfa is allowed
Related Questions in AMAZON-COGNITO-TRIGGERS
- AWS Cognito custom authentication flow not works
- cognito trigger VerifyAuthChallengeResponse share information with PreTokenGeneration
- Cognito migration handler returning "Incorrect username or password."
- AWS Cognito, overridden `CustomMessage_SignUp` sending the default message regardless
- AWS Lamba with Cognito - Unable to use style tag on custom email message
- Triggering AWS Cognito Pre-Auth lambda
- Cognito SAML authentication fails after first time login
- AWS CloudFormation - How to add Lambda Trigger to existing Cognito User Pool
- How to change user password from Cognito Forgot Password using Lambda and triggers?
- AWS Cognito UI not allowing navigation after authentication
- Create cognito sync trigger to lambda function using Terraform
- Importing users to Database while federating from ADFS
- serverless deploy fails while creating Cognito PostConfirmation lambda trigger
- Is it possible to invoke SOFTWARE_TOKEN_MFA challenge (or any other MFA challenge) in Cognito from CUSTOM_AUTH flow?
- What are you supposed to return from a lambda trigger function of type "Post confirmation trigger" in c#?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Clicking on 'Hosted UI' will always try to log you in, as its noting but redirect to the /oauth2/authorize page with your parameters such as client_id,response_type,scope,redirect_url etc. For example, it will look like this.
I assume your question is for testing logic in your login process, and you don't want to open incognito session every time you want to test it. If this is the case, you can call the /logout endpoint after you have generated your tokens and finished processing it. This will invalidate the session, and ask you to login when you click 'Hosted UI' again.
The /logout endpoint should be called with GET request. Example
More about Logout endpoint in AWS Cognito here