# Share auth between two web apps

**URL:** <https://community.auth0.com/t/share-auth-between-two-web-apps/131078>\
**Category:** Get Help\
**Tags:** apis, application\
**Created:** [April 3, 2024, 8:44am UTC](https://community.auth0.com/t/share-auth-between-two-web-apps/131078 "2024-04-03T08:44:25Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![christiannielsen](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@christiannielsen](https://community.auth0.com/u/christiannielsen)\
**Post date:** [April 3, 2024, 8:44am UTC](https://community.auth0.com/t/share-auth-between-two-web-apps/131078/1 "2024-04-03T08:44:25Z")

</div>

Hi, we’re trying to get azure and auth0 to work with each other. Our current setup is that we have a WCF service running on an azure web app and this service is being called by our website which is also running on a different azure web app. We have integrated auth0 on our website web app and that all works but we now want to also protect our WCF service, would it be possible to do this without any server side code?

We have tried to also add the same authentication to our WCF service but logging into our website and then making calls to it just returns a 401 since I’m guessing the user is technically not logged into the WCF by that point.

---

<div class="post-metadata">

**Author:** ![marcelina.barycka](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/marcelina.barycka/32/56162_2.png) [@marcelina.barycka](https://community.auth0.com/u/marcelina.barycka)\
**Post date:** [April 4, 2024, 11:31am UTC](https://community.auth0.com/t/share-auth-between-two-web-apps/131078/2 "2024-04-04T11:31:08Z")

</div>

Hey there @christiannielsen !

> [@christiannielsen](#):
>
> We have tried to also add the same authentication to our WCF service

After adding the same authentication to the WCF service, can you somehow log in there directly?  
Searching quickly, it looks like the WCF service is an endpoint storing XML/other format data without UI.

PS: Looking at WCF service documentation, there is a section on [protecting those endpoints](https://learn.microsoft.com/en-us/dotnet/framework/wcf/feature-details/service-identity-and-authentication) - did you have a chance to take a look?

---

<div class="post-metadata">

**Author:** ![christiannielsen](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@christiannielsen](https://community.auth0.com/u/christiannielsen)\
**Post date:** [April 4, 2024, 12:04pm UTC](https://community.auth0.com/t/share-auth-between-two-web-apps/131078/3 "2024-04-04T12:04:13Z")

</div>

Yes we use the WCF service as an API without a UI but when adding the auth0 to the WCF’s Azure web app, the callback redirects the user to login on auth0. We want the user to only login to our website which uses the same auth0 app and from there the website can call endpoints on our WCF service.

---

<div class="post-metadata">

**Author:** ![marcelina.barycka](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/marcelina.barycka/32/56162_2.png) [@marcelina.barycka](https://community.auth0.com/u/marcelina.barycka)\
**Post date:** [April 5, 2024, 2:30pm UTC](https://community.auth0.com/t/share-auth-between-two-web-apps/131078/5 "2024-04-05T14:30:50Z")

</div>

Hi @christiannielsen !

After further investigation to see what’s available on our side, I found a [repo](https://github.com/auth0/auth0-wcf-rest-sample) for integrating auth0 with WCF REST, but unfortunately, it’s deprecated.

Assuming you are looking for a solution that doesn’t require server-side coding, the above repo would not serve your needs either way.

---

<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:** [April 19, 2024, 2:31pm UTC](https://community.auth0.com/t/share-auth-between-two-web-apps/131078/6 "2024-04-19T14:31:45Z")

</div>

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