v5.11.0 release notes
- Authentication
- Added
auth.SchemeAuthenticatorinterface that authenticators can implement to indicate the scheme they are using. On authentication failure, the auth middleware adds theWWW-Authenticateheader to the response if the authenticator implementsauth.SchemeAuthenticator. - Added
auth.MiddlewareWithRealmto provide custom realm description for theWWW-Authenticateheader.
- Added
- Added an explicit error message when
server.RegisterRoutesis called more than once. - Static file serving: fixed an issue on Windows which resulted in 404 errors if the filesystem was embedded and the requested path contained slashes.