Skip to content

Commit

Permalink
Add auth end-point
Browse files Browse the repository at this point in the history
  • Loading branch information
vkuznet committed Aug 18, 2021
1 parent ed9d5b6 commit 7ee7331
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions oauth.go
Original file line number Diff line number Diff line change
Expand Up @@ -507,6 +507,12 @@ func oauthRequestHandler(w http.ResponseWriter, r *http.Request) {
return
}

// for /auth path we simply return status ok
if r.URL.Path == fmt.Sprintf("%s/auth", Config.Base) {
w.WriteHeader(http.StatusOK)
return
}

// redirect HTTP requests
redirect(w, r)
}
Expand Down

0 comments on commit 7ee7331

Please sign in to comment.