]> source.dussan.org Git - gitea.git/commit
Add microsoft oauth2 providers (#16544)
authorzeripath <art27@cantab.net>
Fri, 6 Aug 2021 01:11:08 +0000 (02:11 +0100)
committerGitHub <noreply@github.com>
Fri, 6 Aug 2021 01:11:08 +0000 (21:11 -0400)
commitab9bb54144f136bbbba2ce2e94fd88c0be0ee1cf
treef8b283e33e70cbc3d827879c4774de2b41450ab0
parent7e7006e00d8d0d5ce4c871685d421269049e4b39
Add microsoft oauth2 providers (#16544)

* Clean up oauth2 providers

Signed-off-by: Andrew Thornton <art27@cantab.net>
* Add AzureAD, AzureADv2, MicrosoftOnline OAuth2 providers

Signed-off-by: Andrew Thornton <art27@cantab.net>
* Apply suggestions from code review

* remove unused Scopes

Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
29 files changed:
go.sum
options/locale/locale_en-US.ini
public/img/auth/azuread.png [new file with mode: 0644]
public/img/auth/azureadv2.png [new file with mode: 0644]
public/img/auth/microsoftonline.png [new file with mode: 0644]
routers/web/admin/auths.go
routers/web/user/setting/security.go
services/auth/source/oauth2/providers.go
services/auth/source/oauth2/providers_base.go [new file with mode: 0644]
services/auth/source/oauth2/providers_custom.go [new file with mode: 0644]
services/auth/source/oauth2/providers_openid.go [new file with mode: 0644]
services/auth/source/oauth2/providers_simple.go [new file with mode: 0644]
services/auth/source/oauth2/source_name.go [new file with mode: 0644]
services/auth/source/oauth2/source_register.go
services/auth/source/oauth2/urlmapping.go
services/forms/auth_form.go
templates/admin/auth/edit.tmpl
templates/admin/auth/source/oauth.tmpl
vendor/github.com/markbates/going/LICENSE.txt [new file with mode: 0644]
vendor/github.com/markbates/going/defaults/defaults.go [new file with mode: 0644]
vendor/github.com/markbates/goth/providers/azuread/azuread.go [new file with mode: 0644]
vendor/github.com/markbates/goth/providers/azuread/session.go [new file with mode: 0644]
vendor/github.com/markbates/goth/providers/azureadv2/azureadv2.go [new file with mode: 0644]
vendor/github.com/markbates/goth/providers/azureadv2/scopes.go [new file with mode: 0644]
vendor/github.com/markbates/goth/providers/azureadv2/session.go [new file with mode: 0644]
vendor/github.com/markbates/goth/providers/microsoftonline/microsoftonline.go [new file with mode: 0644]
vendor/github.com/markbates/goth/providers/microsoftonline/session.go [new file with mode: 0644]
vendor/modules.txt
web_src/js/index.js