Git Product home page Git Product logo

Comments (3)

afroDC avatar afroDC commented on June 15, 2024

@yurem How would you like to see this re-try initialization on request process work?

from gluu-passport.

yurem avatar yurem commented on June 15, 2024

This app gets configuration from oxTrust. But it also requires oxAuth because this endpoint protected by UMA. Hence Passprot in some case can't get it configuration. As result it just print error in log.

Passprot app should try to get configuration at startup and store load_configuration_state (now it just print error). On next request to app context it should check load_configuration_state and try to obtain configuration again.

Also it will be useful to add timer process to get up to date configuration from oxTrust periodically to avoid Passport restart.

from gluu-passport.

jgomer2001 avatar jgomer2001 commented on June 15, 2024

With this fix, a timer task runs upon service start and at every 30s it hits the endpoint /identity/restv1/passport/config using the UMA 2 flow.

If some error is found in any of the flow steps (e.g. underlying ox services down), a message is added to log, but the service continues up and running. Hopefully in a subsequent execution a resonse will be obtained successfully.

Also, from now on there is no need to restart passport if a strategy clientid/secret is added/changed.

from gluu-passport.

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.