refactor: finalize flags decoder

This commit is contained in:
Stavros
2025-09-12 12:47:58 +03:00
parent 91048c16f8
commit b30b908de3
3 changed files with 147 additions and 69 deletions

View File

@@ -74,6 +74,7 @@ type OAuthServiceConfig struct {
TokenURL string
UserinfoURL string
InsecureSkipVerify bool
Name string
}
// User/session related stuff
@@ -178,9 +179,5 @@ type AppPath struct {
// Flags
type Providers struct {
Providers map[string]ProviderConfig
}
type ProviderConfig struct {
Config OAuthServiceConfig
Providers map[string]OAuthServiceConfig
}