-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #526 from curveball/schema-app-client-validate
schema app client validate
- Loading branch information
Showing
3 changed files
with
103 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft/2019-09/schema", | ||
"$id": "https://curveballjs.org/schemas/a12nserver/app-client-edit-form.json", | ||
"type": "object", | ||
"title": "AppClientEditFormBody", | ||
"description": "This is the request body used by the HTML form submission for editing new OAuth2 Clients (credentials)", | ||
|
||
"required": [], | ||
"additionalProperties": false, | ||
|
||
"properties": { | ||
"allowClientCredentials": { | ||
"type": "string", | ||
"const": "on", | ||
"description": "Can the client can use the 'client_credentials' flow" | ||
}, | ||
"allowAuthorizationCode": { | ||
"type": "string", | ||
"const": "on", | ||
"description": "Can the client can use the 'authorization_code' flow" | ||
}, | ||
"allowAuthorizationChallenge": { | ||
"type": "string", | ||
"const": "on", | ||
"description": "Can the client can use the OAuth 2.0 for First Party Applications flow" | ||
}, | ||
"allowImplicit": { | ||
"type": "string", | ||
"const": "on", | ||
"description": "Can the client can use the deprecated 'implicit' flow" | ||
}, | ||
"allowRefreshToken": { | ||
"type": "string", | ||
"const": "on", | ||
"description": "Is the client allowed to refresh tokens" | ||
}, | ||
"allowPassword": { | ||
"type": "string", | ||
"const": "on", | ||
"description": "Can the client can use the 'password' flow flow" | ||
}, | ||
"redirectUris": { | ||
"type": "string", | ||
"description": "List of redirect uris for the authorization_code and implicit flows." | ||
}, | ||
"requirePkce": { | ||
"type": "string", | ||
"const": "on", | ||
"description": "Require 'Proof of Key Code Exchange' for authorization_code flow. If not set, PKCE is supported but not enforced." | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters