mirror of
https://github.com/steveiliop56/tinyauth.git
synced 2026-05-10 14:28:12 +00:00
4f7335ed73
* feat: add new logger * refactor: use one struct for context handling and cancellation * refactor: rework logging and config in controllers * refactor: rework logging and config in middlewares * refactor: rework logging and cancellation in services * refactor: rework cli logging * fix: improve logging in routines * feat: use sync groups for better cancellation * refactor: simplify middleware, controller and service init * tests: fix controller tests * tests: use require instead of assert where previous step is required * tests: fix middleware tests * tests: fix service tests * tests: fix context tests * fix: fix typos * feat: add option to enable or disable concurrent listeners * fix: assign public key correctly in oidc server * tests: fix don't try to test logger with char size * fix: coderabbit comments * tests: use filepath join instead of path join * fix: ensure unix socket shutdown doesn't run twice * chore: remove temp lint file
23 lines
572 B
Go
23 lines
572 B
Go
package model
|
|
|
|
type RuntimeConfig struct {
|
|
AppURL string
|
|
UUID string
|
|
CookieDomain string
|
|
SessionCookieName string
|
|
CSRFCookieName string
|
|
RedirectCookieName string
|
|
OAuthSessionCookieName string
|
|
LocalUsers []LocalUser
|
|
OAuthProviders map[string]OAuthServiceConfig
|
|
OAuthWhitelist []string
|
|
ConfiguredProviders []Provider
|
|
OIDCClients []OIDCClientConfig
|
|
}
|
|
|
|
type Provider struct {
|
|
Name string `json:"name"`
|
|
ID string `json:"id"`
|
|
OAuth bool `json:"oauth"`
|
|
}
|