odo icon indicating copy to clipboard operation
odo copied to clipboard

`odo dev` automaticaly refresh oidc token before it expires

Open kadel opened this issue 3 years ago • 5 comments

User Story

  • As an odo usser
  • I don't want odo dev command to be interrupted because auth token expired.
  • So that I can keep working without odo dev failing on me due to an expired session.

Acceptance Criteria

  • [ ] when odo dev is 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

kadel avatar Jun 13 '22 13:06 kadel

To clarify: which auth mechanism is used to connect to OpenShift?

rm3l avatar Jun 16 '22 13:06 rm3l

Based on what I read in the docs, OCP is using OAuth for authentication.

dharmit avatar Jun 29 '22 09:06 dharmit

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

feloy avatar Jun 29 '22 14:06 feloy

https://developers.redhat.com/openshift/keep-logining-in#:~:text=In%20a%20typical%20OpenShift%20environment,will%20need%20to%20login%20again.

feloy avatar Aug 04 '22 12:08 feloy

Needs more information: Unable to find solution for implementation / feature at the moment / unable to point

cdrage avatar Aug 04 '22 12:08 cdrage

There isn't a way to automatically refresh a token with oc. Closing it.

valaparthvi avatar Aug 18 '22 13:08 valaparthvi