auth

Login with embedded first-party form

Authenticates a user from an embedded first-party login form and establishes the local auth session.

Use this as step 1 of embedded SSO: login -> bootstrap-ticket -> bootstrap-session.

First-party websites may persist the embedded-login session cookie for their own server-side API calls.

post/oauth2/embedded/login

Request

  • Base URL: https://api.leisurevans.com
  • URL: https://api.leisurevans.com/oauth2/embedded/login
  • Auth: none declared

Request body

emailstring email required
passwordstring required

Response

Embedded login response.

object required

Example response

{
  "user": {
    "id": "9b7a3e18-9eaf-4e0c-97f7-2f5b59a8f6c0",
    "email": "owner@example.com",
    "role": "user",
    "product": {
      "model": "Unity",
      "floorplan": "U24MB",
      "year": "2024",
      "vin": "1A2BC3D4E5F678901"
    }
  },
  "userId": "9b7a3e18-9eaf-4e0c-97f7-2f5b59a8f6c0"
}

Changes

No recorded changes to this operation across all 1 revision of this API.