Skip to main content

Azure Active Directory (Day 12 of 31)

List of all posts from this series: http://vunvulearadu.blogspot.ro/2014/11/azure-blog-post-marathon-is-ready-to.html

Short Description 
Azure Active Directory (Azure AD) is an identify management service offered by Microsoft over Azure. Can be used with success to identify and authenticate users in applications (that can be hosted on-premises on cloud).
This is a service that can be used by any company, from small one to large ones. Using Azure AD we can add single sign on functionality very easily.


Main Features 
Sign-sign on
Using Azure AD we can add and manage only one mechanism of authentication cross all our applications.
Users and Group management
We have the possibility to manage not only users and their rights, but also groups like in an on-premises AD.
Integration with on-premises Active Directory
Azure AD can be integrated very easily with on-premises version of AD. In this way we can sync both systems and manage only in one place our list of users and groups. The same auth. mechanism can be used for on-premises applications and cloud.
Default tenant
By default there is a default tenant in all Azure AD called “Default Directory”. By default the administrator of subscription will be administrators on this tenant.
Supported Protocols
The current version of Azure AD supports:

  • WS-Federation
  • SAML 2.0

Single sign-on endpoints
There are only one endpoint for each protocol that is used by all tenants to sign-on using Azure AD.
REST API
All configuration and management of Azure AD can be made over a RESTfull API.
Microsoft services
By default, there is a list of Microsoft services that are using Azure AD. On top of this we can extend it and add other service. The list of services that are using Azure AD by default is:

  • Azure
  • Office 365
  • Windows Intune   
  • Dynamic CRM Online

Types of application that can used Azure AD
Any kind of application can use Azure AD for authentication from web application to mobile one or even Daemon and embedded.
Tenants’ types
There are two types of tenants that can be used:

  • Single tenant – is used for application that are used for your own organization
  • Multi tenant – is used for applications that are used by users that are not only from your organization

Session (token) management
We have full control of the session. For example we have the possibility to specify the token expiration time. When the token expire, the user will need to sign on again.
Multi-factor authentication
There is full support for multi-factor authentication. This features is out-of-the-box. You need only to activate it and it will work without any kind of problems.
Cross Platform
Azure AD works with any platform and device. We are not limited to use it only on some specific devices.
Self-service password reset 
Users had the ability to manage their password by themselves (and even reset the password).
Company branding 
The Azure AD auth. pages can be use customer logos and UI. In this way we can have custom UI.
Advanced Security Reports 
Azure AD is capable to generate complex security report that can be used by our IT and security team for audit.
Alerts Usage Reports Enterprise scale SLA 
We can define custom alerts based on our usage reports.

Limitations 
No multi-factor authentication for technologies that use Direct Access 
If you are using Direct Access, then you will not be able to use multi-factor authentication.
Office 365 and Live Accounts are not the same
If you migrate from live account to Office 365 you will end up with two different email address, one for Office 365 and another one for live. You don’t have the possibility to merge them (yet).

Applicable Use Cases 
Below you can find 4 use cases when I would use Azure AD.
Migrate from on-premises to Azure
When you start to migrate your applications from on-premises to Azure, you don’t need to recreate your AD structure into cloud. You can connect your on-premises AD to Azure AD and synchronize it. In this way you will do AD management in the same way you did before.
Single Sign-on
For new application I would try to use single sign-on functionality. Users can be managed more easily and when you extend your application you will be able to give access to the same users to new application also.
Secure application
For application where security is very important Azure AD and Multi-Factor authentication it is a have to. This two features combined allow us to create application that are very secure and reliable.
Self-Service
For large companies, Azure AD can help them to delegate different task to different groups of users. In this way we can create different groups of users that have different management rights. In this the management of users can be made more easily.

