mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-03 01:52:24 -06:00
media handler updates
This commit is contained in:
parent
d797ddf704
commit
17a62d53ed
15 changed files with 237 additions and 55 deletions
|
|
@ -35,9 +35,10 @@ func (m *Module) OauthTokenMiddleware(c *gin.Context) {
|
|||
|
||||
ti, err := m.server.ValidationBearerToken(c.Request)
|
||||
if err != nil {
|
||||
l.Trace("no valid token presented: continuing with unauthenticated request")
|
||||
l.Tracef("could not validate token: %s", err)
|
||||
return
|
||||
}
|
||||
l.Trace("continuing with unauthenticated request")
|
||||
c.Set(oauth.SessionAuthorizedToken, ti)
|
||||
l.Tracef("set gin context %s to %+v", oauth.SessionAuthorizedToken, ti)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue