Skip to content

Commit

Permalink
test: update incorrect usage of Auth0 in Salesforce tests (#4007)
Browse files Browse the repository at this point in the history
  • Loading branch information
IchordeDionysos authored Jul 19, 2024
1 parent e3f1da0 commit 6ce3068
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions selfservice/strategy/oidc/provider_salesforce_unit_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ import (
)

func TestSalesforceUpdatedAtWorkaround(t *testing.T) {
actual, err := authZeroUpdatedAtWorkaround([]byte("{}"))
actual, err := salesforceUpdatedAtWorkaround([]byte("{}"))
require.NoError(t, err)
assert.Equal(t, "{}", string(actual))

actual, err = authZeroUpdatedAtWorkaround([]byte(`{"updated_at":1234}`))
actual, err = salesforceUpdatedAtWorkaround([]byte(`{"updated_at":1234}`))
require.NoError(t, err)
assert.Equal(t, `{"updated_at":1234}`, string(actual))

Expand All @@ -27,7 +27,7 @@ func TestSalesforceUpdatedAtWorkaround(t *testing.T) {
"updated_at": timestamp,
})
require.NoError(t, err)
actual, err = authZeroUpdatedAtWorkaround(input)
actual, err = salesforceUpdatedAtWorkaround(input)
require.NoError(t, err)
assert.Equal(t, fmt.Sprintf(`{"updated_at":%d}`, timestamp.Unix()), string(actual))
}
4 changes: 2 additions & 2 deletions selfservice/strategy/oidc/provider_userinfo_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ func TestProviderClaimsRespectsErrorCodes(t *testing.T) {
{
name: "salesforce",
userInfoHandler: defaultUserinfoHandler,
userInfoEndpoint: "https://www.salesforce.com/userinfo",
provider: oidc.NewProviderAuth0(&oidc.Configuration{
userInfoEndpoint: "https://www.salesforce.com/services/oauth2/userinfo",
provider: oidc.NewProviderSalesforce(&oidc.Configuration{
IssuerURL: "https://www.salesforce.com",
ID: "salesforce",
Provider: "salesforce",
Expand Down

0 comments on commit 6ce3068

Please sign in to comment.