Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Authenticating to Azure AD with Self Signed Certificate using Xamarin Forms

Can anyone give me the background on how to Authenticate Azure AD in Xamarin Forms iOS & Android apps with azure self signed certificates.

I am trying to authenticate to azure AD without credentials,I have give a certificate for authentication but I have no clarity on the authentication part.

I saw this Guideline from Microsoft. But don't know how to implement the same in client side using Xamarin. Can anyone help me to get some solution for this issue.

I am new to Xamarin & Azure. So any help in the form of some links / Sample are highly appreciated. I searched for a solution in google. But ends up with total confusion.

like image 820
Nitha Paul Avatar asked Apr 19 '18 18:04

Nitha Paul


People also ask

How can I create a self-signed certificate using C #?

2 you can create self-signed certs using System. Security. Cryptography. X509Certificates.


1 Answers

As noted previously, confidential client flows should only be used in middle-tier applications, and devops. Confidential clients contain application secrets, so the industry recommends device apps should not use confidential client flows.

Public client applications typically run on devices or desktop machines. They are not trusted to safely keep application secrets, as they cannot hold configuration time secrets. Based on the information provided (creating a Xamarin iOS and Android app), you might want to look into public client application authentication.

Here is a sample app from ADAL that includes Xamarin iOS and Android. Here is a link to our wiki with more information on confidential client flows. Hope this helps!

like image 154
Jenny Avatar answered Sep 29 '22 17:09

Jenny