models

package
v1.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 26, 2026 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OIDC

type OIDC struct {
	ID           int       `db:"id" json:"id"`
	CreatedAt    time.Time `db:"created_at" json:"created_at"`
	UpdatedAt    time.Time `db:"updated_at" json:"updated_at"`
	Name         string    `db:"name" json:"name"`
	Enabled      bool      `db:"enabled" json:"enabled"`
	ClientID     string    `db:"client_id" json:"client_id,omitempty"`
	ClientSecret string    `db:"client_secret" json:"client_secret,omitempty"`
	Provider     string    `db:"provider" json:"provider"`
	ProviderURL  string    `db:"provider_url" json:"provider_url"`
	LogoURL      string    `db:"logo_url" json:"logo_url"`
	RedirectURI  string    `db:"-" json:"redirect_uri"`
}

OIDC represents an OpenID Connect configuration.

func (*OIDC) ClearSecrets

func (oidc *OIDC) ClearSecrets()

ClearSecrets masks sensitive fields with dummy values for API responses.

func (oidc *OIDC) SetProviderLogo()

SetProviderLogo sets the logo URL if not already set. Falls back to built-in provider logos when no custom logo is provided.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL