]> source.dussan.org Git - gitea.git/commit
Allow Token/Basic auth on raw paths (#15987)
authorzeripath <art27@cantab.net>
Thu, 27 May 2021 18:46:11 +0000 (19:46 +0100)
committerGitHub <noreply@github.com>
Thu, 27 May 2021 18:46:11 +0000 (19:46 +0100)
commit6d6a65cf5cc13deddd96bb76b773667d068823d4
treef01a4e49ac2850b4b7ca6a46dcb2ecf1eee53dbc
parentb27a9d43a5c0b473c30b6137e0309d103793dcad
Allow Token/Basic auth on raw paths (#15987)

It appears that people have been using token authentication to navigate to raw paths
and recent changes have broken this. Whilst ideally these paths would not be being used
like this - it was not the intention to be a breaking change.

This PR restores access to these paths.

Fix #13772

Signed-off-by: Andrew Thornton <art27@cantab.net>
modules/auth/sso/basic.go
modules/auth/sso/reverseproxy.go
modules/auth/sso/sso.go
modules/auth/sso/sso_test.go