OAuth: Make sub claim required for generic oauth behind feature toggle (#85065)

* Add feature toggle for sub claims requirement

* OAuth: require valid auth id

* Fix feature toggle description
This commit is contained in:
Karl Persson
2024-03-25 14:22:24 +01:00
committed by GitHub
parent e2f155f9f7
commit 2f3a01f79f
8 changed files with 103 additions and 10 deletions
+1 -1
View File
@@ -142,7 +142,7 @@ func ProvideService(
for name := range socialService.GetOAuthProviders() {
clientName := authn.ClientWithPrefix(name)
s.RegisterClient(clients.ProvideOAuth(clientName, cfg, oauthTokenService, socialService, settingsProviderService))
s.RegisterClient(clients.ProvideOAuth(clientName, cfg, oauthTokenService, socialService, settingsProviderService, features))
}
// FIXME (jguer): move to User package