mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-29 22:22:25 -05:00
[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
This commit is contained in:
parent
2385b51d58
commit
694a490589
14 changed files with 411 additions and 30 deletions
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue