Kyle Schutt
08/02/2024, 6:27 PMAnalyticalBackend
to authenticate users instead of the redirect context?Joseph Heun
08/02/2024, 7:08 PMKyle Schutt
08/02/2024, 7:46 PMredirectToTigerAuthentication
setup
4. This double-auth0 challenge is not ideal from a UX perspective
Solution:
1. When a user logs into our app, we send them to the GoodData login instead of Auth0. e.g https://dashboard.example.com/appLogin?redirectTo=https://app.example.com
2. This generates a oauth state and code with GD which then redirects to Auth0
3. On successful login via Auth0, it redirects first to GD to log us in (https://dashboard.example.com/login/oauth2/code/dashboard.example.com?code=X&state=Y)
4. Then it redirects to https://app.example.com
5. Since the auth0 login drops the auth0 cookies/session on the same domain (example.com) our NextJS application can pick those up and logs us inKyle Schutt
08/02/2024, 7:47 PMKyle Schutt
08/02/2024, 7:47 PMKyle Schutt
08/02/2024, 8:02 PMredirectTo
on logout or not?Kyle Schutt
08/02/2024, 8:42 PMJoseph Heun
08/05/2024, 12:34 PMbackend.deauthenticate("<https://example.com>");
, but you must be using SDK v10.6 (or higher)Kyle Schutt
08/05/2024, 3:03 PMKyle Schutt
08/05/2024, 3:05 PMreturnTo
URL paramKyle Schutt
08/05/2024, 3:06 PM<https://dashboard.example.com/logout?returnTo=https://app.example.com>
then it logs the user out but does not redirect them to https://app.example.comKyle Schutt
08/05/2024, 3:07 PMJoseph Heun
08/05/2024, 3:08 PMJoseph Heun
08/05/2024, 3:11 PMKyle Schutt
08/05/2024, 3:16 PM<https://auth.example.com/oidc/logout>
which includes a post_logout_redirect_uri
that is pointed at <http://dashboard.example.com|dashboard.example.com>
instead of the returnTo
specifiedKyle Schutt
08/05/2024, 3:16 PM<http://auth.example.com|auth.example.com>
is where we have Auth0 whitelabeledRadek Novacek
08/06/2024, 11:23 AMKyle Schutt
08/06/2024, 3:46 PMRadek Novacek
08/06/2024, 3:49 PMKyle Schutt
08/09/2024, 4:41 PMbackend.deauthenticate(currentUrl)
and I can see a call to
<https://dashboard.outburstdata.com/logout?returnTo=https://applocal.outburstdata.com/>
but the Location header returned from that call has the following URL param
post_logout_redirect_uri=<https://dashboard.outburstdata.com>
when i would expect it to be
post_logout_redirect_uri=<https://applocal.outburstdata.com>
Radek Novacek
08/20/2024, 11:52 AMRadek Novacek
08/27/2024, 3:35 PM