Giter VIP home page Giter VIP logo

Comments (5)

sapessi avatar sapessi commented on September 24, 2024

@davidmco65 can you also post a sample events here. Looks like claims is a string instead of an object or the other way around.

from aws-serverless-java-container.

davidmco65 avatar davidmco65 commented on September 24, 2024

OK, this was my fault. I had not quite changed all references to the framework to 0.5-SNAPSHOT. I had one still using 0.3 and some still using 0.4. Once I cleaned everything out and rebuilt/redeployed, it works.
My apologies!
One question though: Is the JWT token reuseable/refreshable and what is its lifetime?

Thanks again!
David

from aws-serverless-java-container.

sapessi avatar sapessi commented on September 24, 2024

Cool. I'll close this one then.

@davidmco65 The token lasts for 1 hour, in the response from Cognito you also get a refresh token that you can use to renew the identity and access tokens.

from aws-serverless-java-container.

davidmco65 avatar davidmco65 commented on September 24, 2024

Any chance we can configure how long the token lasts? I'm not getting the credentials, so I don't get the refresh token either.

from aws-serverless-java-container.

sapessi avatar sapessi commented on September 24, 2024

You cannot configure the duration of the token. However, Cognito User Pools should return a refresh token after a successful auth: https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_AuthenticationResultType.html

from aws-serverless-java-container.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.