refactor: move to traefik paerser for label parsing

This commit is contained in:
Stavros
2025-06-15 19:39:38 +03:00
parent 9eb296f146
commit 282cabf4dd
12 changed files with 92 additions and 83 deletions

View File

@@ -92,3 +92,17 @@ type AuthConfig struct {
type HooksConfig struct {
Domain string
}
// OAuthLabels is a list of labels that can be used in a tinyauth protected container
type OAuthLabels struct {
Whitelist string
Groups string
}
// Labels is a struct that contains the labels for a tinyauth protected container
type Labels struct {
Users string
Allowed string
Headers []string
OAuth OAuthLabels
}

View File

@@ -32,15 +32,6 @@ type SessionCookie struct {
OAuthGroups string
}
// TinyauthLabels is the labels for the tinyauth container
type TinyauthLabels struct {
OAuthWhitelist string
Users string
Allowed string
Headers map[string]string
OAuthGroups string
}
// UserContext is the context for the user
type UserContext struct {
Username string