Open-EO / openeo-python-client

Python client API for OpenEO
https://open-eo.github.io/openeo-python-client/
Apache License 2.0
156 stars 42 forks source link

support client credentials grant from `Connection.authenticate_oidc()` #419

Closed soxofaan closed 1 year ago

soxofaan commented 1 year ago

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, ...)

soxofaan commented 1 year ago

(internal refs: CDAS-619, CDAS-622)

soxofaan commented 1 year ago

worked on PR last week: #429

soxofaan commented 1 year ago

already merged #429 to have the basics in master

further finetuning:

soxofaan commented 1 year ago

improved documentation now as well

time to close