
zzr31 (zzr31) asked a question.
I've followed the guide for Device Authorization Grant here https://developer.okta.com/docs/guides/device-authorization-grant/main/ but was wondering if it was possible/made sense to also use PKCE for these requests? It doesn't seem like the `code_challenge` is accepted when making the initial request at `/device/authorize`

Hello @zzr31 (zzr31) Thank you for reacting out to our Community!
Please see below the required documentation to achieve this:
https://developer.okta.com/docs/guides/implement-grant-type/authcodepkce/main/#about-the-authorization-code-grant-with-pkce
My advice would be to leverage the Okta Developer forums for this type of questions and take advantage of their expertise.
https://devforum.okta.com/
The Okta Community Catalysts Program is now live. Collect online badges when you participate in the Okta Help Center Questions community. Learn more here.
Community members help others by clicking Upvote or Select as Best on responses. Try it today.
Hi @paul.stiniguta1.508386743840768E12 (Okta, Inc.) thanks for your response. I had taken a look at that previously but it doesn't seem to apply in this case. It is a command line app similar to https://developer.okta.com/blog/2021/08/20/cli-ssh-oauth-device-grant so it doesn't have a browser to receive the redirect and complete the authorization code flow. So my question is whether or not it will be possible to use PKCE with the device grant - it doesn't seem to accept the code_challenge at /device/authorize so the code_verifier can't be checked when it comes time to exchange the device code for a token. Thanks