You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

咨询:微软登录平台三类OAuth 2.0令牌生成端点的差异

Great question! Let's break down the key differences between these Microsoft identity platform token endpoints, and address the potential typo in the third entry:

Key Differences Between v1.0 and v2.0 Token Endpoints

First, let's clarify the two standard endpoints you mentioned:

  • https://login.microsoftonline.com/{tenant}/oauth2/token: Microsoft Azure AD v1.0 token endpoint
  • https://login.microsoftonline.com/{tenant}/oauth2/v2.0/token: Microsoft Identity Platform v2.0 token endpoint

Here's how they stack up:

1. Target Application Ecosystem

  • v1.0: Built exclusively for legacy Azure AD-only applications (registered in the old "App registrations (legacy)" portal). It only supports organizational (work/school) accounts—no personal Microsoft accounts (like outlook.com) allowed.
  • v2.0: The modern, unified endpoint for the Microsoft Identity Platform. It supports all application types: multi-tenant Azure AD apps, personal Microsoft account apps, and even Azure AD B2C apps (with a modified domain). Apps are registered in the current "App registrations" portal.

2. Permission & Scope Model

  • v1.0: Uses the resource parameter to specify the target API (e.g., https://graph.microsoft.com). Permissions are static—you pre-configure all required delegated/app permissions in the portal, and users consent to all of them upfront.
  • v2.0: Uses the scope parameter for granular permission requests (e.g., User.Read Mail.Send). It supports incremental consent (users can approve permissions one at a time) and follows standard OAuth2/OIDC scope formatting. Shortcuts like openid, profile, or offline_access are also supported.

3. Supported Authentication Flows

  • v1.0: Supports core OAuth2 flows (authorization code, client credentials, password, implicit) but lacks modern security enhancements. PKCE (Proof Key for Code Exchange)—critical for public clients like mobile apps—is not supported here.
  • v2.0: Supports all v1.0 flows plus modern, secure options: PKCE (recommended for public clients), device authorization flow (for headless devices), and refresh token rotation (to mitigate token theft risks).

4. Token Format & Claims

  • v1.0: ID tokens and access tokens have a fixed claim set. Access tokens are tied to a single resource and can only be validated by that specific API. Claims like tid (tenant ID) and oid (user object ID) are present, but standard OIDC claims are limited.
  • v2.0: ID tokens include full standard OIDC claims. Access tokens are mostly JWT-formatted (with exceptions for some legacy APIs) and can be validated using Microsoft's token validation API. Additional standard claims like azp (authorized party) are included for better auditability.

5. Feature Roadmap

  • v1.0: Is in maintenance mode—no new features are being added. Microsoft recommends migrating to v2.0 for all new applications.
  • v2.0: Is the actively developed endpoint, receiving regular updates for new identity features (like conditional access integrations, token lifetime policies, etc.).

Note on /Amaw

The path /Amaw doesn't correspond to any standard Microsoft identity platform token endpoint—it's likely a typo. Common alternatives might include:

  • Authorization endpoints (e.g., /oauth2/v2.0/authorize)
  • Azure AD B2C-specific endpoints (e.g., https://{tenant}.b2clogin.com/{tenant}.onmicrosoft.com/{policy}/oauth2/v2.0/token)
  • A miswritten internal/custom endpoint

Double-check the intended endpoint path for accuracy!

内容的提问来源于stack exchange,提问作者Artha Wijendra

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.07 16:52:46