mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-12 19:14:23 +00:00
18 lines
321 B
Go
18 lines
321 B
Go
|
package model
|
||
|
|
||
|
import (
|
||
|
es_models "github.com/caos/zitadel/internal/eventstore/models"
|
||
|
)
|
||
|
|
||
|
type ExternalIDP struct {
|
||
|
es_models.ObjectRoot
|
||
|
|
||
|
IDPConfigID string
|
||
|
UserID string
|
||
|
DisplayName string
|
||
|
}
|
||
|
|
||
|
func (idp *ExternalIDP) IsValid() bool {
|
||
|
return idp.AggregateID != "" && idp.IDPConfigID != "" && idp.UserID != ""
|
||
|
}
|