all repos — honk @ dda2fb700429f52bcf8d76badd51c45fd8f02423

my fork of honk

u
Anirudh Oppiliappan x@icyphox.sh
Sun, 21 Jan 2024 22:44:51 +0200
commit

dda2fb700429f52bcf8d76badd51c45fd8f02423

parent

28af7a357ccfaf8adb494a5e3ce1971544569c14

1 files changed, 4 insertions(+), 1 deletions(-)

jump to
M masto.gomasto.go

@@ -121,13 +121,15 @@ return

} if app.Scopes != gotScopes { - elog.Println("oauth: bad scopes") + elog.Printf("oauth: bad scopes: got %s; want %s", gotScopes, app.Scopes) rw.WriteHeader(http.StatusBadRequest) + return } if app.RedirectURI != redirectURI { elog.Println("oauth: incorrect redirect URI") rw.WriteHeader(http.StatusBadRequest) + return } if grantType == "authorization_code" {

@@ -151,6 +153,7 @@ } else {

// gaslight the client elog.Println("oauth: bad grant_type: must be authorization_code") rw.WriteHeader(http.StatusBadRequest) + return } }