Device Authorization Grant Flow

95 views
Skip to first unread message

Serkan Taş

unread,
Oct 4, 2021, 8:22:44 AM10/4/21
to Keycloak User
Hi,

To use DAGF, fist a request is sent to get device code and a link to sign in and authorize device.

{
	"device_code": "device_code",
	"user_code": "ZZYQ-DUPL",
	"verification_uri": "https://keycloak/auth/realms/myrealm/device",
	"verification_uri_complete": "https://keycloak/auth/realms/myrealm/device?user_code=user_code",
	"expires_in": 600,
	"interval": 5
}
Is it possible ot use rest end point to authorize device programatically over rest api without using KC UI ?

Thanks in advance

Pedro Igor Craveiro e Silva

unread,
Oct 4, 2021, 8:37:49 AM10/4/21
to Serkan Taş, Keycloak User
The user needs to authenticate. What is the use case?

--
You received this message because you are subscribed to the Google Groups "Keycloak User" group.
To unsubscribe from this group and stop receiving emails from it, send an email to keycloak-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/keycloak-user/92d067ee-3281-4a30-e0ce-ae58136ef54f%40gmail.com.

Serkan Taş

unread,
Oct 4, 2021, 8:39:51 AM10/4/21
to Pedro Igor Craveiro e Silva, Keycloak User
KC UI is not open to public. User is going to authenticate through our own endpoşnts and UI.

We want to verify device getting user credentials from user through our own UI.

Is it possible ?

Pedro Igor Craveiro e Silva

unread,
Oct 4, 2021, 8:47:03 AM10/4/21
to Serkan Taş, Keycloak User
Looks like related to resource owner password grant type ... But I'm afraid you won't be able to use it because device flow implementation is tied coupled with the code flow.
Reply all
Reply to author
Forward
0 new messages