Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion config/sample.config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ app:
validity: "720h"
# secure flag for cookies
secure: false
client_ip: "x-frontier-ip"
client_ip: "x-forwarded-for"
client_country: "x-frontier-country"
client_city: "x-frontier-city"
# once authenticated, server responds with a jwt with user context
Expand Down
2 changes: 1 addition & 1 deletion core/authenticate/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ type SessionConfig struct {
}

type SessionMetadataHeaders struct {
ClientIP string `yaml:"client_ip" mapstructure:"client_ip" default:"x-frontier-ip"`
ClientIP string `yaml:"client_ip" mapstructure:"client_ip" default:"x-forwarded-for"`
ClientCountry string `yaml:"client_country" mapstructure:"client_country" default:"x-frontier-country"`
ClientCity string `yaml:"client_city" mapstructure:"client_city" default:"x-frontier-city"`
}
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ services:
- FRONTIER_SPICEDB_PRE_SHARED_KEY=frontier
- FRONTIER_APP_RESOURCES_CONFIG_PATH=file:///opt
- FRONTIER_UI_PORT=8083
- FRONTIER_AUTHENTICATION_SESSION_HEADERS_CLIENT_IP=x-frontier-ip
- FRONTIER_AUTHENTICATION_SESSION_HEADERS_CLIENT_IP=x-forwarded-for
- FRONTIER_AUTHENTICATION_SESSION_HEADERS_CLIENT_COUNTRY=x-frontier-country
- FRONTIER_AUTHENTICATION_SESSION_HEADERS_CLIENT_CITY=x-frontier-city
# - FRONTIER_APP_MAILER_SMTP_HOST=sandbox.smtp.mailtrap.io
Expand Down
Loading