Device Authorization Endpoint#
Device Authorization endpoint#
The URI to invoke the Device Authorization Endpoint in Janssen Auth Server can be found by checking the introspection_endpoint claim of the OpenID Connect configuration response, typically deployed at https://<my.jans.server>/.well-known/openid-configuration
"device_authorization_endpoint" : "https://<my.jans.server>/jans-auth/restv1/device_authorization"
Invoking the endpoint in Device Authorization Flow#
The Device Authorization Grant defined by RFC 8628 contains a call to the Device Authorization endpoint in Step 2 of the diagram below. The details of the entire flow can be found in this article
Request:
POST /restv1/device_authorization HTTP/1.1
Content-Type: application/x-www-form-urlencoded
Host: test.jans.org
Authorization: Basic MTIzLTEyMy0xMjM6WkE1aWxpTFFDYUR4
client_id=123-123-123&scope=openid+profile+address+email+phone
HTTP/1.1 200
Content-Length: 307
Content-Type: application/json
Server: Jetty(9.4.19.v20190610)
{
"user_code": "SJFP-DTPL",
"device_code": "aeb28bdc90d806ac58d4b0f832f06c3ac9c4bd03292f0c09",
"interval": 5,
"verification_uri_complete": "https://test.jans.io:8443/device-code?user_code=SJFP-DTPL",
"verification_uri": "https://test.jans.io:8443/device-code",
"expires_in": 1800
}
Last update:
4 weeks ago2025-03-25
Created: 2 years ago2022-07-21
Created: 2 years ago2022-07-21