Skip to content

Commit 8376d22

Browse files
authored
feat(Auth): adds 'next' exports to Developers resources (#769)
1 parent 78c6781 commit 8376d22

12 files changed

Lines changed: 1083 additions & 6 deletions

File tree

src/services/auth/__tests__/developers/__snapshots__/policies.spec.ts.snap

Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,96 @@ exports[`policies getAll 1`] = `
5353
}
5454
`;
5555

56+
exports[`policies next create 1`] = `
57+
{
58+
"headers": {
59+
"accept": "*/*",
60+
"accept-encoding": "gzip,deflate",
61+
"connection": "close",
62+
"content-length": "165",
63+
"content-type": "application/json",
64+
"host": "auth.globus.org",
65+
"user-agent": "node-fetch/1.0 (+https://github.com/bitinn/node-fetch)",
66+
},
67+
"json": {
68+
"policy": {
69+
"authentication_assurance_timeout": 3600,
70+
"description": "testing",
71+
"display_name": "My New Policy",
72+
"high_assurance": true,
73+
"project_id": "my-fake-project-uuid",
74+
},
75+
},
76+
"method": "POST",
77+
"url": "https://auth.globus.org/v2/api/policies",
78+
}
79+
`;
80+
81+
exports[`policies next get 1`] = `
82+
{
83+
"headers": {
84+
"accept": "*/*",
85+
"accept-encoding": "gzip,deflate",
86+
"connection": "close",
87+
"host": "auth.globus.org",
88+
"user-agent": "node-fetch/1.0 (+https://github.com/bitinn/node-fetch)",
89+
},
90+
"method": "GET",
91+
"url": "https://auth.globus.org/v2/api/policies/6521a0c3-ffc9-4432-9cb6-41fa8fe2e4e9",
92+
}
93+
`;
94+
95+
exports[`policies next getAll 1`] = `
96+
{
97+
"headers": {
98+
"accept": "*/*",
99+
"accept-encoding": "gzip,deflate",
100+
"connection": "close",
101+
"host": "auth.globus.org",
102+
"user-agent": "node-fetch/1.0 (+https://github.com/bitinn/node-fetch)",
103+
},
104+
"method": "GET",
105+
"url": "https://auth.globus.org/v2/api/policies",
106+
}
107+
`;
108+
109+
exports[`policies next remove 1`] = `
110+
{
111+
"headers": {
112+
"accept": "*/*",
113+
"accept-encoding": "gzip,deflate",
114+
"connection": "close",
115+
"host": "auth.globus.org",
116+
"user-agent": "node-fetch/1.0 (+https://github.com/bitinn/node-fetch)",
117+
},
118+
"json": undefined,
119+
"method": "DELETE",
120+
"url": "https://auth.globus.org/v2/api/policies/6521a0c3-ffc9-4432-9cb6-41fa8fe2e4e9",
121+
}
122+
`;
123+
124+
exports[`policies next update 1`] = `
125+
{
126+
"headers": {
127+
"accept": "*/*",
128+
"accept-encoding": "gzip,deflate",
129+
"connection": "close",
130+
"content-length": "81",
131+
"content-type": "application/json",
132+
"host": "auth.globus.org",
133+
"user-agent": "node-fetch/1.0 (+https://github.com/bitinn/node-fetch)",
134+
},
135+
"json": {
136+
"policy": {
137+
"description": "new description",
138+
"display_name": "Updated Policy Name",
139+
},
140+
},
141+
"method": "PUT",
142+
"url": "https://auth.globus.org/v2/api/policies/6521a0c3-ffc9-4432-9cb6-41fa8fe2e4e9",
143+
}
144+
`;
145+
56146
exports[`policies remove 1`] = `
57147
{
58148
"headers": {

src/services/auth/__tests__/developers/__snapshots__/projects.spec.ts.snap

Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,97 @@ exports[`projects getAll 1`] = `
5454
}
5555
`;
5656

57+
exports[`projects next create 1`] = `
58+
{
59+
"headers": {
60+
"accept": "*/*",
61+
"accept-encoding": "gzip,deflate",
62+
"connection": "close",
63+
"content-length": "120",
64+
"content-type": "application/json",
65+
"host": "auth.globus.org",
66+
"user-agent": "node-fetch/1.0 (+https://github.com/bitinn/node-fetch)",
67+
},
68+
"json": {
69+
"project": {
70+
"admin_ids": [
71+
"admin-id-1",
72+
"admin-id-2",
73+
],
74+
"contact_email": "contact@test.com",
75+
"display_name": "My New Project",
76+
},
77+
},
78+
"method": "POST",
79+
"url": "https://auth.globus.org/v2/api/projects",
80+
}
81+
`;
82+
83+
exports[`projects next get 1`] = `
84+
{
85+
"headers": {
86+
"accept": "*/*",
87+
"accept-encoding": "gzip,deflate",
88+
"connection": "close",
89+
"host": "auth.globus.org",
90+
"user-agent": "node-fetch/1.0 (+https://github.com/bitinn/node-fetch)",
91+
},
92+
"method": "GET",
93+
"url": "https://auth.globus.org/v2/api/projects/6521a0c3-ffc9-4432-9cb6-41fa8fe2e4e9",
94+
}
95+
`;
96+
97+
exports[`projects next getAll 1`] = `
98+
{
99+
"headers": {
100+
"accept": "*/*",
101+
"accept-encoding": "gzip,deflate",
102+
"connection": "close",
103+
"host": "auth.globus.org",
104+
"user-agent": "node-fetch/1.0 (+https://github.com/bitinn/node-fetch)",
105+
},
106+
"method": "GET",
107+
"url": "https://auth.globus.org/v2/api/projects",
108+
}
109+
`;
110+
111+
exports[`projects next remove 1`] = `
112+
{
113+
"headers": {
114+
"accept": "*/*",
115+
"accept-encoding": "gzip,deflate",
116+
"connection": "close",
117+
"host": "auth.globus.org",
118+
"user-agent": "node-fetch/1.0 (+https://github.com/bitinn/node-fetch)",
119+
},
120+
"json": undefined,
121+
"method": "DELETE",
122+
"url": "https://auth.globus.org/v2/api/projects/6521a0c3-ffc9-4432-9cb6-41fa8fe2e4e9",
123+
}
124+
`;
125+
126+
exports[`projects next update 1`] = `
127+
{
128+
"headers": {
129+
"accept": "*/*",
130+
"accept-encoding": "gzip,deflate",
131+
"connection": "close",
132+
"content-length": "88",
133+
"content-type": "application/json",
134+
"host": "auth.globus.org",
135+
"user-agent": "node-fetch/1.0 (+https://github.com/bitinn/node-fetch)",
136+
},
137+
"json": {
138+
"project": {
139+
"contact_email": "new_email@test.com",
140+
"display_name": "Updated Project Name",
141+
},
142+
},
143+
"method": "PUT",
144+
"url": "https://auth.globus.org/v2/api/projects/6521a0c3-ffc9-4432-9cb6-41fa8fe2e4e9",
145+
}
146+
`;
147+
57148
exports[`projects remove 1`] = `
58149
{
59150
"headers": {

src/services/auth/__tests__/developers/__snapshots__/scopes.spec.ts.snap

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,71 @@ exports[`scopes getAll 1`] = `
2828
}
2929
`;
3030

31+
exports[`scopes next get 1`] = `
32+
{
33+
"headers": {
34+
"accept": "*/*",
35+
"accept-encoding": "gzip,deflate",
36+
"connection": "close",
37+
"host": "auth.globus.org",
38+
"user-agent": "node-fetch/1.0 (+https://github.com/bitinn/node-fetch)",
39+
},
40+
"method": "GET",
41+
"url": "https://auth.globus.org/v2/api/scopes/6521a0c3-ffc9-4432-9cb6-41fa8fe2e4e9",
42+
}
43+
`;
44+
45+
exports[`scopes next getAll 1`] = `
46+
{
47+
"headers": {
48+
"accept": "*/*",
49+
"accept-encoding": "gzip,deflate",
50+
"connection": "close",
51+
"host": "auth.globus.org",
52+
"user-agent": "node-fetch/1.0 (+https://github.com/bitinn/node-fetch)",
53+
},
54+
"method": "GET",
55+
"url": "https://auth.globus.org/v2/api/scopes",
56+
}
57+
`;
58+
59+
exports[`scopes next remove 1`] = `
60+
{
61+
"headers": {
62+
"accept": "*/*",
63+
"accept-encoding": "gzip,deflate",
64+
"connection": "close",
65+
"host": "auth.globus.org",
66+
"user-agent": "node-fetch/1.0 (+https://github.com/bitinn/node-fetch)",
67+
},
68+
"json": undefined,
69+
"method": "DELETE",
70+
"url": "https://auth.globus.org/v2/api/scopes/6521a0c3-ffc9-4432-9cb6-41fa8fe2e4e9",
71+
}
72+
`;
73+
74+
exports[`scopes next update 1`] = `
75+
{
76+
"headers": {
77+
"accept": "*/*",
78+
"accept-encoding": "gzip,deflate",
79+
"connection": "close",
80+
"content-length": "71",
81+
"content-type": "application/json",
82+
"host": "auth.globus.org",
83+
"user-agent": "node-fetch/1.0 (+https://github.com/bitinn/node-fetch)",
84+
},
85+
"json": {
86+
"scope": {
87+
"description": "new description",
88+
"name": "Updated Scope Name",
89+
},
90+
},
91+
"method": "PUT",
92+
"url": "https://auth.globus.org/v2/api/scopes/6521a0c3-ffc9-4432-9cb6-41fa8fe2e4e9",
93+
}
94+
`;
95+
3196
exports[`scopes remove 1`] = `
3297
{
3398
"headers": {

src/services/auth/__tests__/developers/clients/__snapshots__/clients.spec.ts.snap

Lines changed: 119 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,125 @@ exports[`clients getAll 1`] = `
7878
}
7979
`;
8080

81+
exports[`clients next create 1`] = `
82+
{
83+
"headers": {
84+
"accept": "*/*",
85+
"accept-encoding": "gzip,deflate",
86+
"connection": "close",
87+
"content-length": "152",
88+
"content-type": "application/json",
89+
"host": "auth.globus.org",
90+
"user-agent": "node-fetch/1.0 (+https://github.com/bitinn/node-fetch)",
91+
},
92+
"json": {
93+
"client": {
94+
"links": {},
95+
"name": "My Test Client",
96+
"project": "test-project-id",
97+
"public_client": true,
98+
"redirect_uris": [
99+
"www.test.com",
100+
],
101+
"visibility": "private",
102+
},
103+
},
104+
"method": "POST",
105+
"url": "https://auth.globus.org/v2/api/clients",
106+
}
107+
`;
108+
109+
exports[`clients next createNativeApp 1`] = `
110+
{
111+
"headers": {
112+
"accept": "*/*",
113+
"accept-encoding": "gzip,deflate",
114+
"connection": "close",
115+
"content-length": "75",
116+
"content-type": "application/json",
117+
"host": "auth.globus.org",
118+
"user-agent": "node-fetch/1.0 (+https://github.com/bitinn/node-fetch)",
119+
},
120+
"json": {
121+
"client": {
122+
"name": "My Native App",
123+
"template_id": "test-native-template-id",
124+
},
125+
},
126+
"method": "POST",
127+
"url": "https://auth.globus.org/v2/api/clients",
128+
}
129+
`;
130+
131+
exports[`clients next get 1`] = `
132+
{
133+
"headers": {
134+
"accept": "*/*",
135+
"accept-encoding": "gzip,deflate",
136+
"connection": "close",
137+
"host": "auth.globus.org",
138+
"user-agent": "node-fetch/1.0 (+https://github.com/bitinn/node-fetch)",
139+
},
140+
"method": "GET",
141+
"url": "https://auth.globus.org/v2/api/clients/6521a0c3-ffc9-4432-9cb6-41fa8fe2e4e9",
142+
}
143+
`;
144+
145+
exports[`clients next getAll 1`] = `
146+
{
147+
"headers": {
148+
"accept": "*/*",
149+
"accept-encoding": "gzip,deflate",
150+
"connection": "close",
151+
"host": "auth.globus.org",
152+
"user-agent": "node-fetch/1.0 (+https://github.com/bitinn/node-fetch)",
153+
},
154+
"method": "GET",
155+
"url": "https://auth.globus.org/v2/api/clients?fqdn=www.test.com",
156+
}
157+
`;
158+
159+
exports[`clients next remove 1`] = `
160+
{
161+
"headers": {
162+
"accept": "*/*",
163+
"accept-encoding": "gzip,deflate",
164+
"connection": "close",
165+
"host": "auth.globus.org",
166+
"user-agent": "node-fetch/1.0 (+https://github.com/bitinn/node-fetch)",
167+
},
168+
"json": undefined,
169+
"method": "DELETE",
170+
"url": "https://auth.globus.org/v2/api/clients/6521a0c3-ffc9-4432-9cb6-41fa8fe2e4e9",
171+
}
172+
`;
173+
174+
exports[`clients next update 1`] = `
175+
{
176+
"headers": {
177+
"accept": "*/*",
178+
"accept-encoding": "gzip,deflate",
179+
"connection": "close",
180+
"content-length": "157",
181+
"content-type": "application/json",
182+
"host": "auth.globus.org",
183+
"user-agent": "node-fetch/1.0 (+https://github.com/bitinn/node-fetch)",
184+
},
185+
"json": {
186+
"client": {
187+
"links": {
188+
"privacy_policy": "www.test.com/privacy",
189+
"terms_and_conditions": "www.test.com/terms",
190+
},
191+
"name": "Updated Client Name",
192+
"visibility": "public",
193+
},
194+
},
195+
"method": "PUT",
196+
"url": "https://auth.globus.org/v2/api/clients/6521a0c3-ffc9-4432-9cb6-41fa8fe2e4e9",
197+
}
198+
`;
199+
81200
exports[`clients remove 1`] = `
82201
{
83202
"headers": {

0 commit comments

Comments
 (0)