Giter VIP home page Giter VIP logo

Comments (8)

cmintey avatar cmintey commented on June 7, 2024

If you restart Mealie does it work again?

from mealie.

Aurel004 avatar Aurel004 commented on June 7, 2024

If you restart Mealie does it work again?

Just tried and yes it does work again, temporarily I guess

from mealie.

cmintey avatar cmintey commented on June 7, 2024

Mealie caches the jwks_uri, so if the keys rotate which maybe Zitadel does, then Mealie would still have the old keys and could be invalid. Restarting the container will clear the cache. I think currently the cache is indefinite, probably need to make it only last a few hours...

from mealie.

Aurel004 avatar Aurel004 commented on June 7, 2024

I see, the default in Zitadel is 12 hours and configurable
I'm not an expert with it, does this mean every 12 hours, I do not have to log in back but the token is refreshed to a new one ?

image

from mealie.

cmintey avatar cmintey commented on June 7, 2024

We exchange your id token for a Mealie token, so the id token lifetime doesn't matter too much. By default the Mealie token lifespan is 24hrs I think. That's configurable either by setting the token expiry env variable (don't know it off the top of my head) or you can set OIDC_REMEMBER_ME=true to have an extended session of like 2 weeks.

It's the key set that I was talking about is cached. The key set is what is used to verify the id token signature so we know it's legit

from mealie.

Aurel004 avatar Aurel004 commented on June 7, 2024

So I should give it a try to set OIDC_REMEMBER_ME to false ?

from mealie.

cmintey avatar cmintey commented on June 7, 2024

Set it to true and you won't be logged out after 24 hours

from mealie.

Aurel004 avatar Aurel004 commented on June 7, 2024

It's already set to True
I'm not logged out, it happens, I think, when I press "Disconnect" on mealie and then try to log in back

from mealie.

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.