Files
matrix-authentication-service/policies/schema/authorization_grant_input.json
T
Quentin Gliech 46c565cc89 Move schemars to workspace dependencies
Also enables the `preserve_order` feature, hence the big schema output diff.
2024-03-01 14:36:37 +01:00

37 lines
751 B
JSON

{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "AuthorizationGrantInput",
"description": "Input for the authorization grant policy.",
"type": "object",
"required": [
"client",
"grant_type",
"scope"
],
"properties": {
"user": {
"type": "object",
"additionalProperties": true
},
"client": {
"type": "object",
"additionalProperties": true
},
"scope": {
"type": "string"
},
"grant_type": {
"$ref": "#/definitions/GrantType"
}
},
"definitions": {
"GrantType": {
"type": "string",
"enum": [
"authorization_code",
"client_credentials",
"urn:ietf:params:oauth:grant-type:device_code"
]
}
}
}