Version 6.x has been out of support since May 14, 2024, and this corresponding section of the documentation is no longer maintained. We strongly recommend you upgrade to the latest supported version of 7.x and read the latest version of this documentation.
The device authorization endpoint can be used to request device and user codes. This endpoint is used to start the device flow authorization process.
client_id
client identifier (required)
client_secret
client secret either in the post body, or as a basic authentication header. Optional.
scope
one or more registered scopes. If not specified, a token for all explicitly allowed scopes will be issued
POST /connect/deviceauthorization
client_id=client1&
client_secret=secret&
scope=openid api1
You can use the IdentityModel client library to programmatically interact with the protocol endpoint from .NET code.
using IdentityModel.Client;
var client = new HttpClient();
var response = await client.RequestDeviceAuthorizationAsync(new DeviceAuthorizationRequest
{
Address = "https://demo.duendesoftware.com/connect/device_authorize",
ClientId = "device"
});