Skip to content

Commit

Permalink
Upd: Add endpoint for exchange authorisation code to obtain access token
Browse files Browse the repository at this point in the history
Signed-off-by: George J Padayatti <[email protected]>
  • Loading branch information
georgepadayatti committed Oct 19, 2023
1 parent e6657c3 commit 9ce7da7
Show file tree
Hide file tree
Showing 6 changed files with 94 additions and 0 deletions.
45 changes: 45 additions & 0 deletions openapi/v2023.8.2/bundled.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2890,6 +2890,51 @@ paths:
security: []
tags:
- onboard
/onboard/token/exchange:
post:
deprecated: false
description: Exchange authorisation code for access token
operationId: exchangeCodeForToken
parameters:
- description: Unique ID of an object
in: query
name: redirectUri
required: true
schema:
type: string
- description: Unique ID of an object
in: query
name: authorisationCode
required: true
schema:
type: string
responses:
'200':
content:
application/json:
schema:
type: object
properties:
userInfo:
required:
- subject
type: object
title: Token
properties:
subject:
type: string
profile:
type: string
email:
type: string
emailVerified:
type: boolean
token:
$ref: '#/paths/~1onboard~1admin~1login/post/responses/200/content/application~1json/schema'
description: OK
security: []
tags:
- onboard
/onboard/validate/email:
post:
operationId: validateEmail
Expand Down
13 changes: 13 additions & 0 deletions openapi/v2023.8.2/definitions/UserInfo.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
required:
- subject
type: object
title: Token
properties:
subject:
type: string
profile:
type: string
email:
type: string
emailVerified:
type: boolean
3 changes: 3 additions & 0 deletions openapi/v2023.8.2/index.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,9 @@ paths:
/onboard/token/refresh:
post:
$ref: ./paths/refreshToken.yaml
/onboard/token/exchange:
post:
$ref: ./paths/exchangeCodeForToken.yaml
/onboard/validate/email:
post:
$ref: ./paths/validateEmail.yaml
Expand Down
6 changes: 6 additions & 0 deletions openapi/v2023.8.2/parameters/authorisationCode.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
description: Unique ID of an object
in: query
name: authorisationCode
required: true
schema:
type: string
6 changes: 6 additions & 0 deletions openapi/v2023.8.2/parameters/redirectUri.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
description: Unique ID of an object
in: query
name: redirectUri
required: true
schema:
type: string
21 changes: 21 additions & 0 deletions openapi/v2023.8.2/paths/exchangeCodeForToken.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
deprecated: false
description: Exchange authorisation code for access token
operationId: exchangeCodeForToken
parameters:
- $ref: "../parameters/redirectUri.yaml"
- $ref: "../parameters/authorisationCode.yaml"
responses:
"200":
content:
application/json:
schema:
type: object
properties:
userInfo:
$ref: "../definitions/UserInfo.yaml"
token:
$ref: "../definitions/Token.yaml"
description: OK
security: []
tags:
- onboard

0 comments on commit 9ce7da7

Please sign in to comment.