Password Grant is the OAuth 2.0 resource owner password credentials flow, where an application collects a user's username and password and exchanges them for tokens. It exposes credentials to the client and sidesteps interactive MFA. Current OAuth security guidance says it must not be used; migrate to authorization code flow with PKCE.
What the Password Grant Is and Why It Was Used
The password grant, also called the resource owner password credentials flow, was designed for a highly trusted application that could accept a user’s username and password directly and swap them for OAuth tokens. It removed the browser-based handoff step, but that convenience came with a major trust problem: the client itself had to see the user’s password.
That design made the flow attractive in early native-app and first-party scenarios, but modern OAuth guidance has moved away from it because the application becomes part of the credential collection surface. The cleaner mental model is simple: if the client can collect the password, it can also misuse, leak, or bypass the protections that should sit around authentication.
How It Fits Into OAuth 2.0
In OAuth 2.0, grant types define how an application gets tokens on behalf of a user or itself. The password grant is unusual because it collapses login and token issuance into one step inside the client application, rather than sending the user to an authorization server or identity provider for an interactive sign-in. That shortcut breaks the separation that OAuth normally tries to preserve.
For that reason, it is best understood as a legacy compatibility pattern rather than a recommended design. The modern substitute is the authorization code flow with PKCE, which keeps the password away from the client and preserves a more defensible browser-mediated authentication path. OAuth clients should be reviewed for this grant type during registration and migration planning, because the presence of password grant support is usually a sign of technical debt.
Security Implications and Failure Modes
The main security issue is exposure of primary credentials to the application. Once a username and password are typed into a client, the client can log, store, forward or otherwise mishandle them. That expands the attack surface, weakens phishing resistance and makes it much harder to enforce stronger controls such as multifactor authentication at the right point in the flow.
The flow also encourages credential reuse and broad trust in a client that may not deserve it. If the application or one of its dependencies is compromised, the attacker gets reusable secrets instead of a limited token exchange. For a broader view of OAuth hardening, the OAuth 2.0 Security Best Current Practice (RFC 9700) Guide explains why this grant is deprecated and how related weaknesses are addressed in current guidance.
Modern Replacement Patterns
The usual replacement is authorization code flow with PKCE, which is suitable for browsers, native apps and other interactive user journeys. Where product teams think they need password grant because they want a “simple login API,” the real design question is usually how to preserve user experience without moving the password into the client. That is why first-party app guidance, hosted login patterns and migration planning matter together.
In first-party scenarios, the right pattern depends on the application type and trust boundary. The OAuth for First-Party Apps guide is useful when the business wants a direct sign-in experience without reverting to password collection in the app, while the Embedded Login vs Hosted Login guide shows why hosted flows usually create a better security boundary than embedded credential capture.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
NIST SP 800-53 Rev 5, OWASP ASVS, NIST SP 800-63 and CIS Controls v8 set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| NIST SP 800-53 Rev 5 | IA-2 — Identification and Authentication (Organizational Users) | Password grant affects how users are authenticated to OAuth clients. |
| IA-5 — Authenticator Management | The grant exposes passwords, which are authenticators that must be protected across their lifecycle. | |
| Recommendation — Use IA-2 to keep user authentication outside the client and into a controlled sign-in flow. Apply IA-5 to prevent clients from collecting, storing or mishandling user passwords. | ||
| OWASP ASVS | V6 — Authentication | The term is an authentication flow choice with direct impact on login security and MFA handling. |
| Recommendation — Verify authentication flows that avoid password collection in the client and support stronger assurance. | ||
| NIST SP 800-63 | Digital Identity Guidelines | NIST identity guidance underpins phishing-resistant, browser-mediated authentication over password collection. |
| Recommendation — Adopt NIST 800-63-aligned sign-in patterns that avoid password grant where possible. | ||
| CIS Controls v8 | CIS-6 — Access Control Management | Retiring password grant is an access-control hardening decision for application sign-in paths. |
| Recommendation — Use CIS-6 to remove legacy sign-in paths that expose primary credentials. | ||
Practitioner Guidance
Why practitioners should care: Password grant support is rarely a neutral legacy feature, because it usually signals that a client can see user passwords and that modern authentication controls are being bypassed. Treat it as a migration item, not a convenience toggle.
Governance implication: Review OAuth client registration, application onboarding and exception handling so teams cannot quietly keep password grant enabled after a safer flow is available. The Legacy Authentication and ROPC Retirement Guide is the most direct operational companion for finding and retiring it.
What to watch for: If a product still needs username-and-password collection inside the app, that is usually a signal to redesign the sign-in journey around browser-based authorization, stronger client registration rules and modern token handling rather than preserving the old grant.
Related resources from NHI Mgmt Group
Deepen Your Knowledge
Free weekly newsletter
Subscribe to the NHI & AI Identity Journal
The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.
Bonus 33% off our NHI Course when you subscribe.
Reviewed and updated by the NHIMG editorial team on November 26, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org