Justin Unverricht
11/11/2021, 10:45 PMtigerFactory().onHostname(<my_host_name>).withAuthentication(new ContextDeferredAuthProvider(redirectToTigerAuthentication));
when I open up my app I am redirected to the the gooddata login page where I type in my username and password. I then get redirected back to my application where I get a No Session error inside my DashboardView component and then get caught in a endless redirect to my application.
Is there something that I am not doing correctly on my front end or is it possible that the GDCN server is not set up correctly?Jiri Zajic
11/12/2021, 2:23 AMyarn build
vs yarn build-with-explicit-hostname
.
• See src/contexts/Auth/backend.js
to understand what the env REACT_APP_SET_HOSTNAME
does.
• If you think that the 2nd and other redirects are redundant, go into src/routes/AppRouter.js
and remove <RedirectIfNotLoggedIn />
and try it without it.Jiri Zajic
11/12/2021, 2:24 AMJustin Unverricht
11/12/2021, 6:07 PMJustin Unverricht
11/12/2021, 6:24 PMError: No session or session expired
at NotAuthenticated.AnalyticalBackendError [as constructor] (index.js:43)
at new NotAuthenticated (index.js:213)
at createNotAuthenticatedError (errorHandling.js:33)
at Object.convertApiError (errorHandling.js:15)
at ContextDeferredAuthProvider.<anonymous> (auth.js:155)
at step (tslib.es6.js:216)
at Object.throw (tslib.es6.js:146)
at rejected (tslib.es6.js:109) 'we ded'
Jiri Zajic
11/12/2021, 7:31 PMbuild-with-explicit-hostname
, REACT_APP_SET_HOSTNAME
, etc.
I would personally start with create-gooddata-react-app for GD.CN, I would connect it to the correct domain and the correct workspace, render a simplest possible insight (just <Headline /> with one measure), and then I'd deploy this to see if it works.
Once I'd have a working create-gooddata-react-app project, I would then compare and replicate the exact same settings to your Rails app.Jiri Zajic
11/12/2021, 7:32 PMJustin Unverricht
11/17/2021, 7:33 PMJiri Zajic
11/17/2021, 8:51 PM