Category Archives: SharePoint

Azure AD and Office 365 APIs – Creating an Azure AD App with a Wizard & Manually

efore you even get started coding against the Office 365 APIs, you need to get an OAuth2 access token that is trusted by Office 365. Microsoft has setup Azure AD as the trust and token issuer for Office 365 which is a great solution because you can use it to store your users or you can configure it to federate logins with your on-premises Active Directory or third party authentication system.

In order to obtain the access token you have to create an application in Azure AD that has been given the necessary permissions to access resources in Office 365 like reading your calendar or writing to your contacts. Once you do that, when a user successfully authenticates against Azure AD, before retrieving an access token, if they haven’t already done so Azure AD will prompt them to grant consent to the application to do the things that the developer configured in the app such as reading your calendar and singing you in:

![http://assets.andrewconnell.com/media/Default/Misc/AzureAdAuth02.png]

So how do you create this Azure AD app? There are two ways at the present time. You can use the Add Connected Service dialog in Visual Studio 2013 to do this or you can create it manually form the Azure Management Portal.

At present the Azure Preview Portal does not give you the ability to create and manage Azure AD apps so you have to use the full portal for now.

So let’s get started. You can read through the next two posts in order, or just jump to the one that interests you:


Source: Sharepoint