In this quick guide, you will learn about what an active directory is, how you can create an instance on Azure’s Active Directory, and also how to configure it from Spring boot which means how we can access the instance by configuring the instance properties
What is Active Directory?
Why use Active Directory?
It is a cloud-based directory and identity management service which gives the following benefits:
Who should use Active Directory?
Active Directory helps in organizing the company’s data. The admin uses AD to organize the whole data and hierarchy from which it belongs on which network, to what profile picture looks like, or which users have access to the storage room. Hence its main purpose is to organize all data, authenticate and authorized, etc.
For example, any IT company can use it to store employee details with proper authentication and authorization to keep that account/data secured.
Architecture of Active Directory
This shows the Active Directory workflow.
Creating Azure Active Directory Instance
1. Create an account on https://portal.azure.com then create a resource/tenant, then Identity, and then Azure Active Directory.
2. Enter your organization name and your Initial domain name. Copy the full URL of your directory; you will use that to add user accounts later in this tutorial. (For example: azureADsampledirectory.onmicrosoft.com.) Copy the full URL of your directory; you will use that to add user accounts later. (For example: azureADsampledirectory.onmicrosoft.com.)
When you have finished, select Create. It will take a few minutes to create the new resource.
3. When complete, select to access the new directory.
4. Copy the Tenant ID; you will use that value to configure your application.properties file later.
5. From the portal menu, select App registrations and then select Register an application.
6. Specify your application, and then select Register. When the page for your app registration appears, copy your Application ID and the Tenant ID.
7. Now, Click Certificates & secrets in the left navigation pane. Then select New client secret.
Add a Description and select duration in the Expires list. Click Add. The value for the key will be automatically filled in.
8. Now go to API permissions in the left navigation pane. Click Microsoft Graph and tick Access the directory as the signed-in user and Sign in and read user profile. Click Grant Permissions… and Yes when prompted.
Click Grant admin consent for Azure Sample and select Yes.
9. After this, select Authentication and select Add a platform. Then select Web applications.
Enter an endpoint URL that can accept data from azure as a new Redirect URI/Callback Response, and then select Configure to configure it.
10. Now we need to add a user to Active Directory. From the Overview page of your Active Directory, select Users, and then select New user.
When the User panel is displayed, enter the User name and Name. Then select Create.
Also, create a group of users for authentication. For this, we can select the user which we have created and form groups. Go back to the Users panel, select your test user, and select Reset password and reset it which we will be needed at the time of login.
Configure Active Directory through the app
Also, we need to configure WebSecurityConfig for authentication. This is how we can get connected to AD using spring boot.
Active Directory Advantages and Disadvantages:
In this quick guide, we have learned about what an active directory is, how we can create an instance on Azure’s Active Directory, and also how we can configure it from Spring boot which means how we can access the instance by configuring the instance properties. Do check out our other blogs here.
Although many web apps have had success using the monolithic architectural approach, it comes with its limitations. Mainly its reliability, as a single bug in any module can bring the entire application down; another is that these applications are developed using a single stack which can limit the availability of “the right tool for the job.” This is where “microservices” come into the picture and this is where I’ve started learning it. But, to understand microservices, we need to understand containers. So, what exactly are containers? To understand that, we need to understand virtual machines and how containers differ from them. But let's take a deep dive into understanding what virtualization is as both VMs and containers are used for that purpose.
Augmented EHR System provides reports & dashboards for the healthcare providers to analyze the EHRs & provide meaningful data points to take corrective actions, attend to complaints, etc. thereby providing data to patients quickly & efficiently and also reducing the hassle of visiting & wait times at the doctor’s office
Survival Analysis is a relatively under-utilized set of statistical tools, which addresses questions such as ‘how long would it be before a particular event occurs’. Therefore, sometimes it is also said to be ‘time to event’ analysis.