4
votes

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.

2
did you get it working. I am looking for some configuration help as I am a newbie to this ADFS sort of thing. Can you please let me know about the configuration like how to add a native client to ADFS 3.0 Windows 2012 R2?Chitra Khatri

2 Answers

4
votes

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.

3
votes

ADFS is a very different beast to Azure AD.

ADFS 2.0 has no OAuth support. ADFS 3.0 has some OAuth support (No OpenID Connect, Web API only) and you have to use PowerShell.

Refer: Securing a Web API with ADFS on WS2012 R2 Got Even Easier for an example. (Not iOS though - not aware of any iOS example.).

ADFS 4.0 (Server 2016 in preview) has much better support.