mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-12 07:47:32 +00:00
chore: move the go code into a subfolder
This commit is contained in:
37
apps/api/internal/domain/oidc_settings.go
Normal file
37
apps/api/internal/domain/oidc_settings.go
Normal file
@@ -0,0 +1,37 @@
|
||||
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
|
||||
}
|
Reference in New Issue
Block a user