Skip to content

Version 2.7.0

Latest

Choose a tag to compare

@umputun umputun released this 01 Dec 08:36
5eec82f

New Features

  • Opts.DisableJWTQuery stops the auth middleware and the oauth2, oauth1 and Apple logout handlers from reading a session token from the JWTQuery parameter, so a token comes only from the JWTHeaderKey header 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 own token parameter. A refused oauth2, oauth1 or Apple logout leaves the query out of its error log #353 @paskal

Behavior Changes

  • With Opts.AuthRoutePath set, the handler answers only <path>/list, <path>/logout, <path>/user, <path>/status, and <path>/<provider>/login, callback and logout of 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. Without AuthRoutePath nothing changes #354 @paskal

v1 and v2 carry the same changes.