`odo dev` automaticaly refresh oidc token before it expires
User Story
- As an odo usser
- I don't want
odo devcommand to be interrupted because auth token expired. - So that I can keep working without
odo devfailing on me due to an expired session.
Acceptance Criteria
- [ ] when
odo devis running, it should periodically check the validity of the authentication token. The first check should be right after start-up. If the token is going to expire in the next 10 minutes odo should refresh the token. If it will be valid in the next 10 mins, do nothing and wait for 10 minutes to check the token again.
/kind user-story
To clarify: which auth mechanism is used to connect to OpenShift?
Based on what I read in the docs, OCP is using OAuth for authentication.
As I understand, OpenShift does not use OIDC by default, but an OpenID connect Identity provider can be specified, using these steps: https://docs.openshift.com/container-platform/4.10/authentication/identity_providers/configuring-oidc-identity-provider.html
https://developers.redhat.com/openshift/keep-logining-in#:~:text=In%20a%20typical%20OpenShift%20environment,will%20need%20to%20login%20again.
Needs more information: Unable to find solution for implementation / feature at the moment / unable to point
There isn't a way to automatically refresh a token with oc. Closing it.