Specify A Connection When Using Device Authorization Flow

Problem Statement

We have built a CLI application using the Device Authorization Flow. And we also set up a single Github social connection in our tenant.

Can we specify the connection_id as a login query parameter so that users can log straight into our application bypassing the Auth0 login screen?

Solution

The RFC ( RFC 8628 - OAuth 2.0 Device Authorization Grant ) does not specify the ability to specify the connection as an option.

As of the current design, we do not support this feature. And the call to the POST /oauth/device/code endpoint only support ‘audience’, ‘scope’ and ‘client_id’ as parameters.