diff --git a/authentication/ciba_test.go b/authentication/ciba_test.go index a52d6e6c..5ed2d0fe 100644 --- a/authentication/ciba_test.go +++ b/authentication/ciba_test.go @@ -15,8 +15,8 @@ func TestCIBA_Initiate(t *testing.T) { // Call the Initiate method of the CIBA manager resp, err := authAPI.CIBA.Initiate(context.Background(), ciba.Request{ - ClientID: mgmtClientID, - ClientSecret: mgmtClientSecret, + ClientID: clientID, + ClientSecret: clientSecret, Scope: "openid", LoginHint: map[string]string{ "format": "iss_sub", @@ -39,8 +39,8 @@ func TestCIBANegative_Initiate(t *testing.T) { configureHTTPTestRecordings(t, authAPI) _, err := authAPI.CIBA.Initiate(context.Background(), ciba.Request{ - ClientID: mgmtClientID, - ClientSecret: mgmtClientSecret, + ClientID: clientID, + ClientSecret: clientSecret, Scope: "openid", }) @@ -51,8 +51,8 @@ func TestCIBANegative_Initiate(t *testing.T) { configureHTTPTestRecordings(t, authAPI) _, err := authAPI.CIBA.Initiate(context.Background(), ciba.Request{ - ClientID: mgmtClientID, - ClientSecret: mgmtClientSecret, + ClientID: clientID, + ClientSecret: clientSecret, Scope: "openid", LoginHint: map[string]string{ "format": "iss_sub", @@ -69,8 +69,8 @@ func TestCIBANegative_Initiate(t *testing.T) { configureHTTPTestRecordings(t, authAPI) _, err := authAPI.CIBA.Initiate(context.Background(), ciba.Request{ - ClientID: mgmtClientID, - ClientSecret: mgmtClientSecret, + ClientID: clientID, + ClientSecret: clientSecret, Scope: "tempID", LoginHint: map[string]string{ "format": "iss_sub", diff --git a/test/data/recordings/authentication/TestCIBANegative_Initiate/Should_throw_error_for_invalid_User_ID.yaml b/test/data/recordings/authentication/TestCIBANegative_Initiate/Should_throw_error_for_invalid_User_ID.yaml index 3f610af1..16be13b7 100644 --- a/test/data/recordings/authentication/TestCIBANegative_Initiate/Should_throw_error_for_invalid_User_ID.yaml +++ b/test/data/recordings/authentication/TestCIBANegative_Initiate/Should_throw_error_for_invalid_User_ID.yaml @@ -43,4 +43,4 @@ interactions: - application/json; charset=utf-8 status: 400 Bad Request code: 400 - duration: 394.13825ms + duration: 348.832459ms diff --git a/test/data/recordings/authentication/TestCIBANegative_Initiate/Should_throw_error_if_scope_is_not_openid.yaml b/test/data/recordings/authentication/TestCIBANegative_Initiate/Should_throw_error_if_scope_is_not_openid.yaml index 920bab4f..1094efec 100644 --- a/test/data/recordings/authentication/TestCIBANegative_Initiate/Should_throw_error_if_scope_is_not_openid.yaml +++ b/test/data/recordings/authentication/TestCIBANegative_Initiate/Should_throw_error_if_scope_is_not_openid.yaml @@ -43,4 +43,4 @@ interactions: - application/json; charset=utf-8 status: 400 Bad Request code: 400 - duration: 340.789875ms + duration: 350.968333ms diff --git a/test/data/recordings/authentication/TestCIBA_Initiate.yaml b/test/data/recordings/authentication/TestCIBA_Initiate.yaml index a1aaaa92..c5416a3b 100644 --- a/test/data/recordings/authentication/TestCIBA_Initiate.yaml +++ b/test/data/recordings/authentication/TestCIBA_Initiate.yaml @@ -37,10 +37,10 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"auth_req_id":"WQJQFbnCpBr8qHEDxQT4jFBq5ceTei2t9Kfas1CFAEe19odPJYOUCJvZcFy4A2Ki","expires_in":300,"interval":5}' + body: '{"auth_req_id":"XyVW8Z3HHmSXMGYUOhNRK6x7Smti6w_Jb4NEXWeR6FNXl-c6OEMp3n5qPrvqGm6M","expires_in":300,"interval":5}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 798.216458ms + duration: 650.248083ms