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
Prev Previous commit
Next Next commit
Merge remote-tracking branch 'origin/main' into add-microsoft-oauth2-…
…providers
  • Loading branch information
zeripath committed Jul 31, 2021
commit 5e59a7f254d5038108f724f9edcf874d4a6943f2
3 changes: 3 additions & 0 deletions services/auth/source/oauth2/providers.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,9 @@ func RegisterProviderWithGothic(providerName string, source *Source) error {

// RemoveProviderFromGothic removes the given OAuth2 provider from the goth lib
func RemoveProviderFromGothic(providerName string) {
gothRWMutex.Lock()
defer gothRWMutex.Unlock()

delete(goth.GetProviders(), providerName)
}

Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.