Code Sample 
For a full code samples, related to all platform and features I recommend to you to check the fallowing GIT repository: http://msdn.microsoft.com/en-us/library/azure/dn646737.aspx
Using OWIN, we can do cool stuff on our web applications. Below you can see how simple the account controllers will be if you will use OWIN:
public class AccountController : Controller
    {
        public void SignIn()
        {
            // Send a WSFederation sign-in request.
            if (!Request.IsAuthenticated)
            {
                HttpContext.GetOwinContext().Authentication.Challenge(new AuthenticationProperties { RedirectUri = "/" }, WsFederationAuthenticationDefaults.AuthenticationType);
            }
        }
        public void SignOut()
        {
            // Send a WSFederation sign-out request.
            HttpContext.GetOwinContext().Authentication.SignOut(
                WsFederationAuthenticationDefaults.AuthenticationType, CookieAuthenticationDefaults.AuthenticationType);
        }
    }

Pros and Cons 
Pros

  • Easy to use
  • Integrated with on-premises AD
  • Multi-Factor Authentication
Cons
  • Management portal is not very intuitive


Pricing
There are 3 types of tiers that are offered in this moment (Free, Basic, and Premium). For the last two of them we don’t have kind of limitations related to number of users. When you are thinking to migrate or move to Azure AD you should take into account:

  • Number of users
  • Number of applications that will be used per user
  • Type of service agreement
  • Number of users that will use multi-factor authentication 


Conclusion
In conclusion we can say that Azure AD is a powerful service that is already part of Azure core. It is a service that is here to stay. Azure AD should be the first option when we are thinking about security and user management in cloud.

Comments

Popular posts from this blog

Windows Docker Containers can make WIN32 API calls, use COM and ASP.NET WebForms

After the last post , I received two interesting questions related to Docker and Windows. People were interested if we do Win32 API calls from a Docker container and if there is support for COM. WIN32 Support To test calls to WIN32 API, let’s try to populate SYSTEM_INFO class. [StructLayout(LayoutKind.Sequential)] public struct SYSTEM_INFO { public uint dwOemId; public uint dwPageSize; public uint lpMinimumApplicationAddress; public uint lpMaximumApplicationAddress; public uint dwActiveProcessorMask; public uint dwNumberOfProcessors; public uint dwProcessorType; public uint dwAllocationGranularity; public uint dwProcessorLevel; public uint dwProcessorRevision; } ... [DllImport("kernel32")] static extern void GetSystemInfo(ref SYSTEM_INFO pSI); ... SYSTEM_INFO pSI = new SYSTEM_INFO(

Azure AD and AWS Cognito side-by-side

In the last few weeks, I was involved in multiple opportunities on Microsoft Azure and Amazon, where we had to analyse AWS Cognito, Azure AD and other solutions that are available on the market. I decided to consolidate in one post all features and differences that I identified for both of them that we should need to take into account. Take into account that Azure AD is an identity and access management services well integrated with Microsoft stack. In comparison, AWS Cognito is just a user sign-up, sign-in and access control and nothing more. The focus is not on the main features, is more on small things that can make a difference when you want to decide where we want to store and manage our users.  This information might be useful in the future when we need to decide where we want to keep and manage our users.  Feature Azure AD (B2C, B2C) AWS Cognito Access token lifetime Default 1h – the value is configurable 1h – cannot be modified

What to do when you hit the throughput limits of Azure Storage (Blobs)

In this post we will talk about how we can detect when we hit a throughput limit of Azure Storage and what we can do in that moment. Context If we take a look on Scalability Targets of Azure Storage ( https://azure.microsoft.com/en-us/documentation/articles/storage-scalability-targets/ ) we will observe that the limits are prety high. But, based on our business logic we can end up at this limits. If you create a system that is hitted by a high number of device, you can hit easily the total number of requests rate that can be done on a Storage Account. This limits on Azure is 20.000 IOPS (entities or messages per second) where (and this is very important) the size of the request is 1KB. Normally, if you make a load tests where 20.000 clients will hit different blobs storages from the same Azure Storage Account, this limits can be reached. How we can detect this problem? From client, we can detect that this limits was reached based on the HTTP error code that is returned by HTTP