| 1 | { |
| 2 | "version":"2.0", |
| 3 | "metadata":{ |
| 4 | "apiVersion":"2019-06-10", |
| 5 | "endpointPrefix":"oidc", |
| 6 | "jsonVersion":"1.1", |
| 7 | "protocol":"rest-json", |
| 8 | "serviceAbbreviation":"SSO OIDC", |
| 9 | "serviceFullName":"AWS SSO OIDC", |
| 10 | "serviceId":"SSO OIDC", |
| 11 | "signatureVersion":"v4", |
| 12 | "signingName":"sso-oauth", |
| 13 | "uid":"sso-oidc-2019-06-10" |
| 14 | }, |
| 15 | "operations":{ |
| 16 | "CreateToken":{ |
| 17 | "name":"CreateToken", |
| 18 | "http":{ |
| 19 | "method":"POST", |
| 20 | "requestUri":"/token" |
| 21 | }, |
| 22 | "input":{"shape":"CreateTokenRequest"}, |
| 23 | "output":{"shape":"CreateTokenResponse"}, |
| 24 | "errors":[ |
| 25 | {"shape":"InvalidRequestException"}, |
| 26 | {"shape":"InvalidClientException"}, |
| 27 | {"shape":"InvalidGrantException"}, |
| 28 | {"shape":"UnauthorizedClientException"}, |
| 29 | {"shape":"UnsupportedGrantTypeException"}, |
| 30 | {"shape":"InvalidScopeException"}, |
| 31 | {"shape":"AuthorizationPendingException"}, |
| 32 | {"shape":"SlowDownException"}, |
| 33 | {"shape":"AccessDeniedException"}, |
| 34 | {"shape":"ExpiredTokenException"}, |
| 35 | {"shape":"InternalServerException"} |
| 36 | ], |
| 37 | "authtype":"none" |
| 38 | }, |
| 39 | "CreateTokenWithIAM":{ |
| 40 | "name":"CreateTokenWithIAM", |
| 41 | "http":{ |
| 42 | "method":"POST", |
| 43 | "requestUri":"/token?aws_iam=t" |
| 44 | }, |
| 45 | "input":{"shape":"CreateTokenWithIAMRequest"}, |
| 46 | "output":{"shape":"CreateTokenWithIAMResponse"}, |
| 47 | "errors":[ |
| 48 | {"shape":"InvalidRequestException"}, |
| 49 | {"shape":"InvalidClientException"}, |
| 50 | {"shape":"InvalidGrantException"}, |
| 51 | {"shape":"UnauthorizedClientException"}, |
| 52 | {"shape":"UnsupportedGrantTypeException"}, |
| 53 | {"shape":"InvalidScopeException"}, |
| 54 | {"shape":"AuthorizationPendingException"}, |
| 55 | {"shape":"SlowDownException"}, |
| 56 | {"shape":"AccessDeniedException"}, |
| 57 | {"shape":"ExpiredTokenException"}, |
| 58 | {"shape":"InternalServerException"}, |
| 59 | {"shape":"InvalidRequestRegionException"} |
| 60 | ] |
| 61 | }, |
| 62 | "RegisterClient":{ |
| 63 | "name":"RegisterClient", |
| 64 | "http":{ |
| 65 | "method":"POST", |
| 66 | "requestUri":"/client/register" |
| 67 | }, |
| 68 | "input":{"shape":"RegisterClientRequest"}, |
| 69 | "output":{"shape":"RegisterClientResponse"}, |
| 70 | "errors":[ |
| 71 | {"shape":"InvalidRequestException"}, |
| 72 | {"shape":"InvalidScopeException"}, |
| 73 | {"shape":"InvalidClientMetadataException"}, |
| 74 | {"shape":"InternalServerException"} |
| 75 | ], |
| 76 | "authtype":"none" |
| 77 | }, |
| 78 | "StartDeviceAuthorization":{ |
| 79 | "name":"StartDeviceAuthorization", |
| 80 | "http":{ |
| 81 | "method":"POST", |
| 82 | "requestUri":"/device_authorization" |
| 83 | }, |
| 84 | "input":{"shape":"StartDeviceAuthorizationRequest"}, |
| 85 | "output":{"shape":"StartDeviceAuthorizationResponse"}, |
| 86 | "errors":[ |
| 87 | {"shape":"InvalidRequestException"}, |
| 88 | {"shape":"InvalidClientException"}, |
| 89 | {"shape":"UnauthorizedClientException"}, |
| 90 | {"shape":"SlowDownException"}, |
| 91 | {"shape":"InternalServerException"} |
| 92 | ], |
| 93 | "authtype":"none" |
| 94 | } |
| 95 | }, |
| 96 | "shapes":{ |
| 97 | "AccessDeniedException":{ |
| 98 | "type":"structure", |
| 99 | "members":{ |
| 100 | "error":{"shape":"Error"}, |
| 101 | "error_description":{"shape":"ErrorDescription"} |
| 102 | }, |
| 103 | "error":{"httpStatusCode":400}, |
| 104 | "exception":true |
| 105 | }, |
| 106 | "AccessToken":{ |
| 107 | "type":"string", |
| 108 | "sensitive":true |
| 109 | }, |
| 110 | "Assertion":{ |
| 111 | "type":"string", |
| 112 | "sensitive":true |
| 113 | }, |
| 114 | "AuthCode":{"type":"string"}, |
| 115 | "AuthorizationPendingException":{ |
| 116 | "type":"structure", |
| 117 | "members":{ |
| 118 | "error":{"shape":"Error"}, |
| 119 | "error_description":{"shape":"ErrorDescription"} |
| 120 | }, |
| 121 | "error":{"httpStatusCode":400}, |
| 122 | "exception":true |
| 123 | }, |
| 124 | "ClientId":{"type":"string"}, |
| 125 | "ClientName":{"type":"string"}, |
| 126 | "ClientSecret":{ |
| 127 | "type":"string", |
| 128 | "sensitive":true |
| 129 | }, |
| 130 | "ClientType":{"type":"string"}, |
| 131 | "CreateTokenRequest":{ |
| 132 | "type":"structure", |
| 133 | "required":[ |
| 134 | "clientId", |
| 135 | "clientSecret", |
| 136 | "grantType" |
| 137 | ], |
| 138 | "members":{ |
| 139 | "clientId":{"shape":"ClientId"}, |
| 140 | "clientSecret":{"shape":"ClientSecret"}, |
| 141 | "grantType":{"shape":"GrantType"}, |
| 142 | "deviceCode":{"shape":"DeviceCode"}, |
| 143 | "code":{"shape":"AuthCode"}, |
| 144 | "refreshToken":{"shape":"RefreshToken"}, |
| 145 | "scope":{"shape":"Scopes"}, |
| 146 | "redirectUri":{"shape":"URI"} |
| 147 | } |
| 148 | }, |
| 149 | "CreateTokenResponse":{ |
| 150 | "type":"structure", |
| 151 | "members":{ |
| 152 | "accessToken":{"shape":"AccessToken"}, |
| 153 | "tokenType":{"shape":"TokenType"}, |
| 154 | "expiresIn":{"shape":"ExpirationInSeconds"}, |
| 155 | "refreshToken":{"shape":"RefreshToken"}, |
| 156 | "idToken":{"shape":"IdToken"} |
| 157 | } |
| 158 | }, |
| 159 | "CreateTokenWithIAMRequest":{ |
| 160 | "type":"structure", |
| 161 | "required":[ |
| 162 | "clientId", |
| 163 | "grantType" |
| 164 | ], |
| 165 | "members":{ |
| 166 | "clientId":{"shape":"ClientId"}, |
| 167 | "grantType":{"shape":"GrantType"}, |
| 168 | "code":{"shape":"AuthCode"}, |
| 169 | "refreshToken":{"shape":"RefreshToken"}, |
| 170 | "assertion":{"shape":"Assertion"}, |
| 171 | "scope":{"shape":"Scopes"}, |
| 172 | "redirectUri":{"shape":"URI"}, |
| 173 | "subjectToken":{"shape":"SubjectToken"}, |
| 174 | "subjectTokenType":{"shape":"TokenTypeURI"}, |
| 175 | "requestedTokenType":{"shape":"TokenTypeURI"} |
| 176 | } |
| 177 | }, |
| 178 | "CreateTokenWithIAMResponse":{ |
| 179 | "type":"structure", |
| 180 | "members":{ |
| 181 | "accessToken":{"shape":"AccessToken"}, |
| 182 | "tokenType":{"shape":"TokenType"}, |
| 183 | "expiresIn":{"shape":"ExpirationInSeconds"}, |
| 184 | "refreshToken":{"shape":"RefreshToken"}, |
| 185 | "idToken":{"shape":"IdToken"}, |
| 186 | "issuedTokenType":{"shape":"TokenTypeURI"}, |
| 187 | "scope":{"shape":"Scopes"} |
| 188 | } |
| 189 | }, |
| 190 | "DeviceCode":{"type":"string"}, |
| 191 | "Error":{"type":"string"}, |
| 192 | "ErrorDescription":{"type":"string"}, |
| 193 | "ExpirationInSeconds":{"type":"integer"}, |
| 194 | "ExpiredTokenException":{ |
| 195 | "type":"structure", |
| 196 | "members":{ |
| 197 | "error":{"shape":"Error"}, |
| 198 | "error_description":{"shape":"ErrorDescription"} |
| 199 | }, |
| 200 | "error":{"httpStatusCode":400}, |
| 201 | "exception":true |
| 202 | }, |
| 203 | "GrantType":{"type":"string"}, |
| 204 | "IdToken":{ |
| 205 | "type":"string", |
| 206 | "sensitive":true |
| 207 | }, |
| 208 | "InternalServerException":{ |
| 209 | "type":"structure", |
| 210 | "members":{ |
| 211 | "error":{"shape":"Error"}, |
| 212 | "error_description":{"shape":"ErrorDescription"} |
| 213 | }, |
| 214 | "error":{"httpStatusCode":500}, |
| 215 | "exception":true, |
| 216 | "fault":true |
| 217 | }, |
| 218 | "IntervalInSeconds":{"type":"integer"}, |
| 219 | "InvalidClientException":{ |
| 220 | "type":"structure", |
| 221 | "members":{ |
| 222 | "error":{"shape":"Error"}, |
| 223 | "error_description":{"shape":"ErrorDescription"} |
| 224 | }, |
| 225 | "error":{"httpStatusCode":401}, |
| 226 | "exception":true |
| 227 | }, |
| 228 | "InvalidClientMetadataException":{ |
| 229 | "type":"structure", |
| 230 | "members":{ |
| 231 | "error":{"shape":"Error"}, |
| 232 | "error_description":{"shape":"ErrorDescription"} |
| 233 | }, |
| 234 | "error":{"httpStatusCode":400}, |
| 235 | "exception":true |
| 236 | }, |
| 237 | "InvalidGrantException":{ |
| 238 | "type":"structure", |
| 239 | "members":{ |
| 240 | "error":{"shape":"Error"}, |
| 241 | "error_description":{"shape":"ErrorDescription"} |
| 242 | }, |
| 243 | "error":{"httpStatusCode":400}, |
| 244 | "exception":true |
| 245 | }, |
| 246 | "InvalidRequestException":{ |
| 247 | "type":"structure", |
| 248 | "members":{ |
| 249 | "error":{"shape":"Error"}, |
| 250 | "error_description":{"shape":"ErrorDescription"} |
| 251 | }, |
| 252 | "error":{"httpStatusCode":400}, |
| 253 | "exception":true |
| 254 | }, |
| 255 | "InvalidRequestRegionException":{ |
| 256 | "type":"structure", |
| 257 | "members":{ |
| 258 | "error":{"shape":"Error"}, |
| 259 | "error_description":{"shape":"ErrorDescription"}, |
| 260 | "endpoint":{"shape":"Location"}, |
| 261 | "region":{"shape":"Region"} |
| 262 | }, |
| 263 | "error":{"httpStatusCode":400}, |
| 264 | "exception":true |
| 265 | }, |
| 266 | "InvalidScopeException":{ |
| 267 | "type":"structure", |
| 268 | "members":{ |
| 269 | "error":{"shape":"Error"}, |
| 270 | "error_description":{"shape":"ErrorDescription"} |
| 271 | }, |
| 272 | "error":{"httpStatusCode":400}, |
| 273 | "exception":true |
| 274 | }, |
| 275 | "Location":{"type":"string"}, |
| 276 | "LongTimeStampType":{"type":"long"}, |
| 277 | "RefreshToken":{ |
| 278 | "type":"string", |
| 279 | "sensitive":true |
| 280 | }, |
| 281 | "Region":{"type":"string"}, |
| 282 | "RegisterClientRequest":{ |
| 283 | "type":"structure", |
| 284 | "required":[ |
| 285 | "clientName", |
| 286 | "clientType" |
| 287 | ], |
| 288 | "members":{ |
| 289 | "clientName":{"shape":"ClientName"}, |
| 290 | "clientType":{"shape":"ClientType"}, |
| 291 | "scopes":{"shape":"Scopes"} |
| 292 | } |
| 293 | }, |
| 294 | "RegisterClientResponse":{ |
| 295 | "type":"structure", |
| 296 | "members":{ |
| 297 | "clientId":{"shape":"ClientId"}, |
| 298 | "clientSecret":{"shape":"ClientSecret"}, |
| 299 | "clientIdIssuedAt":{"shape":"LongTimeStampType"}, |
| 300 | "clientSecretExpiresAt":{"shape":"LongTimeStampType"}, |
| 301 | "authorizationEndpoint":{"shape":"URI"}, |
| 302 | "tokenEndpoint":{"shape":"URI"} |
| 303 | } |
| 304 | }, |
| 305 | "Scope":{"type":"string"}, |
| 306 | "Scopes":{ |
| 307 | "type":"list", |
| 308 | "member":{"shape":"Scope"} |
| 309 | }, |
| 310 | "SlowDownException":{ |
| 311 | "type":"structure", |
| 312 | "members":{ |
| 313 | "error":{"shape":"Error"}, |
| 314 | "error_description":{"shape":"ErrorDescription"} |
| 315 | }, |
| 316 | "error":{"httpStatusCode":400}, |
| 317 | "exception":true |
| 318 | }, |
| 319 | "StartDeviceAuthorizationRequest":{ |
| 320 | "type":"structure", |
| 321 | "required":[ |
| 322 | "clientId", |
| 323 | "clientSecret", |
| 324 | "startUrl" |
| 325 | ], |
| 326 | "members":{ |
| 327 | "clientId":{"shape":"ClientId"}, |
| 328 | "clientSecret":{"shape":"ClientSecret"}, |
| 329 | "startUrl":{"shape":"URI"} |
| 330 | } |
| 331 | }, |
| 332 | "StartDeviceAuthorizationResponse":{ |
| 333 | "type":"structure", |
| 334 | "members":{ |
| 335 | "deviceCode":{"shape":"DeviceCode"}, |
| 336 | "userCode":{"shape":"UserCode"}, |
| 337 | "verificationUri":{"shape":"URI"}, |
| 338 | "verificationUriComplete":{"shape":"URI"}, |
| 339 | "expiresIn":{"shape":"ExpirationInSeconds"}, |
| 340 | "interval":{"shape":"IntervalInSeconds"} |
| 341 | } |
| 342 | }, |
| 343 | "SubjectToken":{ |
| 344 | "type":"string", |
| 345 | "sensitive":true |
| 346 | }, |
| 347 | "TokenType":{"type":"string"}, |
| 348 | "TokenTypeURI":{"type":"string"}, |
| 349 | "URI":{"type":"string"}, |
| 350 | "UnauthorizedClientException":{ |
| 351 | "type":"structure", |
| 352 | "members":{ |
| 353 | "error":{"shape":"Error"}, |
| 354 | "error_description":{"shape":"ErrorDescription"} |
| 355 | }, |
| 356 | "error":{"httpStatusCode":400}, |
| 357 | "exception":true |
| 358 | }, |
| 359 | "UnsupportedGrantTypeException":{ |
| 360 | "type":"structure", |
| 361 | "members":{ |
| 362 | "error":{"shape":"Error"}, |
| 363 | "error_description":{"shape":"ErrorDescription"} |
| 364 | }, |
| 365 | "error":{"httpStatusCode":400}, |
| 366 | "exception":true |
| 367 | }, |
| 368 | "UserCode":{"type":"string"} |
| 369 | } |
| 370 | } |