
Authenticate web and API apps with Azure Active Directory using a token-based flow. Configure app registrations, scopes, and admin consent to issue tokens and call the API securely.
Adjust video clarity by using the settings to fix blur, check resolution, and improve quality; also control playback speed from the default 1x to your preferred rate.
Set up your development environment by creating a free Azure account and using the 12-month free tier and $200 credit, with pay-as-you-go options for learning.
Add a new user in Azure Active Directory, selecting internal or guest users, entering username and names, choosing a password option, and deciding on group and job info.
Test login with a new user in Azure Active Directory by opening an incognito window, entering the username and password, upgrading the password, and signing in successfully.
Invite a guest user to an Azure Active Directory protected project by entering an email, sending an invitation, and guiding acceptance to grant access to applications.
Create a new api project in Visual Studio, configure identity platform authentication, and apply authorization attributes while adjusting app settings and testing a forecast controller response.
Register the api in the azure portal, create a new single-tenant registration, configure web authentication with access tokens, and expose the api scope for admin consent.
Explore running the api project with Azure Active Directory authentication, configuring authority and audience, domain name settings, startup use of authentication, and ensuring authorized access to controller methods.
Register the client application in the portal, configure account type and redirect, assign api permissions and scope, grant admin consent, and expose the api to authorized clients.
Configure Postman to obtain a token from Azure Active Directory, then use it to call the API, validating authentication via authorization endpoints, scopes, and a browser-based flow.
Create a new client project in Visual Studio using the NBC template, enable Google Identity Platform authentication, adjust Startup and HomeController authorization, then run the app to verify.
Configure Azure AD authentication by updating the web app settings in the Azure portal, add and validate the domain, and expose the API for seamless integration.
Install compatible Microsoft Identity Web packages from dependencies and select Identity Web that matches 2.1. Update startup.cs with the Identity Web configuration and save changes.
Learn to build a token service for secure API access with Azure Active Directory, implement the interface, and manage token acquisition and scope.
Acquire an access token asynchronously, apply the user token acquisition and scope to call the API, and attach the token to the default request header for authorization.
Add the get implementation by obtaining a token, calling the api, checking for a 200 ok response, parsing the json content, visualizing it, and handling errors before building the solution.
Remove an unnecessary method in the home controller, initialize a token service in the constructor, call get via the token service, and return the populated list to the view.
Troubleshoot authentication with Azure Active Directory by adding the client secret, validating redirect URLs, and obtaining an access token to call the API successfully.
Explore how to use GitHub for your API and web project authentication with Azure Active Directory, including accessing the repository, downloading code, and reviewing linked resources.
In this course I'll show how we can authenticate API and Web project using the Azure Active Directory.
I have used Single Tenant Authentication however the concepts remain same for the Multi Tenant Authentication.
I have also mentioned in this project that how we can access the API using Postman.
What is Single Tenant & Multi Tenant ?
Single-tenant apps are only available in the tenant they were registered in, also known as their home tenant.
Multi-tenant apps are available to users in both their home tenant and other tenants.
Pre-Requisites:
Visual Studio 2019
Azure Subscription - Even the disabled account also you can use as it allows you to use the Azure Active Directory for 12 months for free.
Benefit of Single Tenant Authentication
- Programming model is simpler
- App management is easier.
-No extra effort to block external user access.
-Service principal provisioning is not required.
-Works great for small number of users
Features Work in Azure AD
Application Management
Authentication
- B2B authentication -Manage your guest users and external partners, while maintaining control over your own corporate data
-B2C authentication -Customize and control how users sign up, sign in, and manage their profiles when using your apps
Conditional access
Domain Services
Hybrid Identity
Identity Governance
Identity Protection
Managed identities for Azure resources
Privileged identity management (PIM)
Reports and monitoring