forked from directus/openapi
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoauthProvider.yaml
More file actions
44 lines (44 loc) · 1.09 KB
/
oauthProvider.yaml
File metadata and controls
44 lines (44 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
summary: Login Using an OAuth Provider
description: Start OAuth flow using the specified provider.
operationId: oauthProvider
parameters:
- name: provider
in: path
description: Key of the activated OAuth provider.
required: true
schema:
type: string
- name: redirect
in: query
required: false
description: Where to redirect on successful login.<br/>If set the authentication
details are set inside cookies otherwise a JSON is returned.
schema:
type: string
responses:
'200':
description: Successful request
content:
application/json:
schema:
type: object
properties:
public:
type: boolean
data:
type: object
properties:
token:
type: string
'401':
$ref: ../../../../components/responses.yaml#/UnauthorizedError
security: []
tags:
- Authentication
x-codeSamples:
- label: Directus SDK
lang: JavaScript
source: Not available in Directus SDK/GraphQL
- label: GraphQL
lang: GraphQL
source: Not available in Directus SDK/GraphQL