all repos

onasty @ 8b28667bae704dff8778a1d61152d17efcac002f

a one-time notes service

onasty/api/paths/auth/oauth-provider.yml (view raw)

Oleksandr Smirnov Oleksandr Smirnov
olexsmir@gmail.com
feat(web): add oauth login (#213)..., 8 months ago
1
get:
2
  tags: [OAuth]
3
  summary: Initiate OAuth login
4
  security:
5
    - {}
6
7
  parameters:
8
    - name: provider
9
      in: path
10
      required: true
11
      schema:
12
        type: string
13
        enum: [google, github]
14
15
  responses:
16
    '302':
17
      description: Redirect to OAuth provider
18
    '400':
19
      $ref: '../../components/responses/ErrorResponse.yml'
20
    '500':
21
      $ref: '../../components/responses/ErrorResponse.yml'