Public Client Device Code Flow – Redirect URI required

Hello! I’m developing an Android app called hhvilt Studio.

I want to register a Public Client using Twitch OAuth Device Code Flow. However, the Developer Console requires an HTTPS OAuth Redirect URL, even though Device Code Flow doesn’t use a redirect URI.

What is the officially supported way to register a Public Client for Device Code Flow without setting up an HTTPS callback?

Thanks!

use the (iirc default) value of http://localhost

It’s noted that if a user when device code flowing, hits “cancel/deny access” they will/may be rerouted to the redirect URI.

So it might be adviased to redirect to a page on the website that the user got your tool from which then says “oh you decided not to allow the connection”

So for example my code example of the device code flow (when I’m developing/testing it) uses https://barrycarlyon.github.io/twitch_misc/ and there I have this twitch_misc/index.html at gh-pages · BarryCarlyon/twitch_misc · GitHub to catch that “exit” route to advise the user what happened, that being they declined the connection (and/or handle other error states).

So it would be benficial to use a “real page” connected to your tool/product for catch error/fall thru states.