Documentation ¶
Overview ¶
Copyright 2019-2020 Axetroy. All rights reserved. MIT license.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AuthCallbackRouter = router.Handler(func(c router.Context) { provider := c.Param("provider") c.ResetRequest(mux.SetURLVars(c.Request(), map[string]string{"provider": provider})) gothUser, err := gothic.CompleteUserAuth(c.Writer(), c.Request()) if err != nil { return } redirectToClient(&c, &gothUser) })
View Source
var AuthRouter = router.Handler(func(c router.Context) { provider := c.Param("provider") c.ResetRequest(mux.SetURLVars(c.Request(), map[string]string{"provider": provider})) if gothUser, err := gothic.CompleteUserAuth(c.Writer(), c.Request()); err == nil { redirectToClient(&c, &gothUser) } else { gothic.BeginAuthHandler(c.Writer(), c.Request()) } })
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.