186 lines
4.2 KiB
JSON
186 lines
4.2 KiB
JSON
[
|
|
{
|
|
"id": "issuer-missing-client",
|
|
"path": "/oauth/device/code",
|
|
"method": "POST",
|
|
"expected_status": 400,
|
|
"expected_json": {
|
|
"/error": "invalid_request",
|
|
"/error_description": "The request is missing a required parameter, includes an invalid parameter value, includes a parameter more than once, or is otherwise malformed.",
|
|
"/hint": "Check the `client_id` parameter"
|
|
},
|
|
"compare_headers": [
|
|
"Cache-Control",
|
|
"Pragma",
|
|
"WWW-Authenticate"
|
|
],
|
|
"expected_headers": {
|
|
"Cache-Control": "no-cache, private",
|
|
"Pragma": null,
|
|
"WWW-Authenticate": null
|
|
},
|
|
"form": {}
|
|
},
|
|
{
|
|
"id": "issuer-unknown-client",
|
|
"path": "/oauth/device/code",
|
|
"method": "POST",
|
|
"expected_status": 401,
|
|
"expected_json": {
|
|
"/error": "invalid_client",
|
|
"/error_description": "Client authentication failed"
|
|
},
|
|
"compare_headers": [
|
|
"Cache-Control",
|
|
"Pragma",
|
|
"WWW-Authenticate"
|
|
],
|
|
"expected_headers": {
|
|
"Cache-Control": "no-cache, private",
|
|
"Pragma": null,
|
|
"WWW-Authenticate": null
|
|
},
|
|
"form": {
|
|
"client_id": "unknown-device-client"
|
|
}
|
|
},
|
|
{
|
|
"id": "GET /oauth/device",
|
|
"path": "/oauth/device",
|
|
"method": "GET",
|
|
"expected_status": 500,
|
|
"expected_json": {
|
|
"/message": "Server Error"
|
|
},
|
|
"compare_headers": [
|
|
"Cache-Control",
|
|
"Pragma",
|
|
"WWW-Authenticate"
|
|
],
|
|
"expected_headers": {
|
|
"Cache-Control": "no-cache, private",
|
|
"Pragma": null,
|
|
"WWW-Authenticate": null
|
|
}
|
|
},
|
|
{
|
|
"id": "GET /oauth/device/authorize",
|
|
"path": "/oauth/device/authorize",
|
|
"method": "GET",
|
|
"expected_status": 401,
|
|
"expected_json": {
|
|
"/message": "Unauthenticated."
|
|
},
|
|
"compare_headers": [
|
|
"Cache-Control",
|
|
"Pragma",
|
|
"WWW-Authenticate"
|
|
],
|
|
"expected_headers": {
|
|
"Cache-Control": "no-cache, private",
|
|
"Pragma": null,
|
|
"WWW-Authenticate": null
|
|
}
|
|
},
|
|
{
|
|
"id": "POST /oauth/device/authorize",
|
|
"path": "/oauth/device/authorize",
|
|
"method": "POST",
|
|
"expected_status": 419,
|
|
"expected_json": {
|
|
"/message": "CSRF token mismatch."
|
|
},
|
|
"compare_headers": [
|
|
"Cache-Control",
|
|
"Pragma",
|
|
"WWW-Authenticate"
|
|
],
|
|
"expected_headers": {
|
|
"Cache-Control": "no-cache, private",
|
|
"Pragma": null,
|
|
"WWW-Authenticate": null
|
|
},
|
|
"json": {}
|
|
},
|
|
{
|
|
"id": "DELETE /oauth/device/authorize",
|
|
"path": "/oauth/device/authorize",
|
|
"method": "DELETE",
|
|
"expected_status": 419,
|
|
"expected_json": {
|
|
"/message": "CSRF token mismatch."
|
|
},
|
|
"compare_headers": [
|
|
"Cache-Control",
|
|
"Pragma",
|
|
"WWW-Authenticate"
|
|
],
|
|
"expected_headers": {
|
|
"Cache-Control": "no-cache, private",
|
|
"Pragma": null,
|
|
"WWW-Authenticate": null
|
|
},
|
|
"json": {}
|
|
},
|
|
{
|
|
"id": "POST /oauth/authorize",
|
|
"path": "/oauth/authorize",
|
|
"method": "POST",
|
|
"expected_status": 419,
|
|
"expected_json": {
|
|
"/message": "CSRF token mismatch."
|
|
},
|
|
"compare_headers": [
|
|
"Cache-Control",
|
|
"Pragma",
|
|
"WWW-Authenticate"
|
|
],
|
|
"expected_headers": {
|
|
"Cache-Control": "no-cache, private",
|
|
"Pragma": null,
|
|
"WWW-Authenticate": null
|
|
},
|
|
"json": {}
|
|
},
|
|
{
|
|
"id": "DELETE /oauth/authorize",
|
|
"path": "/oauth/authorize",
|
|
"method": "DELETE",
|
|
"expected_status": 419,
|
|
"expected_json": {
|
|
"/message": "CSRF token mismatch."
|
|
},
|
|
"compare_headers": [
|
|
"Cache-Control",
|
|
"Pragma",
|
|
"WWW-Authenticate"
|
|
],
|
|
"expected_headers": {
|
|
"Cache-Control": "no-cache, private",
|
|
"Pragma": null,
|
|
"WWW-Authenticate": null
|
|
},
|
|
"json": {}
|
|
},
|
|
{
|
|
"id": "POST /oauth/token/refresh",
|
|
"path": "/oauth/token/refresh",
|
|
"method": "POST",
|
|
"expected_status": 419,
|
|
"expected_json": {
|
|
"/message": "CSRF token mismatch."
|
|
},
|
|
"compare_headers": [
|
|
"Cache-Control",
|
|
"Pragma",
|
|
"WWW-Authenticate"
|
|
],
|
|
"expected_headers": {
|
|
"Cache-Control": "no-cache, private",
|
|
"Pragma": null,
|
|
"WWW-Authenticate": null
|
|
},
|
|
"json": {}
|
|
}
|
|
]
|