# Success Login item missing from Logs after logging into application with redirect

**URL:** <https://community.auth0.com/t/success-login-item-missing-from-logs-after-logging-into-application-with-redirect/76088>\
**Category:** Get Help\
**Tags:** log\
**Created:** [January 10, 2022, 12:22pm UTC](https://community.auth0.com/t/success-login-item-missing-from-logs-after-logging-into-application-with-redirect/76088 "2022-01-10T12:22:31Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![joelp](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/joelp/32/33352_2.png) [@joelp](https://community.auth0.com/u/joelp)\
**Post date:** [January 10, 2022, 12:22pm UTC](https://community.auth0.com/t/success-login-item-missing-from-logs-after-logging-into-application-with-redirect/76088/1 "2022-01-10T12:22:31Z")

</div>

Hi, I’ve created a custom action that runs as part of the Login flow and as part of the `onExecutePostLogin`, I’m forming a custom URL and calling `api.redirect.sendUserTo`. The login experience works as I expect but I’m not seeing a “Success Login” log entry like I do with the Logout/Signup for this same Application, or Logins for another one of my Applications.

The redirect points to an endpoint that I don’t own and so is a bit of a black box in that I can’t send users back to the Auth0 `/continue` endpoint and so don’t handle `onContinuePostLogin`.

Should I be concerned about this seeing as I don’t require additional user interaction beyond the standard login form?

Thanks!

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [January 11, 2022, 2:11pm UTC](https://community.auth0.com/t/success-login-item-missing-from-logs-after-logging-into-application-with-redirect/76088/3 "2022-01-11T14:11:47Z")

</div>

Hi @joelp,

Welcome to the Auth0 Community!

The user must continue the flow to complete a successful login. Redirect actions are meant to redirect _and return_ to the actions flow.

> **[Redirect with Actions](https://auth0.com/docs/customize/actions/flows-and-triggers/login-flow/redirect-with-actions)**
>
> Learn how to use post-login Actions to redirect users before an authentication transaction is complete.

If you simply need to redirect after the login is complete, you should use a different strategy. i.e.

[https://auth0.com/docs/authenticate/login/redirect-users-after-login](https://auth0.com/docs/authenticate/login/redirect-users-after-login)

---

<div class="post-metadata">

**Author:** ![joelp](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/joelp/32/33352_2.png) [@joelp](https://community.auth0.com/u/joelp)\
**Post date:** [January 12, 2022, 11:11am UTC](https://community.auth0.com/t/success-login-item-missing-from-logs-after-logging-into-application-with-redirect/76088/4 "2022-01-12T11:11:58Z")

</div>

Hi @dan.woda, thanks for the reply. I’m new to this and slightly drowning in some of the concepts and complexity so any help is very much appreciated!

I was originally using a Rule as part of the login flow setting `context.redirect` to my Url and then returning the callback function with the `context` as an argument. This worked well but my understanding is Actions are preferable to Rules going forward so I rewrote my Rule as an Action. I guess my Rule was also resulting in an incomplete login process.

For background, I’m trying to implement Shopify’s Multipass login and [as per the docs](https://shopify.dev/api/multipass#6-redirect-your-customer-to-your-shopify-store), I need to redirect users to `https://SHOPIFY_DOMAIN/account/login/TOKEN` (where TOKEN is what I’m successfully generating in my Action) after Auth0 authentication has taken place.

Weirdly the result of both the Rule and the Action achieve what I’m hoping for in that I’m logged into my application (app A), the redirect takes place and the authentication session is shared across both app A and another application, app B. Logout also works as expected. My assumption is that despite this, the issue must be addressed as without returning to the `/continue` endpoint, no further Actions in the Flow will run.

I also noticed the same technique I’m using is used for [the downtime page example here](https://auth0.com/blog/quick-tips-tricks-auth0-actions/), but I assume returning the user to `/continue` is just omitted for brevity?

Thanks again for any help.

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [January 12, 2022, 2:42pm UTC](https://community.auth0.com/t/success-login-item-missing-from-logs-after-logging-into-application-with-redirect/76088/5 "2022-01-12T14:42:57Z")

</div>

> [@joelp](#):
>
> I also noticed the same technique I’m using is used for [the downtime page example here](https://auth0.com/blog/quick-tips-tricks-auth0-actions/?_ga=2.6036016.241596594.1641823754-1261373470.1602622721&_gl=1*mesfnl*rollup_ga*MTI2MTM3MzQ3MC4xNjAyNjIyNzIx*rollup_ga_F1G3E656YZ*MTY0MTk5NjM5Ny41MTEuMS4xNjQxOTk3OTg3LjU0), but I assume returning the user to `/continue` is just omitted for brevity?

It appears this example is not logging the user in but is redirecting them to a generic outage page _without authentication_.

The important point is that an Access Token/ID Token will not be issued if Actions aren’t completed.

I’m not previously familiar with multipass, but it appears you should be sending your users there from your application, not from Actions/Rules. Are you following a guide that is telling you to do this?

---

<div class="post-metadata">

**Author:** ![joelp](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/joelp/32/33352_2.png) [@joelp](https://community.auth0.com/u/joelp)\
**Post date:** [January 12, 2022, 4:53pm UTC](https://community.auth0.com/t/success-login-item-missing-from-logs-after-logging-into-application-with-redirect/76088/6 "2022-01-12T16:53:25Z")

</div>

Thanks for the reply Dan.

I’m following [this technique](https://rovani.net/posts/2019/authenticate-shopify-customers-with-auth0). I originally created a Rule very similar to the one in the article (which was working well, but only on the face of it!) and have now migrated my Rule to an Action instead.

And that downtime example seems to imply to me that the redirect happens as part of a successful login flow?

> It uses the `api.redirect.sendUserTo()` method to redirect the user to the given URL after they log in. Keep in mind that users will see the downtime page only after logging in successfully.

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [January 13, 2022, 3:09pm UTC](https://community.auth0.com/t/success-login-item-missing-from-logs-after-logging-into-application-with-redirect/76088/7 "2022-01-13T15:09:41Z")

</div>

> [@joelp](#):
>
> I’m following [this technique](https://rovani.net/posts/2019/authenticate-shopify-customers-with-auth0).

In this example, the user never finishes the authentication pipeline and the application is never issued a token from the auth server…

> [@joelp](#):
>
> It uses the `api.redirect.sendUserTo()` method to redirect the user to the given URL after they log in. Keep in mind that users will see the downtime page only after logging in successfully.

I can see how this is misleading. The user’s credentials are verified, but similarly does not complete the entire pipeline, and is never issued a token. Saying the user is logged in is somewhat of a semantic issue but should be revisited. I’ll notify the author.

As for what you should do, it seems to me that you should be completing the transaction with Auth0. After which your application will be issued a set of tokens, and your application should handle the token creation and request to shopify. Does that make sense?

---

<div class="post-metadata">

**Author:** ![joelp](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/joelp/32/33352_2.png) [@joelp](https://community.auth0.com/u/joelp)\
**Post date:** [January 14, 2022, 11:07am UTC](https://community.auth0.com/t/success-login-item-missing-from-logs-after-logging-into-application-with-redirect/76088/8 "2022-01-14T11:07:52Z")

</div>

I think I understand now and see what the “correct” method should be. Roughly:

- Generate the Multipass token value and add it to the ID token as a custom claim in my Action
- Allow the callback to the authorized `redirect_uri` as normal
- Decode the ID token and extract the Multipass token value as an intermediary step on my side
- Redirect to the Shopify Url that includes the Multipass token

Hopefully that achieves the same effect but allows the login transaction to actually complete!

Thanks again your help with this.

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [January 14, 2022, 5:18pm UTC](https://community.auth0.com/t/success-login-item-missing-from-logs-after-logging-into-application-with-redirect/76088/9 "2022-01-14T17:18:58Z")

</div>

@joelp,

I think that should work! I can’t speak directly to the Shopify end of the flow, but that would appear to achieve what you are after.

P.S. I spoke to the author of our blog and they are going to clarify that redirect must be completed to finish the transaction.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [January 29, 2022, 5:19pm UTC](https://community.auth0.com/t/success-login-item-missing-from-logs-after-logging-into-application-with-redirect/76088/10 "2022-01-29T17:19:21Z")

</div>

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.
