# One login app for multiple applications

**URL:** <https://community.auth0.com/t/one-login-app-for-multiple-applications/100069>\
**Category:** Get Help\
**Tags:** application, sso\
**Created:** [February 9, 2023, 10:39am UTC](https://community.auth0.com/t/one-login-app-for-multiple-applications/100069 "2023-02-09T10:39:46Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![imad](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/imad/32/34807_2.png) [@imad](https://community.auth0.com/u/imad)\
**Post date:** [February 9, 2023, 10:39am UTC](https://community.auth0.com/t/one-login-app-for-multiple-applications/100069/1 "2023-02-09T10:39:46Z")

</div>

Hi,

I would like to setup a login app that allows the user to login and redirect to other applications.  
The login app is a centralized login uses Auth0. Once logged in, the user will have the ability to

1. Update their user profile
2. Chose a url from a list of applications to redirect to.
3. All applications are on the same domain

If the user tries to go the application directly and they’re unauthenticated, they should be redirected back to the login app.

Any direction in how to do that?

Thanks…

---

<div class="post-metadata">

**Author:** ![nathan.jenkins](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/nathan.jenkins/32/44577_2.png) [@nathan.jenkins](https://community.auth0.com/u/nathan.jenkins)\
**Post date:** [February 12, 2023, 7:25pm UTC](https://community.auth0.com/t/one-login-app-for-multiple-applications/100069/3 "2023-02-12T19:25:04Z")

</div>

Hi @imad,

You could take a look at setting a single Allowed Callback URL for all applications, once the user is authenticated, they will be redirected back to the Callback URL so this could be your login app.  
I recommend taking a look at our [Quick Starts](https://auth0.com/docs/quickstarts) to see how / where to configure the Callback URL for your specific application.

Kind Regards,  
Nathan

---

<div class="post-metadata">

**Author:** ![imad](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/imad/32/34807_2.png) [@imad](https://community.auth0.com/u/imad)\
**Post date:** [February 16, 2023, 2:16pm UTC](https://community.auth0.com/t/one-login-app-for-multiple-applications/100069/4 "2023-02-16T14:16:18Z")

</div>

Hi Nathan,

thanks for your response. So the “Allowed Callback” config for each application in Auth0 will be the login app callback url?

Thanks,  
I.

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [February 17, 2023, 6:07pm UTC](https://community.auth0.com/t/one-login-app-for-multiple-applications/100069/5 "2023-02-17T18:07:08Z")

</div>

Hi @imad,

> [@imad](#):
>
> So the “Allowed Callback” config for each application in Auth0 will be the login app callback url?

Yes, that is correct. This way all of your applications will return the user to the same Callback URL.

I hope that helps!

Thanks,  
Rueben

---

<div class="post-metadata">

**Author:** ![imad](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/imad/32/34807_2.png) [@imad](https://community.auth0.com/u/imad)\
**Post date:** [February 22, 2023, 9:28pm UTC](https://community.auth0.com/t/one-login-app-for-multiple-applications/100069/6 "2023-02-22T21:28:34Z")

</div>

Thanks Rueben,

when I configure the “Allowed Callback” url of the other calling application (basically pointing to the login callback url), I got the following error:

Callback URL mismatch.  
The provided redirect\_uri is not in the list of allowed callback URLs.

Am I missing a configuration?

Thanks,  
Imad

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [February 22, 2023, 11:00pm UTC](https://community.auth0.com/t/one-login-app-for-multiple-applications/100069/7 "2023-02-22T23:00:54Z")

</div>

Hi @imad,

Thank you for your response.

> [@imad](#):
>
> Am I missing a configuration?

I suspect a misconfiguration with the `redirect_uri` of the login request or the list of Allowed Callback URLs.

Note that the error page should give you a small button to click **See details for this error**.

 ![image](https://global.discourse-cdn.com/auth0/original/3X/b/5/b51cdf3b0a795de5de3d406e8cf9628e715e52a0.jpeg)

On the error details, you should be advised about a Callback URL mismatch with a URL that is not in the list of allowed callback URLs.

In this case, you will have to make sure that your application is calling one of the Allowed Callback URLs for your app. If this is correct, then please make sure your login request’s `redirect_uri` points to your callback URL.

For example:  
Allowed Callback URL: [https://example-app.com](https://example-app.com)

Login request:

```auto
https://{yourDomain}/authorize?
    response_type=code&
    client_id={yourClientId}&
    redirect_uri=https://example-app.com&
    scope={scope}&
    state={state}

```

Thanks,  
Rueben

---

<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 8, 2023, 11:01pm UTC](https://community.auth0.com/t/one-login-app-for-multiple-applications/100069/8 "2023-03-08T23:01:40Z")

</div>

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