Giter Site home page Giter Site logo

Comments (7)

netcode avatar netcode commented on May 2, 2024 1

We can't put specific number for the token expiration time , it depends on your situation , just try to make it short as possible. Regards.

from api-security-checklist.

thisconnect avatar thisconnect commented on May 2, 2024

One approach is to have 2 tokens. A short one for api calls and a long one for reauthenticate the short token

from api-security-checklist.

jzaefferer avatar jzaefferer commented on May 2, 2024

Okay, though how does that solve anything? You still have a token with long expiration.

from api-security-checklist.

thisconnect avatar thisconnect commented on May 2, 2024

One aspect to consider token expiration is your usecase medical/banking services might want to invalidate after a "short" time of inactivity e.g 10minutes

If you run a social network about cat pics short may be different

from api-security-checklist.

jzaefferer avatar jzaefferer commented on May 2, 2024

Thanks for that input, too, but it doesn't seem to answer my question.

from api-security-checklist.

netcode avatar netcode commented on May 2, 2024

Its been always a trade off between user expierence and security. So it depends on your situation and what UX you can implement to avoid annoying users.
For me 5-10 minutes of inactivity is enough , and you can show box to extend session limit and refresh to token.

from api-security-checklist.

jzaefferer avatar jzaefferer commented on May 2, 2024

Maybe this discussion helps someone else, but its not what I was hoping for. The checklist still has the same item ("Make token expiration (TTL, RTTL) as short as possible."). 5-10min is definitely too short for the kind of products I'm working on - the only use case where that seems appropriate is online banking. Anyway, thanks for sharing.

from api-security-checklist.

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.