Erster Schritt des golangci-lint-Rollouts (non-blocking): 44 misspell + 4 staticcheck automatisch behoben (32 Dateien, nur Tippfehler/mechanisch). build+test grün. Kein Runtime-Change → kein Deploy. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
22 lines
1.1 KiB
Go
22 lines
1.1 KiB
Go
package models
|
|
|
|
import "time"
|
|
|
|
// OIDCSettings ist die Singleton-Configuration für OIDC/Keycloak-SSO.
|
|
// ClientSecretEnc trägt den verschlüsselten Client-Secret (secrets.Box)
|
|
// und wird NIE serialisiert (json:"-").
|
|
type OIDCSettings struct {
|
|
ID int `gorm:"column:id;primaryKey" json:"id"`
|
|
Enabled bool `gorm:"column:enabled" json:"enabled"`
|
|
IssuerURL string `gorm:"column:issuer_url" json:"issuer_url"`
|
|
ClientID string `gorm:"column:client_id" json:"client_id"`
|
|
ClientSecretEnc []byte `gorm:"column:client_secret_enc" json:"-"`
|
|
Scopes string `gorm:"column:scopes" json:"scopes"`
|
|
EmailClaim string `gorm:"column:email_claim" json:"email_claim"`
|
|
ButtonLabel string `gorm:"column:button_label" json:"button_label"`
|
|
CreatedAt time.Time `gorm:"column:created_at" json:"created_at"`
|
|
UpdatedAt time.Time `gorm:"column:updated_at" json:"updated_at"`
|
|
}
|
|
|
|
func (OIDCSettings) TableName() string { return "oidc_settings" }
|