diff --git a/internal/metal/models/users.go b/internal/metal/models/users.go index 8c75d7c..c8e425c 100644 --- a/internal/metal/models/users.go +++ b/internal/metal/models/users.go @@ -12,7 +12,7 @@ const ( MetalUserIssuer = "https://auth.equinix.com/" // MetalUserIssuerIDPrefix is the issuer id prefix added by the issuer. - MetalUserIssuerIDPrefix = "auth|" + MetalUserIssuerIDPrefix = "auth0|" ) // UserDetails contains the user information. diff --git a/internal/service/organizations_test.go b/internal/service/organizations_test.go index 4b1cd1b..9448fbb 100644 --- a/internal/service/organizations_test.go +++ b/internal/service/organizations_test.go @@ -35,7 +35,7 @@ func TestTouchOrganizationEmpty(t *testing.T) { }, } - userID := gidx.PrefixedID("idntusr-2s-9kVNPJBaInlHpRs3lAMsvU_kVkLaSlD4R_RhavDw") + userID := gidx.PrefixedID("idntusr-2aPXqbgfYSlld36XLfvNjEqUIIL9ekRZzgs2eBGOCBw") user := &models.UserDetails{ ID: "usr1", } @@ -133,10 +133,10 @@ func TestTouchOrganizationCleanup(t *testing.T) { }, } - oldUserID := gidx.PrefixedID("idntusr-2s-9kVNPJBaInlHpRs3lAMsvU_kVkLaSlD4R_RhavDw") + oldUserID := gidx.PrefixedID("idntusr-2aPXqbgfYSlld36XLfvNjEqUIIL9ekRZzgs2eBGOCBw") deadProjectID := gidx.PrefixedID("metlprj-prj1") - userID := gidx.PrefixedID("idntusr-RnKvdujrwqm4o1dBDgfgaqeCpKFMaGeOtGnNbZky0Kg") + userID := gidx.PrefixedID("idntusr-Ewj_PJUue9eDIDoyCoWG48GtwlysqTj2Y4qWPiJPN1s") user := &models.UserDetails{ ID: "usr2", } @@ -265,7 +265,7 @@ func TestTouchOrganizationNoChange(t *testing.T) { }, } - userID := gidx.PrefixedID("idntusr-2s-9kVNPJBaInlHpRs3lAMsvU_kVkLaSlD4R_RhavDw") + userID := gidx.PrefixedID("idntusr-2aPXqbgfYSlld36XLfvNjEqUIIL9ekRZzgs2eBGOCBw") user := &models.UserDetails{ ID: "usr1", } diff --git a/internal/service/projects_test.go b/internal/service/projects_test.go index 4b1c095..f10a6bf 100644 --- a/internal/service/projects_test.go +++ b/internal/service/projects_test.go @@ -24,7 +24,7 @@ func TestTouchProjectEmpty(t *testing.T) { }, } - userID := gidx.PrefixedID("idntusr-2s-9kVNPJBaInlHpRs3lAMsvU_kVkLaSlD4R_RhavDw") + userID := gidx.PrefixedID("idntusr-2aPXqbgfYSlld36XLfvNjEqUIIL9ekRZzgs2eBGOCBw") user := &models.UserDetails{ ID: "usr1", } @@ -110,10 +110,10 @@ func TestTouchProjectCleanup(t *testing.T) { }, } - oldUserID := gidx.PrefixedID("idntusr-2s-9kVNPJBaInlHpRs3lAMsvU_kVkLaSlD4R_RhavDw") + oldUserID := gidx.PrefixedID("idntusr-2aPXqbgfYSlld36XLfvNjEqUIIL9ekRZzgs2eBGOCBw") oldOrgID := gidx.PrefixedID("metlorg-org1") - userID := gidx.PrefixedID("idntusr-RnKvdujrwqm4o1dBDgfgaqeCpKFMaGeOtGnNbZky0Kg") + userID := gidx.PrefixedID("idntusr-Ewj_PJUue9eDIDoyCoWG48GtwlysqTj2Y4qWPiJPN1s") user := &models.UserDetails{ ID: "usr2", } @@ -222,7 +222,7 @@ func TestTouchProjectNoChange(t *testing.T) { }, } - userID := gidx.PrefixedID("idntusr-2s-9kVNPJBaInlHpRs3lAMsvU_kVkLaSlD4R_RhavDw") + userID := gidx.PrefixedID("idntusr-2aPXqbgfYSlld36XLfvNjEqUIIL9ekRZzgs2eBGOCBw") user := &models.UserDetails{ ID: "usr1", }