correct user id generation
This commit is contained in:
@@ -12,7 +12,7 @@ const (
|
|||||||
MetalUserIssuer = "https://auth.equinix.com/"
|
MetalUserIssuer = "https://auth.equinix.com/"
|
||||||
|
|
||||||
// MetalUserIssuerIDPrefix is the issuer id prefix added by the issuer.
|
// MetalUserIssuerIDPrefix is the issuer id prefix added by the issuer.
|
||||||
MetalUserIssuerIDPrefix = "auth|"
|
MetalUserIssuerIDPrefix = "auth0|"
|
||||||
)
|
)
|
||||||
|
|
||||||
// UserDetails contains the user information.
|
// UserDetails contains the user information.
|
||||||
|
|||||||
@@ -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{
|
user := &models.UserDetails{
|
||||||
ID: "usr1",
|
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")
|
deadProjectID := gidx.PrefixedID("metlprj-prj1")
|
||||||
|
|
||||||
userID := gidx.PrefixedID("idntusr-RnKvdujrwqm4o1dBDgfgaqeCpKFMaGeOtGnNbZky0Kg")
|
userID := gidx.PrefixedID("idntusr-Ewj_PJUue9eDIDoyCoWG48GtwlysqTj2Y4qWPiJPN1s")
|
||||||
user := &models.UserDetails{
|
user := &models.UserDetails{
|
||||||
ID: "usr2",
|
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{
|
user := &models.UserDetails{
|
||||||
ID: "usr1",
|
ID: "usr1",
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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{
|
user := &models.UserDetails{
|
||||||
ID: "usr1",
|
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")
|
oldOrgID := gidx.PrefixedID("metlorg-org1")
|
||||||
|
|
||||||
userID := gidx.PrefixedID("idntusr-RnKvdujrwqm4o1dBDgfgaqeCpKFMaGeOtGnNbZky0Kg")
|
userID := gidx.PrefixedID("idntusr-Ewj_PJUue9eDIDoyCoWG48GtwlysqTj2Y4qWPiJPN1s")
|
||||||
user := &models.UserDetails{
|
user := &models.UserDetails{
|
||||||
ID: "usr2",
|
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{
|
user := &models.UserDetails{
|
||||||
ID: "usr1",
|
ID: "usr1",
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user