Hi, I’ve set up an Auth0 app in one tenant to use an OIDC enterprise connection to federate users from a different auth0 tenant.
When I attempt to login with my app I am successfully redirected to the login page setup on the federating tenant. I can then login on that page, which leads to a successful “Success Cross Origin Authentication” log on the federating tenant. However, when I am redirected back to the first app, I run into a:
“You may have pressed the back button, refreshed during login, opened too many login dialogs, or there is some issue with cookies, since we couldn’t find your session. Try logging in again from the application and if the problem persists please contact the administrator.”
error, which has a corresponding:
{
"date": "2024-10-15T23:19:47.633Z",
"type": "f",
"description": "You may have pressed the back button, refreshed during login, opened too many login dialogs, or there is some issue with cookies, since we couldn't find your session. Try logging in again from the application and if the problem persists please contact the administrator.",
"connection_id": "",
"ip": "163.116.147.40",
"user_agent": "Safari 18.0.1 / Mac OS X 10.15.7",
"details": {
"body": {},
"qs": {
"code": "jHALXxS1...",
"state": "hKFo2SBzaG..."
},
"error": {
"message": "You may have pressed the back button, refreshed during login, opened too many login dialogs, or there is some issue with cookies, since we couldn't find your session. Try logging in again from the application and if the problem persists please contact the administrator.",
"oauthError": "invalid_request",
"type": "request-error"
},
"session_id": "MapRb..."
},
"hostname": "services-dev.yonomi.cloud",
"$event_schema": {
"version": "1.0.0"
},
"log_id": "90020241015231947786474000000000000001223372058460575442",
"tenant_name": "ps-devs",
"_id": "90020241015231947786474000000000000001223372058460575442",
"isMobile": false,
"id": "90020241015231947786474000000000000001223372058460575442"
}
log. The "connection_id": ""
, part of that log makes me think that I need to do something to correctly populate the connection_id, but I’m not sure where. (It seems like my authorizationParams
are correctly set, otherwise I wouldn’t be sent to the federating tenant’s login page.) Also, I’ve seen other posts where people are running into the can’t find session error and need to set their login uri in their tenant/apps. I’ve tried setting the login uri in both the app configured to point to the enterprise connection and the app in the federating tenant and I still see that error.
Any help appreciated, thanks!