Skip to content

Commit

Permalink
rename to client_user_id_http_header
Browse files Browse the repository at this point in the history
  • Loading branch information
FZambia committed Oct 29, 2023
1 parent bd929c3 commit 340d71f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ var defaults = map[string]any{
"client_insecure_skip_token_signature_verify": false,
"api_insecure": false,

"client_auth_user_id_http_header": "",
"client_user_id_http_header": "",

"token_hmac_secret_key": "",
"token_rsa_public_key": "",
Expand Down Expand Up @@ -2808,7 +2808,7 @@ func Mux(n *centrifuge.Node, ruleContainer *rule.Container, apiExecutor *api.Exe
connLimitMW := middleware.NewConnLimit(n, ruleContainer)
connMiddlewares = append(connMiddlewares, connLimitMW.Middleware)
}
userIDHTTPHeader := v.GetString("client_auth_user_id_http_header")
userIDHTTPHeader := v.GetString("client_user_id_http_header")
if userIDHTTPHeader != "" {
connMiddlewares = append(connMiddlewares, middleware.UserHeaderAuth(userIDHTTPHeader))
}
Expand Down

0 comments on commit 340d71f

Please sign in to comment.