mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-15 12:27:59 +00:00
41 lines
625 B
Go
41 lines
625 B
Go
package domain
|
|
|
|
import (
|
|
"github.com/zitadel/zitadel/internal/eventstore/v1/models"
|
|
)
|
|
|
|
type SAMLApp struct {
|
|
models.ObjectRoot
|
|
|
|
AppID string
|
|
AppName string
|
|
EntityID string
|
|
Metadata []byte
|
|
MetadataURL string
|
|
|
|
State AppState
|
|
}
|
|
|
|
func (a *SAMLApp) GetApplicationName() string {
|
|
return a.AppName
|
|
}
|
|
|
|
func (a *SAMLApp) GetState() AppState {
|
|
return a.State
|
|
}
|
|
|
|
func (a *SAMLApp) GetMetadata() []byte {
|
|
return a.Metadata
|
|
}
|
|
|
|
func (a *SAMLApp) GetMetadataURL() string {
|
|
return a.MetadataURL
|
|
}
|
|
|
|
func (a *SAMLApp) IsValid() bool {
|
|
if a.MetadataURL == "" && a.Metadata == nil {
|
|
return false
|
|
}
|
|
return true
|
|
}
|