Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ADFS (3.0) integration with iPad app to achieve SSO implementation

I am using ADAL SDK(https://github.com/AzureAD/azure-activedirectory-library-for-objc) for integration my iOS app with ADFS for SSO implementation. I run demo code provide with above link.

As per as demo it's asking for following components to SOS implementation :-

  1. clientId
  2. Redirect URI
  3. ResourceId
  4. Authority Path

According to ADAL SDK ,I need to register my app to ADFS as per as this tutorial (https://blog.kloud.com.au/2014/12/02/implementing-azure-active-directory-sso-single-sign-on-in-xamarin-ios-apps/). But i am not able to figured out how will register my app to ADFS.

I also tried to figure out with this link (loggin into an iOS app using a system with ADFS).

So the following question:-

  1. Am i on right page?
  2. If Yes, how to register and configure my app with ADFS
  3. if No, please help to figure out this

Any help much appreciated.

like image 828
Chandan kumar Avatar asked Mar 13 '23 08:03

Chandan kumar


1 Answers

After R&D, I am able to figure out how to get all points With ADFS.

  1. Client Id :- it's a GUID.You can generate Online as well as , Generate GUID(http://www.guidgen.com/)

  2. Redirect URI :- it's something related with Bundle Identifier(com.compName.MyTestApp), So after adding urn, Redirect URI is looking like this. Ex. @"urn:com.compName.MyTestApp".

  3. ResourceId :- it's same as redirect uri in my case.

  4. Authority Path :- it's ADFS login path url basically to authenticate with ADFS and get Access token. EX @"https.//myServer.com/adfs";

Note :- Please change URL Types as per as you bundle identifier in Info.plist file.

Some Link which helped me :-

https://msdn.microsoft.com/en-us/library/dn531010.aspx

SSO from ADAL in WPF Client to ADFS 3.0 on Windows Server 2012 R2

Hope it will help.

like image 151
Chandan kumar Avatar answered Mar 15 '23 23:03

Chandan kumar