From 38e985477cf9f9ddbc8b4997c343e0b494a79e73 Mon Sep 17 00:00:00 2001 From: Jan-Lukas Else Date: Tue, 1 Dec 2020 14:36:16 +0100 Subject: [PATCH] IndieAuth: Allow empty scope --- indieAuthServer.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/indieAuthServer.go b/indieAuthServer.go index 2232465..9b892bf 100644 --- a/indieAuthServer.go +++ b/indieAuthServer.go @@ -55,10 +55,10 @@ func indieAuthAuthGet(w http.ResponseWriter, r *http.Request) { http.Error(w, "response_type must be empty or id or code", http.StatusBadRequest) return } - if data.ResponseType == "code" && len(data.Scopes) < 1 { - http.Error(w, "scope is missing or empty", http.StatusBadRequest) - return - } + // if data.ResponseType == "code" && len(data.Scopes) < 1 { + // http.Error(w, "scope is missing or empty", http.StatusBadRequest) + // return + // } render(w, "indieauth", &renderData{ Data: data, })