aws-sdk-ssooidc 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,23 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing guide for more information:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws::SSOOIDC
9
+ class Resource
10
+
11
+ # @param options ({})
12
+ # @option options [Client] :client
13
+ def initialize(options = {})
14
+ @client = options[:client] || Client.new(options)
15
+ end
16
+
17
+ # @return [Client]
18
+ def client
19
+ @client
20
+ end
21
+
22
+ end
23
+ end
@@ -0,0 +1,478 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing guide for more information:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws::SSOOIDC
9
+ module Types
10
+
11
+ # You do not have sufficient access to perform this action.
12
+ #
13
+ # @!attribute [rw] error
14
+ # @return [String]
15
+ #
16
+ # @!attribute [rw] error_description
17
+ # @return [String]
18
+ #
19
+ # @see http://docs.aws.amazon.com/goto/WebAPI/sso-oidc-2019-06-10/AccessDeniedException AWS API Documentation
20
+ #
21
+ class AccessDeniedException < Struct.new(
22
+ :error,
23
+ :error_description)
24
+ include Aws::Structure
25
+ end
26
+
27
+ # Indicates that a request to authorize a client with an access user
28
+ # session token is pending.
29
+ #
30
+ # @!attribute [rw] error
31
+ # @return [String]
32
+ #
33
+ # @!attribute [rw] error_description
34
+ # @return [String]
35
+ #
36
+ # @see http://docs.aws.amazon.com/goto/WebAPI/sso-oidc-2019-06-10/AuthorizationPendingException AWS API Documentation
37
+ #
38
+ class AuthorizationPendingException < Struct.new(
39
+ :error,
40
+ :error_description)
41
+ include Aws::Structure
42
+ end
43
+
44
+ # @note When making an API call, you may pass CreateTokenRequest
45
+ # data as a hash:
46
+ #
47
+ # {
48
+ # client_id: "ClientId", # required
49
+ # client_secret: "ClientSecret", # required
50
+ # grant_type: "GrantType", # required
51
+ # device_code: "DeviceCode", # required
52
+ # code: "AuthCode",
53
+ # refresh_token: "RefreshToken",
54
+ # scope: ["Scope"],
55
+ # redirect_uri: "URI",
56
+ # }
57
+ #
58
+ # @!attribute [rw] client_id
59
+ # The unique identifier string for each client. This value should come
60
+ # from the persisted result of the RegisterClient API.
61
+ # @return [String]
62
+ #
63
+ # @!attribute [rw] client_secret
64
+ # A secret string generated for the client. This value should come
65
+ # from the persisted result of the RegisterClient API.
66
+ # @return [String]
67
+ #
68
+ # @!attribute [rw] grant_type
69
+ # Supports grant types for authorization code, refresh token, and
70
+ # device code request.
71
+ # @return [String]
72
+ #
73
+ # @!attribute [rw] device_code
74
+ # Used only when calling this API for the device code grant type. This
75
+ # short-term code is used to identify this authentication attempt.
76
+ # This should come from an in-memory reference to the result of the
77
+ # StartDeviceAuthorization API.
78
+ # @return [String]
79
+ #
80
+ # @!attribute [rw] code
81
+ # The authorization code received from the authorization service. This
82
+ # parameter is required to perform an authorization grant request to
83
+ # get access to a token.
84
+ # @return [String]
85
+ #
86
+ # @!attribute [rw] refresh_token
87
+ # The token used to obtain an access token in the event that the
88
+ # access token is invalid or expired. This token is not issued by the
89
+ # service.
90
+ # @return [String]
91
+ #
92
+ # @!attribute [rw] scope
93
+ # The list of scopes that is defined by the client. Upon
94
+ # authorization, this list is used to restrict permissions when
95
+ # granting an access token.
96
+ # @return [Array<String>]
97
+ #
98
+ # @!attribute [rw] redirect_uri
99
+ # The location of the application that will receive the authorization
100
+ # code. Users authorize the service to send the request to this
101
+ # location.
102
+ # @return [String]
103
+ #
104
+ # @see http://docs.aws.amazon.com/goto/WebAPI/sso-oidc-2019-06-10/CreateTokenRequest AWS API Documentation
105
+ #
106
+ class CreateTokenRequest < Struct.new(
107
+ :client_id,
108
+ :client_secret,
109
+ :grant_type,
110
+ :device_code,
111
+ :code,
112
+ :refresh_token,
113
+ :scope,
114
+ :redirect_uri)
115
+ include Aws::Structure
116
+ end
117
+
118
+ # @!attribute [rw] access_token
119
+ # An opaque token to access AWS SSO resources assigned to a user.
120
+ # @return [String]
121
+ #
122
+ # @!attribute [rw] token_type
123
+ # Used to notify the client that the returned token is an access
124
+ # token. The supported type is `BearerToken`.
125
+ # @return [String]
126
+ #
127
+ # @!attribute [rw] expires_in
128
+ # Indicates the time in seconds when an access token will expire.
129
+ # @return [Integer]
130
+ #
131
+ # @!attribute [rw] refresh_token
132
+ # A token that, if present, can be used to refresh a previously issued
133
+ # access token that might have expired.
134
+ # @return [String]
135
+ #
136
+ # @!attribute [rw] id_token
137
+ # The identifier of the user that associated with the access token, if
138
+ # present.
139
+ # @return [String]
140
+ #
141
+ # @see http://docs.aws.amazon.com/goto/WebAPI/sso-oidc-2019-06-10/CreateTokenResponse AWS API Documentation
142
+ #
143
+ class CreateTokenResponse < Struct.new(
144
+ :access_token,
145
+ :token_type,
146
+ :expires_in,
147
+ :refresh_token,
148
+ :id_token)
149
+ include Aws::Structure
150
+ end
151
+
152
+ # Indicates that the token issued by the service is expired and is no
153
+ # longer valid.
154
+ #
155
+ # @!attribute [rw] error
156
+ # @return [String]
157
+ #
158
+ # @!attribute [rw] error_description
159
+ # @return [String]
160
+ #
161
+ # @see http://docs.aws.amazon.com/goto/WebAPI/sso-oidc-2019-06-10/ExpiredTokenException AWS API Documentation
162
+ #
163
+ class ExpiredTokenException < Struct.new(
164
+ :error,
165
+ :error_description)
166
+ include Aws::Structure
167
+ end
168
+
169
+ # Indicates that an error from the service occurred while trying to
170
+ # process a request.
171
+ #
172
+ # @!attribute [rw] error
173
+ # @return [String]
174
+ #
175
+ # @!attribute [rw] error_description
176
+ # @return [String]
177
+ #
178
+ # @see http://docs.aws.amazon.com/goto/WebAPI/sso-oidc-2019-06-10/InternalServerException AWS API Documentation
179
+ #
180
+ class InternalServerException < Struct.new(
181
+ :error,
182
+ :error_description)
183
+ include Aws::Structure
184
+ end
185
+
186
+ # Indicates that the `clientId` or `clientSecret` in the request is
187
+ # invalid. For example, this can occur when a client sends an incorrect
188
+ # `clientId` or an expired `clientSecret`.
189
+ #
190
+ # @!attribute [rw] error
191
+ # @return [String]
192
+ #
193
+ # @!attribute [rw] error_description
194
+ # @return [String]
195
+ #
196
+ # @see http://docs.aws.amazon.com/goto/WebAPI/sso-oidc-2019-06-10/InvalidClientException AWS API Documentation
197
+ #
198
+ class InvalidClientException < Struct.new(
199
+ :error,
200
+ :error_description)
201
+ include Aws::Structure
202
+ end
203
+
204
+ # Indicates that the client information sent in the request during
205
+ # registration is invalid.
206
+ #
207
+ # @!attribute [rw] error
208
+ # @return [String]
209
+ #
210
+ # @!attribute [rw] error_description
211
+ # @return [String]
212
+ #
213
+ # @see http://docs.aws.amazon.com/goto/WebAPI/sso-oidc-2019-06-10/InvalidClientMetadataException AWS API Documentation
214
+ #
215
+ class InvalidClientMetadataException < Struct.new(
216
+ :error,
217
+ :error_description)
218
+ include Aws::Structure
219
+ end
220
+
221
+ # Indicates that a request contains an invalid grant. This can occur if
222
+ # a client makes a CreateToken request with an invalid grant type.
223
+ #
224
+ # @!attribute [rw] error
225
+ # @return [String]
226
+ #
227
+ # @!attribute [rw] error_description
228
+ # @return [String]
229
+ #
230
+ # @see http://docs.aws.amazon.com/goto/WebAPI/sso-oidc-2019-06-10/InvalidGrantException AWS API Documentation
231
+ #
232
+ class InvalidGrantException < Struct.new(
233
+ :error,
234
+ :error_description)
235
+ include Aws::Structure
236
+ end
237
+
238
+ # Indicates that something is wrong with the input to the request. For
239
+ # example, a required parameter might be missing or out of range.
240
+ #
241
+ # @!attribute [rw] error
242
+ # @return [String]
243
+ #
244
+ # @!attribute [rw] error_description
245
+ # @return [String]
246
+ #
247
+ # @see http://docs.aws.amazon.com/goto/WebAPI/sso-oidc-2019-06-10/InvalidRequestException AWS API Documentation
248
+ #
249
+ class InvalidRequestException < Struct.new(
250
+ :error,
251
+ :error_description)
252
+ include Aws::Structure
253
+ end
254
+
255
+ # Indicates that the scope provided in the request is invalid.
256
+ #
257
+ # @!attribute [rw] error
258
+ # @return [String]
259
+ #
260
+ # @!attribute [rw] error_description
261
+ # @return [String]
262
+ #
263
+ # @see http://docs.aws.amazon.com/goto/WebAPI/sso-oidc-2019-06-10/InvalidScopeException AWS API Documentation
264
+ #
265
+ class InvalidScopeException < Struct.new(
266
+ :error,
267
+ :error_description)
268
+ include Aws::Structure
269
+ end
270
+
271
+ # @note When making an API call, you may pass RegisterClientRequest
272
+ # data as a hash:
273
+ #
274
+ # {
275
+ # client_name: "ClientName", # required
276
+ # client_type: "ClientType", # required
277
+ # scopes: ["Scope"],
278
+ # }
279
+ #
280
+ # @!attribute [rw] client_name
281
+ # The friendly name of the client.
282
+ # @return [String]
283
+ #
284
+ # @!attribute [rw] client_type
285
+ # The type of client. The service supports only `public` as a client
286
+ # type. Anything other than public will be rejected by the service.
287
+ # @return [String]
288
+ #
289
+ # @!attribute [rw] scopes
290
+ # The list of scopes that are defined by the client. Upon
291
+ # authorization, this list is used to restrict permissions when
292
+ # granting an access token.
293
+ # @return [Array<String>]
294
+ #
295
+ # @see http://docs.aws.amazon.com/goto/WebAPI/sso-oidc-2019-06-10/RegisterClientRequest AWS API Documentation
296
+ #
297
+ class RegisterClientRequest < Struct.new(
298
+ :client_name,
299
+ :client_type,
300
+ :scopes)
301
+ include Aws::Structure
302
+ end
303
+
304
+ # @!attribute [rw] client_id
305
+ # The unique identifier string for each client. This client uses this
306
+ # identifier to get authenticated by the service in subsequent calls.
307
+ # @return [String]
308
+ #
309
+ # @!attribute [rw] client_secret
310
+ # A secret string generated for the client. The client will use this
311
+ # string to get authenticated by the service in subsequent calls.
312
+ # @return [String]
313
+ #
314
+ # @!attribute [rw] client_id_issued_at
315
+ # Indicates the time at which the `clientId` and `clientSecret` were
316
+ # issued.
317
+ # @return [Integer]
318
+ #
319
+ # @!attribute [rw] client_secret_expires_at
320
+ # Indicates the time at which the `clientId` and `clientSecret` will
321
+ # become invalid.
322
+ # @return [Integer]
323
+ #
324
+ # @!attribute [rw] authorization_endpoint
325
+ # The endpoint where the client can request authorization.
326
+ # @return [String]
327
+ #
328
+ # @!attribute [rw] token_endpoint
329
+ # The endpoint where the client can get an access token.
330
+ # @return [String]
331
+ #
332
+ # @see http://docs.aws.amazon.com/goto/WebAPI/sso-oidc-2019-06-10/RegisterClientResponse AWS API Documentation
333
+ #
334
+ class RegisterClientResponse < Struct.new(
335
+ :client_id,
336
+ :client_secret,
337
+ :client_id_issued_at,
338
+ :client_secret_expires_at,
339
+ :authorization_endpoint,
340
+ :token_endpoint)
341
+ include Aws::Structure
342
+ end
343
+
344
+ # Indicates that the client is making the request too frequently and is
345
+ # more than the service can handle.
346
+ #
347
+ # @!attribute [rw] error
348
+ # @return [String]
349
+ #
350
+ # @!attribute [rw] error_description
351
+ # @return [String]
352
+ #
353
+ # @see http://docs.aws.amazon.com/goto/WebAPI/sso-oidc-2019-06-10/SlowDownException AWS API Documentation
354
+ #
355
+ class SlowDownException < Struct.new(
356
+ :error,
357
+ :error_description)
358
+ include Aws::Structure
359
+ end
360
+
361
+ # @note When making an API call, you may pass StartDeviceAuthorizationRequest
362
+ # data as a hash:
363
+ #
364
+ # {
365
+ # client_id: "ClientId", # required
366
+ # client_secret: "ClientSecret", # required
367
+ # start_url: "URI", # required
368
+ # }
369
+ #
370
+ # @!attribute [rw] client_id
371
+ # The unique identifier string for the client that is registered with
372
+ # AWS SSO. This value should come from the persisted result of the
373
+ # RegisterClient API operation.
374
+ # @return [String]
375
+ #
376
+ # @!attribute [rw] client_secret
377
+ # A secret string that is generated for the client. This value should
378
+ # come from the persisted result of the RegisterClient API operation.
379
+ # @return [String]
380
+ #
381
+ # @!attribute [rw] start_url
382
+ # The URL for the AWS SSO user portal. For more information, see
383
+ # [Using the User Portal][1] in the *AWS Single Sign-On User Guide*.
384
+ #
385
+ #
386
+ #
387
+ # [1]: https://docs.aws.amazon.com/singlesignon/latest/userguide/using-the-portal.html
388
+ # @return [String]
389
+ #
390
+ # @see http://docs.aws.amazon.com/goto/WebAPI/sso-oidc-2019-06-10/StartDeviceAuthorizationRequest AWS API Documentation
391
+ #
392
+ class StartDeviceAuthorizationRequest < Struct.new(
393
+ :client_id,
394
+ :client_secret,
395
+ :start_url)
396
+ include Aws::Structure
397
+ end
398
+
399
+ # @!attribute [rw] device_code
400
+ # The short-lived code that is used by the device when polling for a
401
+ # session token.
402
+ # @return [String]
403
+ #
404
+ # @!attribute [rw] user_code
405
+ # A one-time user verification code. This is needed to authorize an
406
+ # in-use device.
407
+ # @return [String]
408
+ #
409
+ # @!attribute [rw] verification_uri
410
+ # The URI of the verification page that takes the `userCode` to
411
+ # authorize the device.
412
+ # @return [String]
413
+ #
414
+ # @!attribute [rw] verification_uri_complete
415
+ # An alternate URL that the client can use to automatically launch a
416
+ # browser. This process skips the manual step in which the user visits
417
+ # the verification page and enters their code.
418
+ # @return [String]
419
+ #
420
+ # @!attribute [rw] expires_in
421
+ # Indicates the number of seconds in which the verification code will
422
+ # become invalid.
423
+ # @return [Integer]
424
+ #
425
+ # @!attribute [rw] interval
426
+ # Indicates the number of seconds the client must wait between
427
+ # attempts when polling for a session.
428
+ # @return [Integer]
429
+ #
430
+ # @see http://docs.aws.amazon.com/goto/WebAPI/sso-oidc-2019-06-10/StartDeviceAuthorizationResponse AWS API Documentation
431
+ #
432
+ class StartDeviceAuthorizationResponse < Struct.new(
433
+ :device_code,
434
+ :user_code,
435
+ :verification_uri,
436
+ :verification_uri_complete,
437
+ :expires_in,
438
+ :interval)
439
+ include Aws::Structure
440
+ end
441
+
442
+ # Indicates that the client is not currently authorized to make the
443
+ # request. This can happen when a `clientId` is not issued for a public
444
+ # client.
445
+ #
446
+ # @!attribute [rw] error
447
+ # @return [String]
448
+ #
449
+ # @!attribute [rw] error_description
450
+ # @return [String]
451
+ #
452
+ # @see http://docs.aws.amazon.com/goto/WebAPI/sso-oidc-2019-06-10/UnauthorizedClientException AWS API Documentation
453
+ #
454
+ class UnauthorizedClientException < Struct.new(
455
+ :error,
456
+ :error_description)
457
+ include Aws::Structure
458
+ end
459
+
460
+ # Indicates that the grant type in the request is not supported by the
461
+ # service.
462
+ #
463
+ # @!attribute [rw] error
464
+ # @return [String]
465
+ #
466
+ # @!attribute [rw] error_description
467
+ # @return [String]
468
+ #
469
+ # @see http://docs.aws.amazon.com/goto/WebAPI/sso-oidc-2019-06-10/UnsupportedGrantTypeException AWS API Documentation
470
+ #
471
+ class UnsupportedGrantTypeException < Struct.new(
472
+ :error,
473
+ :error_description)
474
+ include Aws::Structure
475
+ end
476
+
477
+ end
478
+ end