Auth: Add support for the TlsSkipVerify parameter to JWT Auth (#91514)

* feat(auth/JWTAuth): add support for the TlsSkipVerify parameter

* feat(auth/JWTAuth): add param to default.ini and sample.ini

---------

Co-authored-by: Mihaly Gyongyosi <mgyongyosi@users.noreply.github.com>
This commit is contained in:
Filip "Ret2Me" Poplewski
2025-03-03 10:18:14 +01:00
committed by GitHub
parent 2e7c28ccbc
commit 561156c4da
4 changed files with 6 additions and 1 deletions
+2
View File
@@ -27,6 +27,7 @@ type AuthJWTSettings struct {
GroupsAttributePath string
EmailAttributePath string
UsernameAttributePath string
TlsSkipVerify bool
}
type ExtJWTSettings struct {
@@ -69,6 +70,7 @@ func (cfg *Cfg) readAuthJWTSettings() {
jwtSettings.GroupsAttributePath = valueAsString(authJWT, "groups_attribute_path", "")
jwtSettings.EmailAttributePath = valueAsString(authJWT, "email_attribute_path", "")
jwtSettings.UsernameAttributePath = valueAsString(authJWT, "username_attribute_path", "")
jwtSettings.TlsSkipVerify = authJWT.Key("tls_skip_verify_insecure").MustBool(false)
cfg.JWTAuth = jwtSettings
}