Giter Site home page Giter Site logo

Add no-store as part of the CacheControl headers to totally prevent response being saved about aspnet.security.openidconnect.server HOT 3 CLOSED

aiampogi avatar aiampogi commented on July 18, 2024
Add no-store as part of the CacheControl headers to totally prevent response being saved

from aspnet.security.openidconnect.server.

Comments (3)

kevinchalet avatar kevinchalet commented on July 18, 2024 1

Great, thanks for the details, @Tratcher.

FWIW, I just took a look at the OAuth 2.0/OIDC spec, and both actually "require" returning a Cache-Control: no-store header:

I guess we'll probably want to comply with the specs at some point 🤣

from aspnet.security.openidconnect.server.

kevinchalet avatar kevinchalet commented on July 18, 2024

I'm not opposed to changing that, but it's worth noting that we use the same header value as ASP.NET Core's OIDC/cookies handlers.

@Tratcher is there any particular guideline regarding caching headers in ASP.NET Core? I have the feeling things are a bit inconsistent out there.

from aspnet.security.openidconnect.server.

Tratcher avatar Tratcher commented on July 18, 2024

Yes it's inconsistent. I have one scenario on my backlog where no-store looks like an improvement, but otherwise it's not clear that it will make a difference to most responses & clients.

from aspnet.security.openidconnect.server.

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.