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:
committed by
GitHub
parent
2e7c28ccbc
commit
561156c4da
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user