quick-addition-90714
02/12/2025, 12:16 PMsession:
lifespan: 24h
cookie:
domain: <http://example.com|example.com>
same_site: None
or
session:
lifespan: 24h
cookie:
domain: <http://identity.example.com|identity.example.com>
same_site: None
It still does not persist on the ui.example.com domain name.
I was wondering if people have a similar setup? And how they did it. Or what I'm possibly doing wrongmagnificent-energy-493
quick-addition-90714
02/12/2025, 4:05 PMloginChallenge := r.URL.Query().Get("login_challenge")
flowId := r.URL.Query().Get("flow")
language := translations.GetPreferredLanguage(r)
if loginChallenge != "" {
kratosBrowserLoginUrl := fmt.Sprintf("%s/self-service/login/browser?login_challenge=%s", kratosReferenceUrl, loginChallenge)
http.Redirect(w, r, kratosBrowserLoginUrl, http.StatusFound)
return
}
kratosLoginFlowRequest := api.kratosClient.FrontendAPI.GetLoginFlow(r.Context())
kratosLoginFlowRequest = kratosLoginFlowRequest.Id(flowId)
kratosLoginFlowRequest = kratosLoginFlowRequest.Cookie(r.Header.Get("Cookie"))
kratosLoginFlow, resp, err := api.kratosClient.FrontendAPI.GetLoginFlowExecute(kratosLoginFlowRequest)
if err != nil {
slog.Error("Could not create browser request", slog.String("error", err.Error()))
respondWithError(w, language, http.StatusInternalServerError)
return
}
I stumble upon the following log in AWS:
{
"time": "2025-02-12T16:00:38.216300031Z",
"level": "ERROR",
"msg": "Could not create browser request",
"error": "403 Forbidden"
}
quick-addition-90714
02/12/2025, 4:06 PMdocker-compose
, so I would think this is okay?quick-addition-90714
02/12/2025, 4:09 PMquick-addition-90714
02/12/2025, 4:10 PMquick-addition-90714
02/12/2025, 4:11 PMmagnificent-energy-493
magnificent-energy-493
quick-addition-90714
02/12/2025, 4:19 PMquick-addition-90714
02/12/2025, 4:19 PMquick-addition-90714
02/12/2025, 4:20 PMquick-addition-90714
02/12/2025, 4:21 PMquick-addition-90714
02/12/2025, 4:22 PMmagnificent-energy-493
quick-addition-90714
02/12/2025, 5:17 PMsession:
lifespan: 24h
cookie:
domain: <http://stag.thommie.be|stag.thommie.be>
same_site: None
But it seems to ignore the domain and samesite settingsmagnificent-energy-493
SameSite=None
, the cookies must also have the Secure
flag set. Ensure that your configuration includes secure: true
session:
cookie:
domain: example.com
same_site: None
secure: true
let me know if that helpsquick-addition-90714
02/12/2025, 9:14 PM