Password Grant

circle-exclamation

Overview

The password grant allows applications to exchange user credentials directly for tokens. This bypasses the normal authorization flow.

When to Use

Acceptable:

  • First-party mobile apps (owned by same company)

  • Migration from legacy systems

  • Trusted internal tools

Never use for:

  • Third-party applications

  • Public-facing apps

  • Any app you don't fully trust

Token Request

POST /token

Parameters

Parameter
Required
Description

grant_type

Yes

Must be password

username

Yes

User's username or email

password

Yes

User's password

scope

Optional

Requested scopes

Example

Response

Security Risks

  1. Credential exposure - App sees user's password

  2. No consent - User doesn't explicitly authorize scopes

  3. Phishing risk - Encourages entering passwords in apps

  4. MFA bypass - May skip multi-factor authentication

Configuration

To enable password grant (not recommended):

Migration Path

Replace password grant with proper OAuth flows:

Mobile Apps

Use Authorization Code + PKCE:

Web Applications

Use Authorization Code:

Next Steps

Last updated

Was this helpful?