setup new provider endpoint creation

This commit is contained in:
2026-08-06 20:19:11 -04:00
parent fd12ba02fd
commit 793904e942
4 changed files with 10 additions and 6 deletions
+2
View File
@@ -18,6 +18,7 @@ type OAuthProvider struct {
}
var Providers []OAuthProvider
var DefaultProvider *OAuthProvider // Assumed to be the last created provider
func CreateOAuthProvider(issuer string, clientID string) error {
ctx := context.Background()
@@ -42,5 +43,6 @@ func CreateOAuthProvider(issuer string, clientID string) error {
Config: OAuthConfig,
}
Providers = append(Providers, newProvider)
DefaultProvider = &newProvider
return nil
}