Auth route /whoami for nginx subrequest auth, support changing the session cookie domain for that purpose

This commit is contained in:
bluepython508
2023-11-08 09:36:30 +00:00
parent 54db8727b0
commit 93cd897b0e
6 changed files with 20 additions and 4 deletions

View File

@@ -8,7 +8,8 @@ defmodule SsoBsnWeb.Endpoint do
store: :cookie,
key: "_sso_bsn_key",
signing_salt: "2YoB6zeO",
same_site: "Lax"
same_site: "Lax",
domain: Application.compile_env(:sso_bsn, :session_domain)
]
socket "/live", Phoenix.LiveView.Socket, websocket: [connect_info: [session: @session_options]]