Skip to content

Commit 8a1ab04

Browse files
This release adds refresh token rotation.
1 parent 3b5b98b commit 8a1ab04

33 files changed

+2188
-7
lines changed

generator/ServiceModels/cognito-idp/cognito-idp-2016-04-18.api.json

Lines changed: 84 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,7 @@
242242
"output":{"shape":"AdminInitiateAuthResponse"},
243243
"errors":[
244244
{"shape":"ResourceNotFoundException"},
245+
{"shape":"UnsupportedOperationException"},
245246
{"shape":"InvalidParameterException"},
246247
{"shape":"NotAuthorizedException"},
247248
{"shape":"TooManyRequestsException"},
@@ -816,7 +817,8 @@
816817
{"shape":"NotAuthorizedException"},
817818
{"shape":"ScopeDoesNotExistException"},
818819
{"shape":"InvalidOAuthFlowException"},
819-
{"shape":"InternalErrorException"}
820+
{"shape":"InternalErrorException"},
821+
{"shape":"FeatureUnavailableInTierException"}
820822
]
821823
},
822824
"CreateUserPoolDomain":{
@@ -830,6 +832,7 @@
830832
"errors":[
831833
{"shape":"InvalidParameterException"},
832834
{"shape":"NotAuthorizedException"},
835+
{"shape":"ConcurrentModificationException"},
833836
{"shape":"ResourceNotFoundException"},
834837
{"shape":"LimitExceededException"},
835838
{"shape":"InternalErrorException"},
@@ -985,6 +988,7 @@
985988
"errors":[
986989
{"shape":"NotAuthorizedException"},
987990
{"shape":"InvalidParameterException"},
991+
{"shape":"ConcurrentModificationException"},
988992
{"shape":"ResourceNotFoundException"},
989993
{"shape":"InternalErrorException"}
990994
]
@@ -1303,6 +1307,28 @@
13031307
{"shape":"ResourceNotFoundException"}
13041308
]
13051309
},
1310+
"GetTokensFromRefreshToken":{
1311+
"name":"GetTokensFromRefreshToken",
1312+
"http":{
1313+
"method":"POST",
1314+
"requestUri":"/"
1315+
},
1316+
"input":{"shape":"GetTokensFromRefreshTokenRequest"},
1317+
"output":{"shape":"GetTokensFromRefreshTokenResponse"},
1318+
"errors":[
1319+
{"shape":"ResourceNotFoundException"},
1320+
{"shape":"InvalidParameterException"},
1321+
{"shape":"NotAuthorizedException"},
1322+
{"shape":"TooManyRequestsException"},
1323+
{"shape":"UserNotFoundException"},
1324+
{"shape":"UnexpectedLambdaException"},
1325+
{"shape":"UserLambdaValidationException"},
1326+
{"shape":"InvalidLambdaResponseException"},
1327+
{"shape":"ForbiddenException"},
1328+
{"shape":"RefreshTokenReuseException"},
1329+
{"shape":"InternalErrorException"}
1330+
]
1331+
},
13061332
"GetUICustomization":{
13071333
"name":"GetUICustomization",
13081334
"http":{
@@ -1439,6 +1465,7 @@
14391465
"input":{"shape":"InitiateAuthRequest"},
14401466
"output":{"shape":"InitiateAuthResponse"},
14411467
"errors":[
1468+
{"shape":"UnsupportedOperationException"},
14421469
{"shape":"ResourceNotFoundException"},
14431470
{"shape":"InvalidParameterException"},
14441471
{"shape":"NotAuthorizedException"},
@@ -2138,7 +2165,8 @@
21382165
{"shape":"NotAuthorizedException"},
21392166
{"shape":"ScopeDoesNotExistException"},
21402167
{"shape":"InvalidOAuthFlowException"},
2141-
{"shape":"InternalErrorException"}
2168+
{"shape":"InternalErrorException"},
2169+
{"shape":"FeatureUnavailableInTierException"}
21422170
]
21432171
},
21442172
"UpdateUserPoolDomain":{
@@ -2152,6 +2180,7 @@
21522180
"errors":[
21532181
{"shape":"InvalidParameterException"},
21542182
{"shape":"NotAuthorizedException"},
2183+
{"shape":"ConcurrentModificationException"},
21552184
{"shape":"ResourceNotFoundException"},
21562185
{"shape":"TooManyRequestsException"},
21572186
{"shape":"InternalErrorException"},
@@ -3475,7 +3504,8 @@
34753504
"PreventUserExistenceErrors":{"shape":"PreventUserExistenceErrorTypes"},
34763505
"EnableTokenRevocation":{"shape":"WrappedBooleanType"},
34773506
"EnablePropagateAdditionalUserContextData":{"shape":"WrappedBooleanType"},
3478-
"AuthSessionValidity":{"shape":"AuthSessionValidityType"}
3507+
"AuthSessionValidity":{"shape":"AuthSessionValidityType"},
3508+
"RefreshTokenRotation":{"shape":"RefreshTokenRotationType"}
34793509
}
34803510
},
34813511
"CreateUserPoolClientResponse":{
@@ -4176,6 +4206,13 @@
41764206
"ALLOW_USER_AUTH"
41774207
]
41784208
},
4209+
"FeatureType":{
4210+
"type":"string",
4211+
"enum":[
4212+
"ENABLED",
4213+
"DISABLED"
4214+
]
4215+
},
41794216
"FeatureUnavailableInTierException":{
41804217
"type":"structure",
41814218
"members":{
@@ -4324,6 +4361,26 @@
43244361
"Certificate":{"shape":"StringType"}
43254362
}
43264363
},
4364+
"GetTokensFromRefreshTokenRequest":{
4365+
"type":"structure",
4366+
"required":[
4367+
"RefreshToken",
4368+
"ClientId"
4369+
],
4370+
"members":{
4371+
"RefreshToken":{"shape":"TokenModelType"},
4372+
"ClientId":{"shape":"ClientIdType"},
4373+
"ClientSecret":{"shape":"ClientSecretType"},
4374+
"DeviceKey":{"shape":"DeviceKeyType"},
4375+
"ClientMetadata":{"shape":"ClientMetadataType"}
4376+
}
4377+
},
4378+
"GetTokensFromRefreshTokenResponse":{
4379+
"type":"structure",
4380+
"members":{
4381+
"AuthenticationResult":{"shape":"AuthenticationResultType"}
4382+
}
4383+
},
43274384
"GetUICustomizationRequest":{
43284385
"type":"structure",
43294386
"required":["UserPoolId"],
@@ -5176,6 +5233,21 @@
51765233
"min":1,
51775234
"pattern":"[\\p{L}\\p{M}\\p{S}\\p{N}\\p{P}]+"
51785235
},
5236+
"RefreshTokenReuseException":{
5237+
"type":"structure",
5238+
"members":{
5239+
"message":{"shape":"MessageType"}
5240+
},
5241+
"exception":true
5242+
},
5243+
"RefreshTokenRotationType":{
5244+
"type":"structure",
5245+
"required":["Feature"],
5246+
"members":{
5247+
"Feature":{"shape":"FeatureType"},
5248+
"RetryGracePeriodSeconds":{"shape":"RetryGracePeriodSecondsType"}
5249+
}
5250+
},
51795251
"RefreshTokenValidityType":{
51805252
"type":"integer",
51815253
"max":315360000,
@@ -5302,6 +5374,11 @@
53025374
"AuthenticationResult":{"shape":"AuthenticationResultType"}
53035375
}
53045376
},
5377+
"RetryGracePeriodSecondsType":{
5378+
"type":"integer",
5379+
"max":60,
5380+
"min":0
5381+
},
53055382
"RevokeTokenRequest":{
53065383
"type":"structure",
53075384
"required":[
@@ -6037,7 +6114,8 @@
60376114
"PreventUserExistenceErrors":{"shape":"PreventUserExistenceErrorTypes"},
60386115
"EnableTokenRevocation":{"shape":"WrappedBooleanType"},
60396116
"EnablePropagateAdditionalUserContextData":{"shape":"WrappedBooleanType"},
6040-
"AuthSessionValidity":{"shape":"AuthSessionValidityType"}
6117+
"AuthSessionValidity":{"shape":"AuthSessionValidityType"},
6118+
"RefreshTokenRotation":{"shape":"RefreshTokenRotationType"}
60416119
}
60426120
},
60436121
"UpdateUserPoolClientResponse":{
@@ -6254,7 +6332,8 @@
62546332
"PreventUserExistenceErrors":{"shape":"PreventUserExistenceErrorTypes"},
62556333
"EnableTokenRevocation":{"shape":"WrappedBooleanType"},
62566334
"EnablePropagateAdditionalUserContextData":{"shape":"WrappedBooleanType"},
6257-
"AuthSessionValidity":{"shape":"AuthSessionValidityType"}
6335+
"AuthSessionValidity":{"shape":"AuthSessionValidityType"},
6336+
"RefreshTokenRotation":{"shape":"RefreshTokenRotationType"}
62586337
}
62596338
},
62606339
"UserPoolDescriptionType":{

0 commit comments

Comments
 (0)