Files
letro-authentication-service/policies/schema/authorization_grant_input.json
2023-09-06 09:35:34 +02:00

36 lines
695 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": {
"client": {
"type": "object",
"additionalProperties": true
},
"grant_type": {
"$ref": "#/definitions/GrantType"
},
"scope": {
"type": "string"
},
"user": {
"type": "object",
"additionalProperties": true
}
},
"definitions": {
"GrantType": {
"type": "string",
"enum": [
"authorization_code",
"client_credentials"
]
}
}
}