@@ -52,8 +52,8 @@ endpoints:
52
52
my_settings.country = 'US'
53
53
my_settings.email = '[email protected] '
54
54
my_settings.save()
55
- /account/clients :
56
- group : Clients
55
+ /account/oauth- clients :
56
+ group : OAuth Clients
57
57
authenticated : true
58
58
description : >
59
59
Manage the collection of OAuth client applications your account may access.
@@ -63,11 +63,13 @@ endpoints:
63
63
paginationKey : clients
64
64
oauth : clients:view
65
65
description : >
66
- Returns a list of clients.
66
+ Returns a list of OAuth clients for your user. If you are an admin
67
+ user, you will see all OAuth clients associated with all users on your
68
+ account.
67
69
examples :
68
70
curl : |
69
71
curl -H "Authorization: Bearer $TOKEN" \
70
- https://$api_root/$version/account/clients
72
+ https://$api_root/$version/account/oauth- clients
71
73
python : |
72
74
my_clients = client.account.get_oauth_clients()
73
75
POST :
@@ -83,6 +85,11 @@ endpoints:
83
85
description : A URL to redirect to after the OAuth flow has completed.
84
86
type : String
85
87
limit : " 1-512 characters"
88
+ public :
89
+ description : Whether this client is intended will use the implicit
90
+ OAuth flow because it cannot safely store the client_secrete.
91
+ An example of this would be a Single-Page Application (SPA) for
92
+ the Web.
86
93
examples :
87
94
curl : |
88
95
curl -H "Content-Type: application/json" \
@@ -91,15 +98,16 @@ endpoints:
91
98
"label": "Example app",
92
99
"redirect_uri": "https://oauthreturn.example.org/",
93
100
}' \
94
- https://$api_root/$version/account/clients
101
+ https://$api_root/$version/account/oauth- clients
95
102
python : |
96
103
new_client = client.account.create_oauth_client('Example app', 'https://oauthreturn.example.org/')
97
- /account/clients/$id :
98
- group : Clients
104
+ /account/oauth- clients/$id :
105
+ group : OAuth Clients
99
106
type : resource
100
107
authenticated : true
101
108
description : >
102
109
Manage a particular OAuth client application your account may access.
110
+ Admin users can manage any OAuth client associated with this account.
103
111
methods :
104
112
GET :
105
113
response : client
@@ -109,7 +117,7 @@ endpoints:
109
117
examples :
110
118
curl : |
111
119
curl -H "Authorization: Bearer $TOKEN" \
112
- https://$api_root/$version/account/clients/$client_id
120
+ https://$api_root/$version/account/oauth- clients/$client_id
113
121
python : |
114
122
my_client = linode.OAuthClient(client, 123)
115
123
PUT :
@@ -124,7 +132,7 @@ endpoints:
124
132
"name": "Updated app name",
125
133
"redirect_uri": "https://newredirect.example.org/",
126
134
}' \
127
- https://$api_root/$version/account/clients/$client_id
135
+ https://$api_root/$version/account/oauth- clients/$client_id
128
136
python : |
129
137
my_client.name = 'Updated app name'
130
138
my_client.save()
@@ -133,16 +141,18 @@ endpoints:
133
141
dangerous : true
134
142
description : >
135
143
Delete this OAuth application. This action cannot be undone.
144
+ Once an OAuth Application is deleted, all associated OAuth
145
+ tokens that were generated on its behalf are expired as well.
136
146
examples :
137
147
curl : |
138
148
curl -H "Authorization: Bearer $TOKEN" \
139
149
-X DELETE \
140
- https://$api_root/$version/account/clients/$client_id
150
+ https://$api_root/$version/account/oauth- clients/$client_id
141
151
python : |
142
152
my_client = linode.OAuthClient(client, 123)
143
153
my_client.delete()
144
- /account/clients/$id/reset_secret :
145
- group : Clients
154
+ /account/oauth- clients/$id/reset_secret :
155
+ group : OAuth Clients
146
156
type : Action
147
157
authenticated : true
148
158
description : >
@@ -156,12 +166,12 @@ endpoints:
156
166
curl -H "Content-Type: application/json" \
157
167
-H "Authorization: Bearer $TOKEN" \
158
168
-X POST \
159
- https://$api_root/$version/account/clients/$client_id/reset_secret
169
+ https://$api_root/$version/account/oauth- clients/$client_id/reset_secret
160
170
python : |
161
171
my_client = linode.OAuthClient(client, 123)
162
172
new_secret = my_client.reset_secret()
163
- /account/clients/$id/thumbnail :
164
- group : Clients
173
+ /account/oauth- clients/$id/thumbnail :
174
+ group : OAuth Clients
165
175
type : Action
166
176
authenticated : true
167
177
description : >
@@ -174,7 +184,7 @@ endpoints:
174
184
examples :
175
185
curl : |
176
186
curl -H "Authorization: Bearer $TOKEN" \
177
- https://$api_root/$version/account/clients/$client_id/thumbnail
187
+ https://$api_root/$version/account/oauth- clients/$client_id/thumbnail
178
188
python : |
179
189
img = my_client.get_thumbnail()
180
190
@@ -191,7 +201,7 @@ endpoints:
191
201
-H "Authorization: Bearer $TOKEN" \
192
202
-X PUT \
193
203
--data-binary "@/path/to/image"
194
- https://$api_root/$version/account/clients/$client_id/thumbnail
204
+ https://$api_root/$version/account/oauth- clients/$client_id/thumbnail
195
205
python : |
196
206
my_client = linode.OAuthClient(client, 123)
197
207
my_client.set_thumbnail('/path/to/image')
@@ -342,8 +352,8 @@ endpoints:
342
352
343
353
my_user.grants.global.add_linodes = True
344
354
my_user.grants.save()
345
- /account/clients :
346
- group : Clients
355
+ /account/oauth- clients :
356
+ group : OAuth Clients
347
357
authenticated : true
348
358
description : >
349
359
Manage the collection of OAuth client applications your account may access.
@@ -357,7 +367,7 @@ endpoints:
357
367
examples :
358
368
curl : |
359
369
curl -H "Authorization: Bearer $TOKEN" \
360
- https://$api_root/$version/account/clients
370
+ https://$api_root/$version/account/oauth- clients
361
371
POST :
362
372
oauth : clients:create
363
373
description : >
@@ -379,9 +389,9 @@ endpoints:
379
389
"name": "Example app",
380
390
"redirect_uri": "https://oauthreturn.example.org/",
381
391
}' \
382
- https://$api_root/$version/account/clients
383
- /account/clients/$id :
384
- group : Clients
392
+ https://$api_root/$version/account/oauth- clients
393
+ /account/oauth- clients/$id :
394
+ group : OAuth Clients
385
395
type : resource
386
396
authenticated : true
387
397
description : >
@@ -395,7 +405,7 @@ endpoints:
395
405
examples :
396
406
curl : |
397
407
curl -H "Authorization: Bearer $TOKEN" \
398
- https://$api_root/$version/account/clients/$client_id
408
+ https://$api_root/$version/account/oauth- clients/$client_id
399
409
PUT :
400
410
oauth : clients:modify
401
411
description : >
@@ -408,7 +418,7 @@ endpoints:
408
418
"name": "Updated app name",
409
419
"redirect_uri": "https://newredirect.example.org/",
410
420
}' \
411
- https://$api_root/$version/account/clients/$client_id
421
+ https://$api_root/$version/account/oauth- clients/$client_id
412
422
DELETE :
413
423
oauth : clients:delete
414
424
dangerous : true
@@ -418,7 +428,7 @@ endpoints:
418
428
curl : |
419
429
curl -H "Authorization: Bearer $TOKEN" \
420
430
-X DELETE \
421
- https://$api_root/$version/account/clients/$client_id
431
+ https://$api_root/$version/account/oauth- clients/$client_id
422
432
/account/events :
423
433
group : Events
424
434
authenticated : true
0 commit comments