Skip to content

Commit 6907972

Browse files
committed
Fix OAuth Source Edit Page to ensure restricted and group settings are set
Fix go-gitea#18432 Signed-off-by: Andrew Thornton <[email protected]>
1 parent db7c3ec commit 6907972

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

routers/web/admin/auths.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,9 @@ func parseOAuth2Config(form forms.AuthenticationForm) *oauth2.Source {
192192
RequiredClaimName: form.Oauth2RequiredClaimName,
193193
RequiredClaimValue: form.Oauth2RequiredClaimValue,
194194
SkipLocalTwoFA: form.SkipLocalTwoFA,
195+
GroupClaimName: form.Oauth2GroupClaimName,
196+
RestrictedGroup: form.Oauth2RestrictedGroup,
197+
AdminGroup: form.Oauth2AdminGroup,
195198
}
196199
}
197200

0 commit comments

Comments
 (0)