You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/auth-flows.md
+18-3Lines changed: 18 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -106,16 +106,31 @@ When device authentication is not supported by the server the response body MAY
106
106
}
107
107
```
108
108
109
+
If the `auth_flows` property is present, it MUST be an array of strings.
110
+
If it is missing, it is assumed to have the value `["classic"]`.
111
+
109
112
In this case, PkgAuthentication will execute the Classic Authentication Flow.
110
113
111
-
When device authentication _is_ supported by the server, the response body MUST contain:
114
+
When device authentication _is_ supported by the server, the response body MUST contain the `auth_flows` property, and the array MUST contain the value `device`.
115
+
Additionally, the response body MUST contain the following properties:
116
+
117
+
-`device_authorization_endpoint`: URL to be used to initiate the device authentication flow.
118
+
-`device_token_endpoint`: URL to be used to exchange the device code for a token.
119
+
-`device_token_refresh_url`: URL that can be used to refresh the token.
120
+
121
+
Furthermore, the response body MAY contain the following properties:
122
+
123
+
-`device_token_scope`: Scope to be used when requesting a token. If missing, the scope will be omitted from the device token request.
0 commit comments