mirror of
https://github.com/zitadel/zitadel.git
synced 2025-01-10 18:43:40 +00:00
36 lines
741 B
Go
36 lines
741 B
Go
|
package oidc
|
||
|
|
||
|
import (
|
||
|
"github.com/caos/zitadel/internal/crypto"
|
||
|
"github.com/caos/zitadel/internal/eventstore/v2"
|
||
|
)
|
||
|
|
||
|
type ConfigReadModel struct {
|
||
|
eventstore.ReadModel
|
||
|
|
||
|
IDPConfigID string
|
||
|
ClientID string
|
||
|
ClientSecret *crypto.CryptoValue
|
||
|
ClientSecretString string
|
||
|
Issuer string
|
||
|
Scopes []string
|
||
|
IDPDisplayNameMapping MappingField
|
||
|
UsernameMapping MappingField
|
||
|
}
|
||
|
|
||
|
func (rm *ConfigReadModel) AppendEvents(events ...eventstore.EventReader) error {
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
func (rm *ConfigReadModel) Reduce() error {
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
type MappingField int32
|
||
|
|
||
|
const (
|
||
|
OIDCMappingFieldUnspecified MappingField = iota
|
||
|
OIDCMappingFieldPreferredLoginName
|
||
|
OIDCMappingFieldEmail
|
||
|
)
|