actions/auth.go
Function AuthCallback
has 7 return statements (exceeds 4 allowed). Open
Open
func AuthCallback(c buffalo.Context) error {
gu, err := gothic.CompleteUserAuth(c.Response(), c.Request())
if err != nil {
return c.Error(401, err)
}
exported function AuthCallback should have comment or be unexported Open
Open
func AuthCallback(c buffalo.Context) error {
- Exclude checks
exported function SetCurrentUser should have comment or be unexported Open
Open
func SetCurrentUser(next buffalo.Handler) buffalo.Handler {
- Exclude checks
exported function Authorize should have comment or be unexported Open
Open
func Authorize(next buffalo.Handler) buffalo.Handler {
- Exclude checks
exported function IsAuthorizedDomain should have comment or be unexported Open
Open
func IsAuthorizedDomain(userDomain string) bool {
- Exclude checks
exported function AuthDestroy should have comment or be unexported Open
Open
func AuthDestroy(c buffalo.Context) error {
- Exclude checks