-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
authenticate_oidc: No client_id found (when OIDC provider does not list refresh_token grant type) #530
Comments
Looking into that. Do you have the full stack trace of that error? |
first guess is that |
this indicates that you are only interested in device code grant, and not refresh token. Using That being said, I think there is a case to be made to make |
I've also tried it with urn:ietf:params:oauth:grant-type:device_code as default client and that lead to the same error. |
indeed, with or without the |
The Google OIDC is a bit weird in that it supports refresh_token, but not the offline_access scope. I always thought they were somewhat related, maybe they are not though. Also fiddling around with it in Open-EO/openeo-web-editor#319 - Maybe the primary issue is actually that we don't usually list offline_access in the scopes that are reported by the default clients? Should they do that? Stack trace based on your last commit:
|
With that POC commit you should also disable refresh token storage FYI The other workaround mentioned above (which should work with a normal release of python client) is to use
Have you tried that already with your setup? |
This works indeed, thanks. A bit cumbersome that users have to specify a parameter. But generally, I still struggle to understand whether the Google Auth supports PKCE for device_code or not. Some docy imply it does, but all requests ask me to provide a secret. So may not be supported. Generally, I got it working in the Editor, but have still issues connecting through Google without a secret...
Yes, works (with the caveats above). This also works: More to be investigated (also the relation between offline_access scope and refresh_token grant). |
I have a backend with the following response to GET /credentials/oidc:
I'm running:
And get unexpectedly the following error:
Why is that? I think there's a reasonable default client ID available. (All client IDs are placeholders in the example.)
The text was updated successfully, but these errors were encountered: