[v11.0.x] OAuth: Make sub claim required for generic oauth behind feature toggle (#86118)

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

(cherry picked from commit 2f3a01f79f)

Co-authored-by: Karl Persson <kalle.persson@grafana.com>
This commit is contained in:
grafana-delivery-bot[bot]
2024-04-15 13:59:05 +01:00
committed by GitHub
co-authored by Karl Persson
parent b49a40d319
commit 524c590462
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