Improve oauth integration (#21266)

This commit is contained in:
lehmanju 2025-08-05 23:16:49 +02:00 • committed by GitHub
parent 4c73cbe197
commit 11e769ea22
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
18 changed files with 219 additions and 208 deletions

View file

@ -3,7 +3,7 @@ package api
import (
"context"
"io"
"net/http"
"net/url"
"time"
)
@ -193,9 +193,11 @@ type Tariff interface {
// AuthProvider is the ability to provide OAuth authentication through the ui
type AuthProvider interface {
HandleCallback(r *http.Request)
HandleLogout(r *http.Request)
AuthCodeURL(state string) string
Login(state string) string
Logout() error
HandleCallback(responseValues url.Values) error
Authenticated() bool
DisplayName() string
}
// IconDescriber optionally provides an icon