Skip to content

Instantly share code, notes, and snippets.

@zigorou zigorou/sample.json
Created Oct 5, 2012

Embed
What would you like to do?
Sample schema (OAuth 2.0 Authorization Request and Response)
{
"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
You can’t perform that action at this time.