Documentation ¶
Index ¶
Constants ¶
View Source
const ( LoginHandler = "/auth/login" CallbackHandler = "/auth/callback" PublicKeyHandler = "/auth/public-key" RefreshTokenHandler = "/auth/refresh" UserInfoHandler = "/auth/user-info" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthService ¶
type AuthService interface { LoginHandler(w http.ResponseWriter, r *http.Request) CallbackHandler(w http.ResponseWriter, r *http.Request) RefreshTokenHandler(w http.ResponseWriter, r *http.Request) UserInfoHandler(w http.ResponseWriter, r *http.Request) }
func NewAuthService ¶
func NewAuthService(router *mux.Router, conf config.Config, userStorage storage.UserStorage, dashboardStorage storage.DashboardStorage, projectStorage storage.ProjectStorage, oauthConfig *oauth2.Config) AuthService
Click to show internal directories.
Click to hide internal directories.