Open-EO / Open-EO/openeo-python-client
authenticate_oidc: No client_id found (when OIDC provider does not list refresh_token grant type)
Open
@soxofaan is already working on this.
Since Jan 19, 2024.
auth
feature request
- Dominant language
- Python
- Stars
- 217
- Forks
- 56
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 2
Description
I have a backend with the following response to GET /credentials/oidc:
{
"providers":[
{
"id":"google",
"issuer":"https://accounts.google.com",
"title":"Google",
"description":"Login with your Google Earth Engine account.",
"scopes":[
"openid",
"email",
"https://www.googleapis.com/auth/earthengine"
],
"default_clients":[
{
"id":"123.apps.googleusercontent.com",
"grant_types":[
"implicit"
],
"redirect_urls":[
"https://editor.openeo.org/",
"http://localhost/"
]
},
{
"id":"abc.apps.googleusercontent.com",
"grant_types":[
"urn:ietf:params:oauth:grant-type:device_code+pkce"
]
}
]
}
]
}
I'm running:
import openeo
connection = openeo.connect("http://localhost:8080")
connection.authenticate_oidc()
And get unexpectedly the following error:
OpenEoClientException: No client_id found.
Why is that? I think there's a reasonable default client ID available. (All client IDs are placeholders in the example.)
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.