mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-06 16:19:30 -06:00
worky worky quite contrerky
This commit is contained in:
parent
d09a8a1f05
commit
eb57c95c14
25 changed files with 544 additions and 216 deletions
|
|
@ -33,7 +33,7 @@ func (m *Module) OauthTokenMiddleware(c *gin.Context) {
|
|||
l := m.log.WithField("func", "OauthTokenMiddleware")
|
||||
l.Trace("entering OauthTokenMiddleware")
|
||||
|
||||
ti, err := m.server.ValidationBearerToken(c.Request)
|
||||
ti, err := m.server.ValidationBearerToken(c.Copy().Request)
|
||||
if err != nil {
|
||||
l.Tracef("could not validate token: %s", err)
|
||||
return
|
||||
|
|
@ -74,4 +74,5 @@ func (m *Module) OauthTokenMiddleware(c *gin.Context) {
|
|||
c.Set(oauth.SessionAuthorizedApplication, app)
|
||||
l.Tracef("set gin context %s to %+v", oauth.SessionAuthorizedApplication, app)
|
||||
}
|
||||
c.Next()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue