# Easy Authentication in Xamarin Apps with Auth0

**URL:** <https://community.auth0.com/t/easy-authentication-in-xamarin-apps-with-auth0/37364>\
**Category:** Blog Discussions\
**Tags:** dotnet, .net, xamarin\
**Created:** [February 4, 2020, 2:18pm UTC](https://community.auth0.com/t/easy-authentication-in-xamarin-apps-with-auth0/37364 "2020-02-04T14:18:13Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![bachi.degli-innocent](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/bachi.degli-innocent/32/16949_2.png) [@bachi.degli-innocent](https://community.auth0.com/u/bachi.degli-innocent)\
**Post date:** [February 4, 2020, 2:18pm UTC](https://community.auth0.com/t/easy-authentication-in-xamarin-apps-with-auth0/37364/1 "2020-02-04T14:18:13Z")

</div>

Learn how to add authentication to iOS and Android apps with Xamarin and Auth0.

Brought to you by @daniel.krzyczkowski

[Check it out](https://auth0.com/blog/easy-authentication-xamarin-auth0/)

 ![](https://global.discourse-cdn.com/auth0/original/3X/1/2/12f2b8425696404adb467deea538dd16ae06b3e0.jpeg)

---

<div class="post-metadata">

**Author:** ![James.Morrison](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/james.morrison/32/13507_2.png) [@James.Morrison](https://community.auth0.com/u/James.Morrison)\
**Post date:** [February 4, 2020, 4:21pm UTC](https://community.auth0.com/t/easy-authentication-in-xamarin-apps-with-auth0/37364/2 "2020-02-04T16:21:51Z")

</div>

Feel free to let us know if you have any questions!

---

<div class="post-metadata">

**Author:** ![daniel.krzyczkowski](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/daniel.krzyczkowski/32/18918_2.png) [@daniel.krzyczkowski](https://community.auth0.com/u/daniel.krzyczkowski)\
**Post date:** [February 4, 2020, 4:53pm UTC](https://community.auth0.com/t/easy-authentication-in-xamarin-apps-with-auth0/37364/3 "2020-02-04T16:53:58Z")

</div>

Thank you all for reading, what do you think about the integration steps of Auth0 library in the Xamarin apps? Let us know in the comments below!

---

<div class="post-metadata">

**Author:** ![petvetbr](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/petvetbr/32/19033_2.png) [@petvetbr](https://community.auth0.com/u/petvetbr)\
**Post date:** [February 7, 2020, 4:33pm UTC](https://community.auth0.com/t/easy-authentication-in-xamarin-apps-with-auth0/37364/4 "2020-02-07T16:33:45Z")

</div>

What about Xamarin Forms? About 2 years agor I worked for a client that used Auth0, but we used Xamarin Forms and it was quite painful to implement.

Xamarin.Android and Xamarin.iOS are fine, but almost all new projects that I start are on Forms.

---

<div class="post-metadata">

**Author:** ![andrea.chiarelli](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/andrea.chiarelli/32/16034_2.png) [@andrea.chiarelli](https://community.auth0.com/u/andrea.chiarelli)\
**Post date:** [February 14, 2020, 2:51pm UTC](https://community.auth0.com/t/easy-authentication-in-xamarin-apps-with-auth0/37364/5 "2020-02-14T14:51:00Z")

</div>

Hi @petvetbr, I’m not a Xamarin expert, but if you mean integrating Auth0 with native UI, it is not considered a best practice as far as I know. Check out [this article](https://auth0.com/blog/authentication-provider-best-practices-centralized-login/) for more info.

---

<div class="post-metadata">

**Author:** ![iKnowNothing](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/iknownothing/32/25151_2.png) [@iKnowNothing](https://community.auth0.com/u/iKnowNothing)\
**Post date:** [October 23, 2020, 8:16pm UTC](https://community.auth0.com/t/easy-authentication-in-xamarin-apps-with-auth0/37364/6 "2020-10-23T20:16:38Z")

</div>

This is great. Thanks for taking the time to do this. It works off the bat 🙂

I don’t suppose there’s a Xamarin.forms example where the flow is triggered from a view in the shared project and handled in the appropriate native project as per your example?

It’s rare that I would develop an application solely in either mobile architecture (android/ios) especially when using Xamarin. Most Xamarin devs i know use xamarin.forms where the ui is shared. Such an implementation example would be a massive help.

Thanks again.

---

<div class="post-metadata">

**Author:** ![daniel.krzyczkowski](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/daniel.krzyczkowski/32/18918_2.png) [@daniel.krzyczkowski](https://community.auth0.com/u/daniel.krzyczkowski)\
**Post date:** [October 29, 2020, 6:43pm UTC](https://community.auth0.com/t/easy-authentication-in-xamarin-apps-with-auth0/37364/8 "2020-10-29T18:43:01Z")

</div>

Thank you for a kind words, I am happy that you found it interesting.  
With reference to your question. Please take a look at this article I wrote (also on Auth0 blog):  
[Developing Mobile Apps with Xamarin Forms and Azure Functions](https://auth0.com/blog/developing-mobile-apps-with-xamarin-forms-and-azure-functions/?_ga=2.151920761.1324754865.1603996399-1207397565.1603996399)  
In this article I used Auth0 library together with Xamarin Forms application to call Azure Function (secured by Auth0 too).  
Please let me know if it helped you once you check it. Fingers crossed!

---

<div class="post-metadata">

**Author:** ![daniel.krzyczkowski](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/daniel.krzyczkowski/32/18918_2.png) [@daniel.krzyczkowski](https://community.auth0.com/u/daniel.krzyczkowski)\
**Post date:** [October 29, 2020, 6:45pm UTC](https://community.auth0.com/t/easy-authentication-in-xamarin-apps-with-auth0/37364/9 "2020-10-29T18:45:11Z")

</div>

Thank you for the comment. Did you try to look at my another article below?  
I used Xamarin Forms together with Auth0 library and it worked without bigger issues.  
[Developing Mobile Apps with Xamarin Forms and Azure Functions](https://auth0.com/blog/developing-mobile-apps-with-xamarin-forms-and-azure-functions/?_ga=2.151920761.1324754865.1603996399-1207397565.1603996399)

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [October 30, 2020, 11:46am UTC](https://community.auth0.com/t/easy-authentication-in-xamarin-apps-with-auth0/37364/10 "2020-10-30T11:46:30Z")

</div>

Thanks @daniel.krzyczkowski for sharing all that!

---

<div class="post-metadata">

**Author:** ![iKnowNothing](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/iknownothing/32/25151_2.png) [@iKnowNothing](https://community.auth0.com/u/iKnowNothing)\
**Post date:** [November 3, 2020, 8:20pm UTC](https://community.auth0.com/t/easy-authentication-in-xamarin-apps-with-auth0/37364/11 "2020-11-03T20:20:48Z")

</div>

Thanks Daniel,

That helped. It wasn’t that difficult after all.

Cheers

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [November 4, 2020, 12:01pm UTC](https://community.auth0.com/t/easy-authentication-in-xamarin-apps-with-auth0/37364/12 "2020-11-04T12:01:56Z")

</div>

Teamwork makes the dreamwork!

---

<div class="post-metadata">

**Author:** ![daniel.krzyczkowski](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/daniel.krzyczkowski/32/18918_2.png) [@daniel.krzyczkowski](https://community.auth0.com/u/daniel.krzyczkowski)\
**Post date:** [March 19, 2021, 11:07am UTC](https://community.auth0.com/t/easy-authentication-in-xamarin-apps-with-auth0/37364/13 "2021-03-19T11:07:04Z")

</div>

Great to know, thank you!

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [May 1, 2021, 4:00pm UTC](https://community.auth0.com/t/easy-authentication-in-xamarin-apps-with-auth0/37364/14 "2021-05-01T16:00:54Z")

</div>

This topic was automatically closed after 43 days. New replies are no longer allowed.

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [March 7, 2022, 2:34pm UTC](https://community.auth0.com/t/easy-authentication-in-xamarin-apps-with-auth0/37364/15 "2022-03-07T14:34:22Z")

</div>


