From 690797237a23b26e7f70e42bf88de977852485ed Mon Sep 17 00:00:00 2001 From: Andrew Thornton Date: Mon, 31 Jan 2022 19:31:40 +0000 Subject: [PATCH] Fix OAuth Source Edit Page to ensure restricted and group settings are set Fix #18432 Signed-off-by: Andrew Thornton --- routers/web/admin/auths.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/routers/web/admin/auths.go b/routers/web/admin/auths.go index 338a54c5dd264..20f364739e12e 100644 --- a/routers/web/admin/auths.go +++ b/routers/web/admin/auths.go @@ -192,6 +192,9 @@ func parseOAuth2Config(form forms.AuthenticationForm) *oauth2.Source { RequiredClaimName: form.Oauth2RequiredClaimName, RequiredClaimValue: form.Oauth2RequiredClaimValue, SkipLocalTwoFA: form.SkipLocalTwoFA, + GroupClaimName: form.Oauth2GroupClaimName, + RestrictedGroup: form.Oauth2RestrictedGroup, + AdminGroup: form.Oauth2AdminGroup, } }