-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathapispec.yaml
83 lines (83 loc) · 2.12 KB
/
apispec.yaml
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
openapi: 3.0.2
info:
title: Renku Gateway
description: Login flow, OAuth callbacks and authentication for Renku
version: v1
servers:
- url: /api/auth
paths:
/health:
servers:
- url: http://renku-gateway-auth
description: Available only from within the k8s cluster
get:
description: Healthcheck endpoint.
responses:
"200":
description: The service is running properly.
tags:
- health
/login:
get:
description: Starts the login process for Renku.
parameters:
- in: query
name: redirect_url
schema:
type: string
- in: query
name: provider_id
description: |
Providing `provider_id` query parameters should be used for testing only.
schema:
type: array
items:
type: string
responses:
"302":
description: The user is redirected to the proper login page.
tags:
- authentication
/callback:
get:
description: Authorization code flow callback
parameters:
- in: query
name: code
required: true
schema:
type: string
- in: query
name: state
required: true
schema:
type: string
responses:
"302":
description: The token was used to acquire the access token and the request is redirected further
tags:
- authentication
/logout:
get:
description: |
Log the user out of Renku. Depending on the configuration of the gateway
this can result in the user also being logged out of Gitlab.
parameters:
- in: query
name: redirect_url
schema:
type: string
responses:
"200":
description: The user was successfully logged out
tags:
- authentication
/user-profile:
get:
description: |
Redirects to the user's profile page.
responses:
"302":
description: The user is redirected to the proper login page.
tags:
- misc