Controlling authentication
How an application asks for a fresh, stronger or particular kind of sign-in, and what it receives back.
Start with Prompt and account selection
- Prompt and account selectionUse the prompt parameter to check silently for a provider session, ask for a fresh sign-in or consent, or let someone choose between accounts, and handle each answer.
- Login hintsSuggest which account a sign-in is for with login_hint or an earlier ID token, and see why a hint saves typing but never proves who signed in.
- Session age and reauthenticationAsk the provider for a recent sign-in with max_age or prompt=login before a sensitive change, then check auth_time yourself instead of trusting that the request was honored.
- Authentication context and methodsRead the acr and amr claims, request an authentication context with acr_values or an essential claim, and see why the agreed meaning matters more than the method list.
- Requesting stronger authenticationFollow the collage app as it sends Ava back for a passkey sign-in before she downloads a board's originals, checks the result, and handles a provider that cannot comply.