Integrate Azure AD into an iOS App
Azure AD provides the Active Directory Authentication Library, or ADAL, for iOS clients that need to access protected resources. ADAL’s sole purpose in life is to make it easy for your app to get access tokens. To demonstrate just how easy it is, here we’ll build a Objective C To-Do List application that:
- Gets access tokens for calling the Azure AD Graph API using the OAuth 2.0 authentication protocol.
- Searches a directory for users with a given alias.
To build the complete working application, you’ll need to:
- Register your application with Azure AD.
- Install & Configure ADAL.
- Use ADAL to get tokens from Azure AD.
To get started, download the app skeleton or download the completed sample. You'll also need an Azure AD tenant in which you can create users and register an application. If you don't already have a tenant, learn how to get one.