aquamarine2620
09/20/2023, 11:51 AMidentity.<domain>.com
and our microservices at <microservice_name>.<domain>.com
When calling <microservice_name>.<domain>.com
it return a 401 because we can get the logged in user roles.
Also when inspecting the request going out of the browser, no supertokens headers or cookies are being sentrp_st
09/20/2023, 12:03 PMaquamarine2620
09/20/2023, 12:56 PMaquamarine2620
09/20/2023, 12:56 PMcom.supertokens {t: "2023-09-20T12:55:27.023Z", message: "doRequest: start of fetch interception", supertokens-website-ver: "17.0.2"}
com.supertokens {t: "2023-09-20T12:55:27.024Z", message: "shouldDoInterceptionBasedOnUrl: toCheckUrl: http://order.localhost:8081/save_shipping apiDomain: http://identity.localhost:8081 sessionTokenBackendDomain: undefined", supertokens-website-ver: "17.0.2"}
com.supertokens {t: "2023-09-20T12:55:27.024Z", message: "doRequest: Value of doNotDoInterception: true", supertokens-website-ver: "17.0.2"}
com.supertokens {t: "2023-09-20T12:55:27.024Z", message: "doRequest: Returning without interception", supertokens-website-ver: "17.0.2"}
rp_st
09/20/2023, 12:56 PMaquamarine2620
09/20/2023, 12:57 PMaquamarine2620
09/20/2023, 12:57 PMaquamarine2620
09/20/2023, 12:57 PMrp_st
09/20/2023, 12:57 PMaquamarine2620
09/20/2023, 12:59 PMaquamarine2620
09/27/2023, 12:42 PMaquamarine2620
09/27/2023, 12:42 PMaquamarine2620
09/27/2023, 12:43 PMaquamarine2620
09/27/2023, 12:44 PMaquamarine2620
09/27/2023, 12:45 PMrp_st
09/27/2023, 12:58 PM.gamingrent.local
and not gamingrent.local
. Make sure that you have correctly set the values. If you think you have, can you share the frontend and backend session.init?aquamarine2620
09/27/2023, 1:03 PMrecipeList: [
Session.init({
sessionTokenBackendDomain: ".gamingrent.com"
}),
EmailPassword.init(),
],
Backend of core (identity.gamingrent.com) :
recipeList: [
Session.init({
cookieDomain: `.${process.env.CLUSTER_HOST}`, // <= CLUSTER_HOST = gamingrent.com
getTokenTransferMethod: () => 'cookie',
Backend (order.gamingrent.com) :
recipeList: [
UserRoles.init(), // RBAC
Session.init({ cookieDomain: `.${process.env.CLUSTER_HOST ?? ''}` }), // Same
aquamarine2620
09/27/2023, 1:05 PMrp_st
09/27/2023, 1:11 PM.gamingrent.com
rp_st
09/27/2023, 1:11 PMgamingrent.com
aquamarine2620
09/27/2023, 1:11 PMrp_st
09/27/2023, 1:11 PMgamingrent.com
.aquamarine2620
09/27/2023, 1:11 PMrp_st
09/27/2023, 1:11 PM.
rp_st
09/27/2023, 1:12 PMrp_st
09/27/2023, 1:12 PMaquamarine2620
09/27/2023, 1:12 PMrp_st
09/27/2023, 1:13 PMaquamarine2620
09/27/2023, 1:13 PMaquamarine2620
09/27/2023, 1:13 PMrp_st
09/27/2023, 1:13 PMaquamarine2620
09/27/2023, 1:13 PMrp_st
09/27/2023, 1:14 PMaquamarine2620
09/27/2023, 1:14 PMaquamarine2620
09/27/2023, 1:14 PMaquamarine2620
09/27/2023, 1:14 PMrp_st
09/27/2023, 1:15 PMaquamarine2620
09/27/2023, 1:15 PMaquamarine2620
09/27/2023, 1:15 PMaquamarine2620
09/27/2023, 1:15 PMrp_st
09/27/2023, 1:15 PMrp_st
09/27/2023, 1:16 PMcredentials: include
headeraquamarine2620
09/27/2023, 1:16 PMrp_st
09/27/2023, 1:16 PMaquamarine2620
09/27/2023, 1:16 PMconst handleSubmit = () => {
fetch(`${process.env.REACT_APP_RENT_API_BASE_URL}/save_shipping`, {
method: 'POST'
})
.then(res => res.json())
}
rp_st
09/27/2023, 1:17 PMaquamarine2620
09/27/2023, 1:17 PMrp_st
09/27/2023, 1:19 PMaquamarine2620
09/27/2023, 1:19 PMaquamarine2620
09/27/2023, 1:19 PMrp_st
09/27/2023, 1:19 PMaquamarine2620
09/27/2023, 1:20 PMaquamarine2620
09/27/2023, 1:20 PMaquamarine2620
09/27/2023, 1:20 PMaquamarine2620
09/27/2023, 1:20 PMaquamarine2620
09/27/2023, 1:20 PMaquamarine2620
09/27/2023, 1:21 PMaquamarine2620
09/27/2023, 1:23 PMcookieSecure: true
in this init I guess ?rp_st
09/27/2023, 1:23 PMrp_st
09/27/2023, 1:23 PMrp_st
09/27/2023, 1:23 PMrp_st
09/27/2023, 1:24 PMaquamarine2620
09/27/2023, 1:27 PMaquamarine2620
09/27/2023, 1:27 PMcookieSecure: false
on the session initaquamarine2620
09/27/2023, 1:27 PMrp_st
09/27/2023, 1:27 PMrp_st
09/27/2023, 1:27 PMaquamarine2620
09/27/2023, 1:28 PMaquamarine2620
09/27/2023, 1:28 PM