Skip to content

Commit 4f59595

Browse files
Remove SigV4 auth requirement for GetTokensFromRefreshToken
1 parent 8b99819 commit 4f59595

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1329,7 +1329,9 @@
13291329
{"shape":"ForbiddenException"},
13301330
{"shape":"RefreshTokenReuseException"},
13311331
{"shape":"InternalErrorException"}
1332-
]
1332+
],
1333+
"authtype":"none",
1334+
"auth":["smithy.api#noAuth"]
13331335
},
13341336
"GetUICustomization":{
13351337
"name":"GetUICustomization",

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1398,7 +1398,9 @@
13981398
{"shape":"RefreshTokenReuseException"},
13991399
{"shape":"InternalErrorException"}
14001400
],
1401-
"documentation":"<p>Given a refresh token, issues new ID, access, and optionally refresh tokens for the user who owns the submitted token. This operation issues a new refresh token and invalidates the original refresh token after an optional grace period when refresh token rotation is enabled. If refresh token rotation is disabled, issues new ID and access tokens only.</p>"
1401+
"documentation":"<p>Given a refresh token, issues new ID, access, and optionally refresh tokens for the user who owns the submitted token. This operation issues a new refresh token and invalidates the original refresh token after an optional grace period when refresh token rotation is enabled. If refresh token rotation is disabled, issues new ID and access tokens only.</p>",
1402+
"authtype":"none",
1403+
"auth":["smithy.api#noAuth"]
14021404
},
14031405
"GetUICustomization":{
14041406
"name":"GetUICustomization",

sdk/src/Services/CognitoIdentityProvider/Generated/Model/GetTokensFromRefreshTokenRequest.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525

2626
using Amazon.Runtime;
2727
using Amazon.Runtime.Internal;
28+
using Amazon.Runtime.Internal.Auth;
2829

2930
#pragma warning disable CS0612,CS0618,CS1570
3031
namespace Amazon.CognitoIdentityProvider.Model
@@ -186,5 +187,13 @@ internal bool IsSetRefreshToken()
186187
return this._refreshToken != null;
187188
}
188189

190+
/// <summary>
191+
/// Get the signer to use for this request.
192+
/// </summary>
193+
/// <returns>A signer for this request.</returns>
194+
override protected AbstractAWSSigner CreateSigner()
195+
{
196+
return new NullSigner();
197+
}
189198
}
190199
}

0 commit comments

Comments
 (0)