Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Re-attempt to get oxAuth metadata and token #12
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
Also it will be useful to add timer process to get up to date configuration from oxTrust periodically to avoid Passport restart.
With this fix, a timer task runs upon service start and at every 30s it hits the endpoint
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.