mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-12 02:54:20 +00:00
fa9f581d56
* chore: move to new org * logging * fix: org rename caos -> zitadel Co-authored-by: adlerhurst <silvan.reusser@gmail.com>
38 lines
739 B
Go
38 lines
739 B
Go
package domain
|
|
|
|
import (
|
|
"time"
|
|
|
|
"github.com/zitadel/zitadel/internal/eventstore/v1/models"
|
|
)
|
|
|
|
type OIDCSettings struct {
|
|
models.ObjectRoot
|
|
|
|
State OIDCSettingsState
|
|
Default bool
|
|
|
|
AccessTokenLifetime time.Duration
|
|
IdTokenLifetime time.Duration
|
|
RefreshTokenIdleExpiration time.Duration
|
|
RefreshTokenExpiration time.Duration
|
|
}
|
|
|
|
type OIDCSettingsState int32
|
|
|
|
const (
|
|
OIDCSettingsStateUnspecified OIDCSettingsState = iota
|
|
OIDCSettingsStateActive
|
|
OIDCSettingsStateRemoved
|
|
|
|
oidcSettingsStateCount
|
|
)
|
|
|
|
func (c OIDCSettingsState) Valid() bool {
|
|
return c >= 0 && c < oidcSettingsStateCount
|
|
}
|
|
|
|
func (s OIDCSettingsState) Exists() bool {
|
|
return s != OIDCSettingsStateUnspecified && s != OIDCSettingsStateRemoved
|
|
}
|