Authinticate Azure api app using facebook, gmail, twitter and microsoft - asp.net

I have an azure api app, i want to use facebook, twitter, google and microsoftaccount for authentication, what i have seen all points to AAD. I have setup all the configuration in the portal because of the nice documentation. Now im struggling to implement it in my webclient and xamarin forms. I have been searching all day long.. Can someone point out to an example. thanks.

If I were starting such an app today, I'd definitely consider Azure AD B2C - the documentation page has a number of tutorials.
Azure Active Directory B2C
In lieu of that,or ASP.NET MVC have you seen:
Code! MVC 5 App with Facebook, Twitter, LinkedIn and Google OAuth2 Sign-on (C#)
For ASP.NET Core:
Enabling authentication using Facebook, Google and other external providers
For Xamarin Auth:
https://components.xamarin.com/gettingstarted/xamarin.auth

Related

Add Authenticator for Xamarin Forms

Is there a way to achieve SSO in Xamarin forms app. I have done some basic research and have zeroed down on 2 approaches for Authenticating my enterprise apps.
1.) Use microsoft company portal intune. For this I would be creating a new sample app, registering it in Azure AD, configure InTunes in Azure, installing Microsoft Authenticator,use InTune nuget packages for Xamarin forms side of code.
For this do we have any steps on how to achieve the same or some head way, regarding app registration and configuration in InTune, configuration of new URI for app, code changes at App end, in order to invoke Authenticator, code snippets for Xamarin Forms and not for Native apps.
2.) Leverage Service Broker. I had found this link, which expands on the same, but could not get any ADAL DLL's to achieve the same.
So do we have any concrete or recommended approaches in achieving SSO with microsoft authenticators for Xamarin Forms Apps, would be glad to know more.
Thanks In Advance!!!..

Azure mobile app backend / Azure AD B2C and aspnet core web client

I have a xamarin forms app using azure mobile app backend integrating with ADD B2C.
Following this guide: link
Authenticating B2C first and login Azure Mobile App after using previous token. Everything OK!!
Now i want to have a aspnet core web client sharing backend and authentication process.
Standard aspnet core template, works very well with B2C. So i need to login in Azure mobile app to have same userid on web and mobile app.
I know there is Azure mobile app js SDK, buy i need some sample to integrate in aspnet core template and B2c.
Thanks
Just make sure you use the same Client ID and client secret across both, and they will both use the same backend authentication. https://learn.microsoft.com/en-us/dotnet/standard/microservices-architecture/secure-net-microservices-web-applications/

Integrating Okta with Windows ACS

We implement a web application and host in Azure. Then we want to use the SSO feature which is supported by Microsoft Azure ACS. The Condition to view our Website is that users just need to provide the email address throughout login to IdP. When we implement and configure Web application, we do follow all the instructions on the website as below
http://blog.2mas.xyz/configuring-windows-azure-active-directory-access-control/
For now, we can configure and use Window LiveID, Azure AD to login into our Website.
We have a further requirement that our site should support to login SSO from custom IdP which supports SAML 2.0 such as Okta.
Our current issues: When import the SAML 2.0 XML file to ACS, it does not understand this XML file
Please give us some suggestion to use Azure ACS and okta in this situation?
You might find the following helpful: https://www.okta.com/identity-101/integrating-sso-for-azure-ad

Google+ authentication with asp.net identity 2.0.0

I want to implement the asp.net identity 2.0 with a project that I'm working with. This identity system enables logging in with third party login providers such as Facebook, Twitter, Google etc... However it seems that Google has closed registration to new OpenID 2.0 clients as of May 19, 2014. It's an attempt to force developers to use the new Google+ authentication system.
Any idea if the asp.net identity 2.0 system has been upgraded to use the new Google+ authentication system? Any tips would be appreciated.....
Thank you in advance
Follow the article here on how you could update your app and the Google middleware for the new changes made for Google OAuth.
http://blogs.msdn.com/b/webdev/archive/2014/07/02/changes-to-google-oauth-2-0-and-updates-in-google-middleware-for-3-0-0-rc-release.aspx
This is directly related to the Google middleware and does not affect Identity per say.

Options for OAUTH2 in ASP.NET Web API 2 hosted on windows Azure

Good evening, I want to create a RESTful API with ASP.NET Web API 2 and host it in Windows Azure. For this API I will need to have registered users and I want them to register via Facebook or Twitter. The question is, which would be the easiest way to have OAUTH2 integrated with the API in Azure? I saw that it has the ASP.NET Identity integrated with it but I don't know how nicely it works in azure, are there any other options?
Thanks in advance!
Your best bet is to leverage Access Control Services (ACS) and OAuth2. This article has a great description of how to set it up: http://www.developerfusion.com/article/147914/protecting-your-aspnet-web-api-using-oauth2-and-the-windows-azure-access-control-service/

Resources