Hi Leo,
Thanks for the reply, the blog was a nice read!
Anyway, I'm not sure if it's my setup or still an issue with the new flow, but it appears my requested scopes are not displayed on the user_authorize page?
So I perform the request:
POST /mga/sps/oauth/oauth20/device_authorize HTTP/1.1
Host: domain.xyz
Content-Type: application/x-www-form-urlencoded
Accept: application/json
client_id=eLa6UXp155rxFUixqvZ2&scope=openid
Navigate to the returned verification_uri_complete, and notice the following:

Whereas, with a regular Authorization Code flow, I receive the following:
GET /mga/sps/oauth/oauth20/authorize?scope=openid profile xyz&response_type=code&client_id=oM9kGpPNrCe4xTbX2lFG&redirect_uri=http://deadend.local&state=xyz HTTP/1.1
Host: domain.xyz

Is there a way to persist this? The only way I can display the scope is by manually appending it as a query parameter:

Another issue I'm having is when I deny the authorization request:

It seems to display the "error": "access_denied" (as defined by
https://tools.ietf.org/html/draft-ietf-oauth-device-flow-10#section-3.5) in my browser, instead of for my client's backchannel requests.
Upon denying, my client receives:
{
"error_description": "FBTOAU256E Pending. The user code is not yet verified.",
"error": "authorization_pending"
}
Up until the point of where the device code expires:
{
"error_description": "FBTOAU211E The [authorization_grant] received of type [urn:ietf:params:oauth:grant-type:device_code] does not exist.",
"error": "invalid_token"
}
Whereas I would expect an immediate "access_denied The end-user denied the authorization request." error.
Thanks for noticing.
------------------------------
Kind regards,
Dries Eestermans
IS4U
------------------------------
Original Message:
Sent: 07-13-2018 02:15
From: Leo Farrell
Subject: OAuth: Device Flows
Hi Dries,
I've updated the article. It should replicate shortly.
Thanks you for letting me know.
------------------------------
Leo Farrell
------------------------------