You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

50 lines
1.6 KiB

---
get:
description: "Authorize endpoint used with Authorization Code Grant flow. Send your target users here to start the authorization flow - this will request users to authenticate in Tiki and then send back a short-lived code to the redirect uri that you can exchange then for an access token."
parameters:
- name: response_type
in: query
description: "Should always be: code"
required: true
schema:
type: string
- name: client_id
in: query
description: Your application client id generated by the Tiki OAuth server.
required: true
schema:
type: string
- name: redirect_uri
in: query
description: Where should the user be redirected back when they authorize in Tiki. This should be an URL on your site to read back the generated code and exchange it for an access token.
required: true
schema:
type: string
- name: scope
in: query
description: A space delimited list of scopes. This is optional.
schema:
type: string
- name: state
in: query
description: Random string used as a CSRF value. You should compare the state value retrieved with the access token to this one.
schema:
type: string
responses:
'200':
description: authorize response
content:
application/json:
schema:
type: object
properties:
code:
type: string
state:
type: string
'403':
description: forbidden
content:
application/json:
schema:
$ref: schemas-Error.yaml