]> source.dussan.org Git - gitea.git/commit
Add sso.Group, context.Auth, context.APIAuth to allow auth special routes (#16086)
authorLunny Xiao <xiaolunwen@gmail.com>
Wed, 9 Jun 2021 17:53:16 +0000 (01:53 +0800)
committerGitHub <noreply@github.com>
Wed, 9 Jun 2021 17:53:16 +0000 (19:53 +0200)
commitfb3ffeb18df6bb94bb3f69348a93398b05259174
treeaa56433e062bc68d2a118581a715ee324f025594
parentda057996d584c633524406d69b424cbc3d4473eb
Add sso.Group, context.Auth, context.APIAuth to allow auth special routes (#16086)

* Add sso.Group, context.Auth, context.APIAuth to allow auth special routes

* Remove unnecessary check

* Rename sso -> auth

* remove unused method of Auth interface
26 files changed:
modules/auth/sso/basic.go [deleted file]
modules/auth/sso/interface.go [deleted file]
modules/auth/sso/oauth2.go [deleted file]
modules/auth/sso/reverseproxy.go [deleted file]
modules/auth/sso/session.go [deleted file]
modules/auth/sso/sso.go [deleted file]
modules/auth/sso/sso_test.go [deleted file]
modules/auth/sso/sspi_windows.go [deleted file]
modules/auth/sso/user.go [deleted file]
modules/context/api.go
modules/context/context.go
routers/api/v1/api.go
routers/init.go
routers/web/base.go
routers/web/user/oauth.go
routers/web/web.go
services/auth/auth.go [new file with mode: 0644]
services/auth/auth_test.go [new file with mode: 0644]
services/auth/basic.go [new file with mode: 0644]
services/auth/group.go [new file with mode: 0644]
services/auth/interface.go [new file with mode: 0644]
services/auth/oauth2.go [new file with mode: 0644]
services/auth/placeholder.go [new file with mode: 0644]
services/auth/reverseproxy.go [new file with mode: 0644]
services/auth/session.go [new file with mode: 0644]
services/auth/sspi_windows.go [new file with mode: 0644]