Skip to content

Commit b8506c8

Browse files
feat: ROOT-84: expose endpoints for updating SSO group mappings in SDK (#548)
Co-authored-by: fern-api <115122769+fern-api[bot]@users.noreply.github.com>
1 parent 117bccc commit b8506c8

24 files changed

+1432
-110
lines changed

.mock/definition/sso.yml

Lines changed: 0 additions & 110 deletions
This file was deleted.

.mock/definition/sso/saml.yml

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
imports:
2+
root: ../__package__.yml
3+
service:
4+
auth: false
5+
base-path: ''
6+
endpoints:
7+
get:
8+
path: /api/saml/settings
9+
method: GET
10+
auth: true
11+
docs: Retrieve SAML2 settings for the currently active organization.
12+
source:
13+
openapi: openapi/openapi.yaml
14+
display-name: Retrieve SAML2 Settings
15+
response:
16+
docs: ''
17+
type: root.SamlSettings
18+
examples:
19+
- name: response
20+
response:
21+
body:
22+
projects_groups:
23+
- group: groups_test
24+
project_id: 42
25+
role: Inherit
26+
roles_groups:
27+
- - Administrator
28+
- groups_test
29+
workspaces_groups:
30+
- - Default workspace
31+
- groups_test
32+
audiences:
33+
- public
34+
update:
35+
path: /api/saml/settings
36+
method: POST
37+
auth: true
38+
docs: Update SAML2 settings for the currently active organization.
39+
source:
40+
openapi: openapi/openapi.yaml
41+
display-name: Update SAML2 Settings
42+
request:
43+
name: SamlSettingsUpdateRequest
44+
body:
45+
properties:
46+
projects_groups: optional<list<root.ProjectGroupRequest>>
47+
roles_groups: optional<list<list<string>>>
48+
workspaces_groups: optional<list<list<string>>>
49+
content-type: application/json
50+
response:
51+
docs: ''
52+
type: root.SamlSettingsUpdate
53+
examples:
54+
- name: response
55+
request:
56+
projects_groups:
57+
- group: groups_test
58+
project_id: 42
59+
role: Inherit
60+
roles_groups:
61+
- - Administrator
62+
- groups_test
63+
workspaces_groups:
64+
- - Default workspace
65+
- groups_test
66+
response:
67+
body:
68+
projects_groups:
69+
- group: groups_test
70+
project_id: 42
71+
role: Inherit
72+
roles_groups:
73+
- - Administrator
74+
- groups_test
75+
workspaces_groups:
76+
- - Default workspace
77+
- groups_test
78+
audiences:
79+
- public
80+
source:
81+
openapi: openapi/openapi.yaml

.mock/definition/sso/scim.yml

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
imports:
2+
root: ../__package__.yml
3+
service:
4+
auth: false
5+
base-path: ''
6+
endpoints:
7+
get:
8+
path: /api/scim/settings
9+
method: GET
10+
auth: true
11+
docs: Retrieve SCIM settings for the currently active organization.
12+
source:
13+
openapi: openapi/openapi.yaml
14+
display-name: Retrieve SCIM Settings
15+
response:
16+
docs: ''
17+
type: root.ScimSettings
18+
examples:
19+
- name: response
20+
response:
21+
body:
22+
projects_groups:
23+
- group: groups_test
24+
project_id: 42
25+
role: Inherit
26+
roles_groups:
27+
- - Administrator
28+
- groups_test
29+
workspaces_groups:
30+
- - Default workspace
31+
- groups_test
32+
audiences:
33+
- public
34+
update:
35+
path: /api/scim/settings
36+
method: POST
37+
auth: true
38+
docs: Update SCIM settings for the currently active organization.
39+
source:
40+
openapi: openapi/openapi.yaml
41+
display-name: Update SCIM Settings
42+
request:
43+
name: ScimSettingsUpdateRequest
44+
body:
45+
properties:
46+
projects_groups: optional<list<root.ProjectGroupRequest>>
47+
roles_groups: optional<list<list<string>>>
48+
workspaces_groups: optional<list<list<string>>>
49+
content-type: application/json
50+
response:
51+
docs: ''
52+
type: root.ScimSettingsUpdate
53+
examples:
54+
- name: response
55+
request:
56+
projects_groups:
57+
- group: groups_test
58+
project_id: 42
59+
role: Inherit
60+
roles_groups:
61+
- - Administrator
62+
- groups_test
63+
workspaces_groups:
64+
- - Default workspace
65+
- groups_test
66+
response:
67+
body:
68+
projects_groups:
69+
- group: groups_test
70+
project_id: 42
71+
role: Inherit
72+
roles_groups:
73+
- - Administrator
74+
- groups_test
75+
workspaces_groups:
76+
- - Default workspace
77+
- groups_test
78+
audiences:
79+
- public
80+
source:
81+
openapi: openapi/openapi.yaml

0 commit comments

Comments
 (0)