The Wayback Machine - https://web.archive.org/web/20210807164447/https://github.com/go-gitea/gitea/pull/16544
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add microsoft oauth2 providers #16544

Merged

Conversation

@zeripath
Copy link
Contributor

@zeripath zeripath commented Jul 25, 2021

Users commonly want to be able to use their AzureAD or MicrosoftOnline accounts with Gitea.

This PR adds the goth.Providers for Azure and microsoft online.

Fix #6866
Fix #12073

@zeripath zeripath force-pushed the zeripath:add-microsoft-oauth2-providers branch from dd7497e to a1058ae Jul 25, 2021
@codecov-commenter
Copy link

@codecov-commenter codecov-commenter commented Jul 25, 2021

Codecov Report

Merging #16544 (f629cd2) into main (6e6f23b) will increase coverage by 0.02%.
The diff coverage is 45.10%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main   #16544      +/-   ##
==========================================
+ Coverage   45.37%   45.39%   +0.02%     
==========================================
  Files         750      756       +6     
  Lines       85115    85247     +132     
==========================================
+ Hits        38622    38700      +78     
- Misses      40244    40283      +39     
- Partials     6249     6264      +15     
Impacted Files Coverage Δ
routers/web/user/setting/security.go 30.30% <0.00%> (-2.49%) ⬇️
services/auth/source/oauth2/source_name.go 0.00% <0.00%> (ø)
services/auth/source/oauth2/source_register.go 0.00% <0.00%> (ø)
services/forms/auth_form.go 100.00% <ø> (ø)
services/auth/source/oauth2/urlmapping.go 27.58% <27.58%> (ø)
services/auth/source/oauth2/providers.go 26.66% <33.33%> (+21.49%) ⬆️
services/auth/source/oauth2/providers_simple.go 42.30% <42.30%> (ø)
services/auth/source/oauth2/providers_openid.go 53.33% <53.33%> (ø)
routers/web/admin/auths.go 48.72% <56.25%> (-1.46%) ⬇️
services/auth/source/oauth2/providers_custom.go 63.23% <63.23%> (ø)
... and 15 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6e6f23b...f629cd2. Read the comment docs.

@techknowlogick techknowlogick added this to the 1.16.0 milestone Jul 26, 2021
@techknowlogick techknowlogick merged commit ab9bb54 into go-gitea:main Aug 6, 2021
2 checks passed
2 checks passed
approvals/lgtm this commit looks good
continuous-integration/drone/pr Build is passing
Details
@zeripath zeripath deleted the zeripath:add-microsoft-oauth2-providers branch Aug 6, 2021
@zeripath zeripath mentioned this pull request Aug 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment