Connection.authenticate_oidc() currently automatically switches between refresh token auth and device code flow auth depending on the presence of recent refresh tokens.
With growing interest in client credential auth, we should also add support for that under authenticate_oidc, that is triggered from a config setting, or the presence of certain environment variables.
That will make it possible to use a generic connection.authenticate_oidc() snippet in code samples, notebooks, ..., which will then automatically use an appropriate auth method (device code for first time user, client credentials for CI/CD test use cases, ...)
Connection.authenticate_oidc()
currently automatically switches between refresh token auth and device code flow auth depending on the presence of recent refresh tokens.With growing interest in client credential auth, we should also add support for that under
authenticate_oidc
, that is triggered from a config setting, or the presence of certain environment variables.That will make it possible to use a generic
connection.authenticate_oidc()
snippet in code samples, notebooks, ..., which will then automatically use an appropriate auth method (device code for first time user, client credentials for CI/CD test use cases, ...)