Volvo Connected: add oauth using generic plugin (#21003)

This commit is contained in:
lehmanju 2025-05-15 18:39:31 +02:00 • committed by GitHub
parent 18de1f0f88
commit 326970a0a4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
17 changed files with 367 additions and 292 deletions

View file

@ -193,9 +193,9 @@ type Tariff interface {
// AuthProvider is the ability to provide OAuth authentication through the ui
type AuthProvider interface {
SetCallbackParams(baseURL, redirectURL string, authenticated chan<- bool)
LoginHandler() http.HandlerFunc
LogoutHandler() http.HandlerFunc
HandleCallback(r *http.Request)
HandleLogout(r *http.Request)
AuthCodeURL(state string) string
}
// IconDescriber optionally provides an icon