Volvo Connected: add oauth using generic plugin (#21003)
This commit is contained in:
parent
18de1f0f88
commit
326970a0a4
17 changed files with 367 additions and 292 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue