@@ -26,11 +26,11 @@ func Test_NewCognitoTokenSource(t *testing.T) {
2626 t .Parallel ()
2727
2828 auth := CognitoAuth {
29- AWSRegion : "us-east-1" ,
30- CognitoAppClientID : "test-client-id" ,
31- CognitoAppClientSecret : "test-client-secret" ,
32- Username : "testuser" ,
33- Password : "testpass" ,
29+ AWSRegion : "us-east-1" ,
30+ AppClientID : "test-client-id" ,
31+ AppClientSecret : "test-client-secret" ,
32+ Username : "testuser" ,
33+ Password : "testpass" ,
3434 }
3535
3636 tokenSource := NewCognitoTokenSource (auth )
@@ -45,11 +45,11 @@ func Test_CognitoTokenSource_Authenticate(t *testing.T) {
4545 t .Parallel ()
4646
4747 auth := CognitoAuth {
48- AWSRegion : "us-east-1" ,
49- CognitoAppClientID : "test-client-id" ,
50- CognitoAppClientSecret : "test-client-secret" ,
51- Username : "testuser" ,
52- Password : "testpass" ,
48+ AWSRegion : "us-east-1" ,
49+ AppClientID : "test-client-id" ,
50+ AppClientSecret : "test-client-secret" ,
51+ Username : "testuser" ,
52+ Password : "testpass" ,
5353 }
5454
5555 tests := []struct {
@@ -72,7 +72,7 @@ func Test_CognitoTokenSource_Authenticate(t *testing.T) {
7272 }
7373
7474 client .EXPECT ().InitiateAuth (mock .Anything , mock .MatchedBy (func (input * cognitoidentityprovider.InitiateAuthInput ) bool {
75- return * input .ClientId == auth .CognitoAppClientID &&
75+ return * input .ClientId == auth .AppClientID &&
7676 input .AuthFlow == types .AuthFlowTypeUserPasswordAuth &&
7777 input .AuthParameters ["USERNAME" ] == auth .Username &&
7878 input .AuthParameters ["PASSWORD" ] == auth .Password &&
@@ -175,11 +175,11 @@ func Test_CognitoTokenSource_Token(t *testing.T) {
175175
176176 client := mocks .NewMockCognitoClient (t )
177177 auth := CognitoAuth {
178- AWSRegion : "us-east-1" ,
179- CognitoAppClientID : "test-client-id" ,
180- CognitoAppClientSecret : "test-client-secret" ,
181- Username : "testuser" ,
182- Password : "testpass" ,
178+ AWSRegion : "us-east-1" ,
179+ AppClientID : "test-client-id" ,
180+ AppClientSecret : "test-client-secret" ,
181+ Username : "testuser" ,
182+ Password : "testpass" ,
183183 }
184184
185185 source := newCognitoTokenSourceWithClient (auth , client )
@@ -206,9 +206,9 @@ func Test_CognitoTokenSource_secretHash(t *testing.T) {
206206
207207 // Test with static values to ensure the hash calculation is correct
208208 auth := CognitoAuth {
209- CognitoAppClientID : "clientid" ,
210- CognitoAppClientSecret : "secret" ,
211- Username : "user" ,
209+ AppClientID : "clientid" ,
210+ AppClientSecret : "secret" ,
211+ Username : "user" ,
212212 }
213213
214214 tokenSource := NewCognitoTokenSource (auth )
0 commit comments