tapis-project / authenticator

BSD 3-Clause "New" or "Revised" License
1 stars 3 forks source link

The device_code grant erroneously requires client credentials on token endpoint #32

Closed joestubbs closed 4 months ago

joestubbs commented 1 year ago

When generating a token as part of the device_code grant type (i.e., the last step) the client id and key are both required: if we try a call like this: $ curl -H "content-type: application/json" -d '{"grant_type": "device_code", "device_code": "some_code"}' https://icicleai.tapis.io/v3/oauth2/tokens we get an error like this: {"message":"Invalid client credentials: None, None. session: <SecureCookieSession {}>","metadata":{},"result":null,"status":"error","version":"dev"} The whole point of device code is that it can replace password grant for CLIs and other "headless" apps, so this needs to be fixed.