# Validating users between 2 different idp

**URL:** <https://community.auth0.com/t/validating-users-between-2-different-idp/91074>\
**Category:** Get Help\
**Tags:** auth0-idp, azure-ad\
**Created:** [September 21, 2022, 9:04pm UTC](https://community.auth0.com/t/validating-users-between-2-different-idp/91074 "2022-09-21T21:04:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ymn](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ymn/32/36433_2.png) [@ymn](https://community.auth0.com/u/ymn)\
**Post date:** [September 21, 2022, 9:04pm UTC](https://community.auth0.com/t/validating-users-between-2-different-idp/91074/1 "2022-09-21T21:04:49Z")

</div>

So, we have our Application(App-A) using Auth0 for Authentication. We have a customer who owns a different application(App-B) which uses a custom IDP or maybe Azure AD. is there a way to integrate these applications in a way that

1. when a person is logged in and authenticated in the App-B, they have to be automatically authenticated to our App-A . Can I use some kind of an SSO token or any other method for this?

Thanks  
ym

---

<div class="post-metadata">

**Author:** ![remus.ivan](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/remus.ivan/32/68771_2.png) [@remus.ivan](https://community.auth0.com/u/remus.ivan)\
**Post date:** [February 28, 2025, 3:35pm UTC](https://community.auth0.com/t/validating-users-between-2-different-idp/91074/3 "2025-02-28T15:35:33Z")

</div>

Hi @ymn,

Welcome back to the Auth0 Community.

From my understanding of you use case the user has to already be authenticated to another app before being able to sign in to another application, so this can be accomplished by using a **redirect** after the initial login.

You can use `api.redirect.sendUserTo()` in a **Post-Login Action** to send the user to a page that implements a custom authentication method. You can use the `api.authentication.recordMethod()` in the `exports.onContinuePostLogin` handler to store a record of the completed method in the user’s session or manage sessions using the `event.user.app_metadata` object.

There are quite a few steps to be considered here, but you can follow the [Redirect with Actions](https://auth0.com/docs/customize/actions/explore-triggers/signup-and-login-triggers/login-trigger/redirect-with-actions) guidelines provided in our documentation, especially the **Custom authentication methods** section.

I hope this helps your case, but other as well.  
Thanks,  
Remus

---

<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:** [March 14, 2025, 3:35pm UTC](https://community.auth0.com/t/validating-users-between-2-different-idp/91074/4 "2025-03-14T15:35:54Z")

</div>

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