mirror of
				https://github.com/zitadel/zitadel.git
				synced 2025-10-25 06:48:50 +00:00 
			
		
		
		
	 49de5c61b2
			
		
	
	49de5c61b2
	
	
	
		
			
			# Which Problems Are Solved OIDC applications can configure the used login version, which is currently not possible for SAML applications. # How the Problems Are Solved Add the same functionality dependent on the feature-flag for SAML applications. # Additional Changes None # Additional Context Closes #9267 Follow up issue for frontend changes #9354 --------- Co-authored-by: Livio Spring <livio.a@gmail.com>
		
			
				
	
	
		
			43 lines
		
	
	
		
			678 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			43 lines
		
	
	
		
			678 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
 | |
| 	LoginVersion LoginVersion
 | |
| 	LoginBaseURI 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
 | |
| }
 |