Decide an authorization request
POST
/api/v1/oauth/authorize
const url = 'http://localhost:3000/api/v1/oauth/authorize';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"request":{"additionalProperty":"example"},"allow":true,"projects":["2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"],"project":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","scope":"propose"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url http://localhost:3000/api/v1/oauth/authorize \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "request": { "additionalProperty": "example" }, "allow": true, "projects": [ "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" ], "project": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "scope": "propose" }'Signed in: the decision and the request query it answers. Returns the URL to send the browser to, with a code or error=access_denied.
Any caller; the scope needed is checked on what it acts on.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Responses
Section titled “Responses”Where to go
Media typeapplication/json
object
data
required
object
redirect
required
string
Examplegenerated
{ "data": { "redirect": "example" }}default
Section titled “default”An error
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
detail
Examplegenerated
{ "error": { "code": "example", "message": "example", "detail": "example" }}