Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 0 additions & 9 deletions api/auth.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package api

import (
"encoding/json"
"fmt"
"net/http"

Expand All @@ -26,7 +25,6 @@ func CreateAuthHandler(userService users.UserService, authService auth.AuthServi
func (h *AuthHandler) createHttpHandler() http.Handler {
handler := http.NewServeMux()

handler.HandleFunc("GET /policy.json", h.policyHandler) // DEPRECATED TODO: remove
handler.HandleFunc("GET /{provider}", h.handleProviderLogin)
handler.HandleFunc("GET /{provider}/callback", h.handleAuthCallback)

Expand All @@ -36,13 +34,6 @@ func (h *AuthHandler) createHttpHandler() http.Handler {
return handler
}

func (h *AuthHandler) policyHandler(w http.ResponseWriter, r *http.Request) {
w.Header().Set("Content-Type", "application/json")
if err := json.NewEncoder(w).Encode(h.authService.GetPolicy()); err != nil {
errors.HandleError(w, r, err)
}
}

func (h *AuthHandler) handleProviderLogin(w http.ResponseWriter, r *http.Request) {
providerName := r.PathValue("provider")
provider, err := h.authService.GetProvider(providerName)
Expand Down
1 change: 0 additions & 1 deletion api/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ func CreateRouter(userService users.UserService, authService auth.AuthService, e

handlers := []Handler{
CreateUserHandler(userService, authService),
CreateProfileHandler(userService, authService),
CreateEmailHandler(userService, authService, emailService),
}

Expand Down
213 changes: 0 additions & 213 deletions api/profile.go

This file was deleted.