Menu

Showing posts with label Active Directory. Show all posts
Showing posts with label Active Directory. Show all posts

14 Jun 2026

πŸ” What is Authentication in Web Applications? - Part 1

What is Authentication in Web Applications?

What is Authentication in Web Applications?

  • Welcome to the Authentication & Identity Security series.
  • This series is designed for Middleware, DevOps and Cloud Engineers.
  • Learn how authentication works in enterprise applications, APIs, cloud platforms, and Docker environments.
  • Includes real-world examples using LDAP, Active Directory, Azure Entra ID, WebSphere, and modern authentication technologies.


Introduction

Authentication is the first layer of security in any enterprise application. Before a user can access an application, API, cloud portal the system must verify the user's identity.

Whether you are managing IBM WebSphere, JBoss EAP, Apache Tomcat, Azure, Docker, or API Gateways, authentication is a critical component of enterprise security architecture.

Why is Authentication Important?
Authentication prevents unauthorized access to applications, APIs, cloud resources, and sensitive business data.

What is Authentication?

Authentication is the process of verifying the identity of a user, application, or system before granting access to resources.

Simply put:

Authentication answers the question:
"Who are you?"

Applications typically validate user credentials against:

  • LDAP
  • Microsoft Active Directory
  • Azure Entra ID
  • Database
  • Identity Providers

How Authentication Works

User
 │
 ▼
Login Page
 │
 ▼
Username & Password
 │
 ▼
Application Server
 │
 ▼
LDAP / AD / Azure Entra ID
 │
 ▼
Identity Verification
 │
 ▼
Session or Token Created
 │
 ▼
Access Granted

Once authentication is successful, the application creates a session or issues a token to establish trust between the user and the application.


Authentication vs Authorization

Authentication Authorization
Verifies identity Verifies permissions
Who are you? What can you access?
Occurs first Occurs after authentication
Login process Access control process

Enterprise Example

A user logs into the Azure Portal.

Authentication checks:

Is this user really Pradeep?

Authorization checks:

Can the user create Virtual Machines?
Can the user modify NSGs?
Can the user access Production Resources?

Enterprise Example: LDAP Authentication

Many traditional enterprise applications use LDAP or Active Directory for centralized authentication.

Architecture

User Browser
      │
      ▼
IBM HTTP Server / NGINX
      │
      ▼
WebSphere Application Server
      │
      ▼
LDAP / Active Directory

Authentication Flow

  1. User accesses the application.
  2. User enters username and password.
  3. WebSphere receives the login request.
  4. WebSphere sends credentials to LDAP.
  5. LDAP validates the credentials.
  6. WebSphere creates a session.
  7. Browser receives a JSESSIONID cookie.
  8. User gains access to the application.

Real-World Example

Application:
https://www.company.com

LDAP Server:
ldap://ldap.company.com:389

Successful Login Response:
Set-Cookie: JSESSIONID=ABC123XYZ789
Key Learning:
LDAP verifies whether the user exists and whether the supplied credentials are valid.

Enterprise Example: Azure Entra ID Authentication

Modern cloud-native applications use Azure Entra ID for centralized identity and access management.

Architecture

User
 │
 ▼
Web Application
 │
 ▼
Azure Entra ID
 │
 ▼
MFA Verification
 │
 ▼
JWT Token
 │
 ▼
Application Access

Authentication Flow

  1. User opens the application.
  2. Application redirects the user to Azure Entra ID.
  3. User enters credentials.
  4. Multi-Factor Authentication is completed.
  5. Azure Entra ID validates the identity.
  6. JWT token is issued.
  7. User is redirected back to the application.
  8. Application validates the token and grants access.

Benefits

  • Single Sign-On
  • Multi-Factor Authentication
  • Centralized Identity Management
  • Conditional Access Policies
  • Improved security posture

Traditional vs Modern Authentication

Traditional Authentication Modern Authentication
LDAP Azure Entra ID
Active Directory Identity Provider
Session-Based Token-Based
JSESSIONID JWT
Stateful Stateless
WebSphere / JBoss / Tomcat Cloud & Microservices
On-Premises Hybrid & Cloud

Why Authentication Matters

Authentication protects critical enterprise systems and reduces the risk of unauthorized access.

  • Enterprise applications
  • APIs
  • Customer data
  • Cloud resources
  • Docker
  • Administrative portals

Common authentication-related issues handled by Middleware and DevOps teams include:

  • LDAP connectivity failures
  • Active Directory integration issues
  • Login failures
  • Session timeout problems
  • SSO redirection loops
  • Expired JWT tokens
  • OAuth2 configuration issues
  • Azure Entra ID authentication failures
  • Load balancer session affinity issues

Key Takeaways

  • Authentication verifies identity before access is granted.
  • Authorization determines what an authenticated user can access.
  • Traditional enterprise applications commonly use LDAP, Active Directory, sessions, and cookies.
  • Modern applications use Azure Entra ID, JWT tokens, OAuth2, OIDC, and MFA.
  • Authentication is the first layer of security for applications, APIs, and cloud platforms.
  • Understanding authentication is essential for Middleware, DevOps, Cloud, and Security Engineers.

What’s Next?

Next Article:
Part 2 – Sessions, Cookies & JSESSIONID Explained

In the next article, we will understand how applications maintain user identity after successful authentication and how session management works in WebSphere, JBoss, Tomcat, and modern web applications.


Series: Authentication & Identity Security for Middleware, DevOps & Cloud Engineers
Author: Pradeep V
Blog: MiddlewareBox.com