summaryrefslogtreecommitdiff
path: root/internal/api/client/auth/authorize.go
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2022-06-11 10:39:39 +0200
committerLibravatar GitHub <noreply@github.com>2022-06-11 10:39:39 +0200
commit694a49058951de31cca4ea061e2c08d44e712612 (patch)
tree8509cb95f41faaf15d4352707617bff17300978d /internal/api/client/auth/authorize.go
parent[bugfix] Make accounts media_only query also work with pg (#643) (diff)
downloadgotosocial-694a49058951de31cca4ea061e2c08d44e712612.tar.xz
[feature] Add `created_at` and `error_description` to `/oauth/token` endpoint (#645)
* start fiddling about with oauth server * start returning more helpful errors from oauth * test helpful(ish) token errors * add missing license header
Diffstat (limited to 'internal/api/client/auth/authorize.go')
-rw-r--r--internal/api/client/auth/authorize.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/api/client/auth/authorize.go b/internal/api/client/auth/authorize.go
index 6f96484a8..233dacfd2 100644
--- a/internal/api/client/auth/authorize.go
+++ b/internal/api/client/auth/authorize.go
@@ -246,7 +246,7 @@ func (m *Module) AuthorizePOSTHandler(c *gin.Context) {
sessionUserID: {userID},
}
- if err := m.server.HandleAuthorizeRequest(c.Writer, c.Request); err != nil {
+ if err := m.processor.OAuthHandleAuthorizeRequest(c.Writer, c.Request); err != nil {
api.ErrorHandler(c, gtserror.NewErrorBadRequest(err, err.Error(), helpfulAdvice), m.processor.InstanceGet)
}
}