Skip to content

Instantly share code, notes, and snippets.

@zigorou
Created October 5, 2012 07:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zigorou/3838576 to your computer and use it in GitHub Desktop.
Save zigorou/3838576 to your computer and use it in GitHub Desktop.
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