Authentication attempts
Run one sign-in round by creating an attempt, issuing challenges, verifying proofs and creating the handoff token.
An authentication attempt is one sign-in round, and it expires 15 minutes after creation. Call these operations to run a sign-in from your own client, or to add factors to an existing session (step-up authentication).
The calls run in this order:
- Create the attempt.
- Issue a challenge, a request to prove one factor such as a password.
- Verify the proof for that challenge. Repeat steps 2 and 3 until the attempt
is
completed. - Create the handoff token, the short-lived credential that a completed attempt hands to the session exchange.
- Exchange the handoff token for a session in Sessions.
See Sessions and auth attempts for the concepts.
| Method | Path | Summary |
|---|---|---|
POST | /auth_attempts | Create an authentication attempt |
GET | /auth_attempts/{attempt_id} | Get an authentication attempt by ID |
POST | /auth_attempts/{attempt_id}/challenges | Issue a factor challenge |
POST | /auth_attempts/{attempt_id}/challenges/{challenge_id}/verify | Verify a challenge proof |
POST | /auth_attempts/{attempt_id}/handoff | Complete an authentication attempt and create a handoff token |
Was this helpful?