]> source.dussan.org Git - gitea.git/commit
Make oauth2 code clear. Move oauth2 provider code to their own packages/files (#32148)
authorLunny Xiao <xiaolunwen@gmail.com>
Wed, 2 Oct 2024 00:03:19 +0000 (08:03 +0800)
committerGitHub <noreply@github.com>
Wed, 2 Oct 2024 00:03:19 +0000 (08:03 +0800)
commit3a4a1bffbebd8a6f024a7fc4849cebbd7f0274d4
treee4f37c1b95646e3de8eca4b37a7caa6779c2ceb1
parent70b7df0e5e5cce5a3561fa5a6a8abd4ebc902e68
Make oauth2 code clear. Move oauth2 provider code to their own packages/files (#32148)

Fix #30266
Replace #31533
13 files changed:
routers/init.go
routers/web/auth/oauth.go
routers/web/auth/oauth2_provider.go [new file with mode: 0644]
routers/web/auth/oauth_test.go
services/auth/oauth2.go
services/auth/source/oauth2/init.go
services/auth/source/oauth2/jwtsigningkey.go [deleted file]
services/auth/source/oauth2/token.go [deleted file]
services/oauth2_provider/access_token.go [new file with mode: 0644]
services/oauth2_provider/init.go [new file with mode: 0644]
services/oauth2_provider/jwtsigningkey.go [new file with mode: 0644]
services/oauth2_provider/token.go [new file with mode: 0644]
tests/integration/oauth_test.go