Repository navigation
New Features
Opts.DisableJWTQuerystops the auth middleware and the oauth2, oauth1 and Apple logout handlers from reading a session token from theJWTQueryparameter, so a token comes only from theJWTHeaderKeyheader or the cookie. An image URL somebody else wrote can carry a session token, and a token in the query takes precedence over the viewer's cookie. The default is unchanged. The verified and Telegram logins still read their confirmation token from their owntokenparameter. A refused oauth2, oauth1 or Apple logout leaves the query out of its error log #353 @paskal
Behavior Changes
- With
Opts.AuthRoutePathset, the handler answers only<path>/list,<path>/logout,<path>/user,<path>/status, and<path>/<provider>/login,callbackandlogoutof a registered provider. Any other path gets 404 whatever the method. A provider name that is not registered used to get 400, and an unknown action of a registered provider got 405 for a method other than GET and POST. WithoutAuthRoutePathnothing changes #354 @paskal
v1 and v2 carry the same changes.