Skip to content

Latest commit

 

History

History
19 lines (17 loc) · 969 Bytes

remind-not-to-validate-access-tokens.md

File metadata and controls

19 lines (17 loc) · 969 Bytes
title description services author manager ms.service ms.subservice ms.workload ms.topic ms.date ms.author ms.reviewer ms.custom
Don't validate access tokens for Microsoft Graph
Include file warning that access tokens for Microsoft Graph should be considered opaque and should never be validated by customer code. Only Microsoft Graph validates Microsoft Graph access tokens.
active-directory
hpsin
CelesteDG
active-directory
develop
identity
include
06/25/2021
hirsin
hirsin
aaddev

Warning

Don't attempt to validate or read tokens for any API you don't own, including the tokens in this example, in your code. Tokens for Microsoft services can use a special format that will not validate as a JWT, and may also encrypted for consumer (Microsoft account) users. While reading tokens is a useful debugging and learning tool, do not take dependencies on this in your code or assume specifics about tokens that aren't for an API you control.