Remove unused types declarations

This commit is contained in:
bcmmbaga
2023-09-26 12:28:06 +03:00
parent c10ebdb227
commit de1fa8b26b
2 changed files with 5 additions and 11 deletions

View File

@@ -8,15 +8,6 @@ import (
"github.com/stretchr/testify/assert"
)
type mockAzureCredentials struct {
jwtToken JWTToken
err error
}
func (mc *mockAzureCredentials) Authenticate() (JWTToken, error) {
return mc.jwtToken, mc.err
}
func TestAzureJwtStillValid(t *testing.T) {
type jwtStillValidTest struct {
name string

View File

@@ -294,7 +294,7 @@ func (zm *ZitadelManager) GetUserDataByID(userID string, appMetadata AppMetadata
}
// GetAccount returns all the users for a given profile.
func (zm *ZitadelManager) GetAccount(_ string) ([]*UserData, error) {
func (zm *ZitadelManager) GetAccount(accountID string) ([]*UserData, error) {
body, err := zm.post("users/_search", "")
if err != nil {
return nil, err
@@ -312,7 +312,10 @@ func (zm *ZitadelManager) GetAccount(_ string) ([]*UserData, error) {
users := make([]*UserData, 0)
for _, profile := range profiles.Result {
users = append(users, profile.userData())
userData := profile.userData()
userData.AppMetadata.WTAccountID = accountID
users = append(users, userData)
}
return users, nil