Created
October 5, 2012 07:36
-
-
Save zigorou/3838576 to your computer and use it in GitHub Desktop.
Sample schema (OAuth 2.0 Authorization Request and Response)
This file contains hidden or 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
{ | |
"id": "http://schema.example.com/oauth/2.0/authorization_request", | |
"title": "OAuth 2.0 Authorization Code Grant Response Object", | |
"properties": { | |
"code": { | |
"title": "The authorization code", | |
"type": "string", | |
"required": true | |
}, | |
"state": { | |
"title": "An opaque value", | |
"type": "string", | |
"required": false | |
} | |
}, | |
"links": [ | |
{ | |
"title": "Authorization endpoint", | |
"href": "http://connect.example.com/authorize", | |
"rel": "create", | |
"enctype": "application/x-www-form-urlencoded" | |
"properties": { | |
"response_type": { | |
"title": "Response type", | |
"type": "string", | |
"required": true, | |
"enum": ["code"] | |
}, | |
"client_id": { | |
"title": "Client Identifier", | |
"type": "string", | |
"required": true | |
}, | |
"redirect_uri": { | |
"title": "Callback url for client", | |
"type": "string", | |
"format": "uri" | |
}, | |
"scope": { | |
"title": "The scope of the access request", | |
"type": "string" | |
}, | |
"state": { | |
"title": "The opaque value", | |
"type": "string" | |
} | |
} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment