How We Log In: From LDAP to OAuth
Ever wonder what actually happens when you log into a website or app? Behind that simple “Sign In” button is a whole system working to…
How We Log In: From LDAP to OAuth
Ever wonder what actually happens when you log into a website or app? Behind that simple “Sign In” button is a whole system working to check who you are and whether you’re allowed in. Over the years, the way we handle this process — called authentication — has changed a lot. It started off pretty basic but had to grow smarter as the internet, cloud apps, and mobile devices took over. Let’s walk through how it all evolved in a way that’s easy to understand.
Back in the day, when everything was more locked down inside office networks, companies used something called LDAP. That stands for Lightweight Directory Access Protocol, but don’t worry about the name. All you need to know is that LDAP was like a big company phonebook for usernames and passwords. It worked great when everyone was using computers at the office and everything was running on the company’s own servers. You’d log into your work computer or shared folders using one password stored in that central system. It was simple, but definitely not made for the internet or apps on your phone.
As businesses started using more online tools — like Google Workspace, Salesforce, and all kinds of cloud software — they needed a way to let people log into different services without remembering a new password for each one. That’s when SAML came along. SAML (Security Assertion Markup Language) made it possible to sign in once and get access to multiple apps. This idea is called Single Sign-On, or SSO. Think of it like checking into a hotel and getting a key that opens your room, the gym, and the pool. It used XML (a data format that’s kind of old-school and clunky), and it mainly worked through your browser. It was a big improvement at the time, but not super handy for mobile apps or newer tech.
Then came the big shift: mobile apps, cloud platforms, and APIs started taking over. We needed a new way to handle login and permissions — something built for the internet age. That’s where OAuth 2.0 came in. OAuth is a system that lets apps ask, “Hey, can I access this person’s info?” without needing to know their password. And OpenID Connect (OIDC) builds on OAuth to actually confirm who the person is. So OAuth handles what you can do, and OIDC checks who you are.
Here’s the cool part: OAuth doesn’t rely on usernames and passwords the same way older systems did. Instead, it uses temporary codes called tokens. These tokens say things like “This person is logged in” or “This app can access their calendar for 1 hour.” If you’ve ever logged into a new app using your Google account, that’s OAuth in action. It works across websites, phone apps, desktop apps — you name it.
There are also different “flows” (which are just fancy ways of saying methods) depending on the situation. If it’s a mobile or web app, they usually use something called the Authorization Code Flow with PKCE — it’s extra secure and works without having to store sensitive stuff like passwords. If it’s two machines talking to each other (like services running in the background), there’s a different flow for that too.
Let’s say you have a website with a private page that only logged-in users should see. Using OAuth, you can set things up so that if someone tries to access that page without logging in, they get redirected to a secure login screen. After they log in, your app gets a token that proves who they are and lets them through. No password juggling, no long sessions — just clean, secure access.
In short, the way we manage logins and identity has changed a lot over time. We started with LDAP, which worked fine when everything was in one place. Then we moved to SAML for connecting different services with one login. Now, with OAuth and OpenID Connect, we’ve got a fast, flexible, and secure way to handle authentication across all the modern platforms — web, mobile, APIs, and beyond.
CaseStudy :

Amazon Cognito, which supports OAuth 2.0 and allows users to sign in through third-party providers like Google, Facebook, or enterprise identity systems. Once a user logs in, Cognito issues tokens (like access tokens and ID tokens) that prove their identity. These tokens can then be passed to services like API Gateway to control who can access certain APIs. For machine-to-machine communication, OAuth’s client credentials flow can also be used to authenticate backend services.
As technology continues to shift toward serverless architectures, edge computing, and AI-driven applications, identity and access management (IAM) is evolving right alongside it. We’re seeing a strong move toward passwordless authentication using biometrics, passkeys (FIDO2/WebAuthn), and device-bound credentials to improve both security and user experience.
Decentralized identity is also gaining traction, allowing users to control their own identity data using technologies like blockchain or verifiable credentials. At the same time, AI and machine learning are being used to detect suspicious behavior in real time, enabling adaptive and risk-based authentication — for example, requiring MFA only when a login looks unusual.
In microservices and API-heavy environments, zero trust architecture is becoming the norm. Here, identity is at the center of every decision: no one gets access by default, and every request must be verified and authorized, regardless of where it comes from.
So yes — the tools and methods are getting more advanced, but the goal remains unchanged: make sure the right people (or services) have access to the right things, at the right time, with the least amount of friction and the highest level of security.
메타데이터
- post_id
- b083ea99d98c
- slug
- how-we-log-in-from-ldap-to-oauth-b083ea99d98c
- url
- https://medium.com/@1120508chaitu/how-we-log-in-from-ldap-to-oauth-b083ea99d98c
- canonical_url
- https://medium.com/@1120508chaitu/how-we-log-in-from-ldap-to-oauth-b083ea99d98c
- author_url
- https://medium.com/@1120508chaitu
- status
- ok
- fetched_at
- 2026-07-20 04:15:56