Authentication

Generate user authentication tokens securely for ALO SDK access using your Developer API Key and user credentials.

Generating User Authentication Tokens

When using ALO SDKs you will need to provide an authentication token for each of your ALO users that will need access to the ALO Cloud Platform.

You should generate user authentication tokens in a server side function so that you do not expose your ALO Developer API Key in client side code.

In order to generate a token for a given user you will need the following:

To get a token you must perform a POST a request to the ALO Authorization Service

POST https://auth.alo.ai/v1/auth
Headers:
- Authorization: Bearer <DEVELOPER API KEY>
Payload:
- ttl
- user

Authentication Payload

User Schema

Example

POST https://auth.alo.ai/v1/auth
Headers:
- Authorization: Bearer jjPP43dkEJHzzzlIYSGVt8HE5xOAtz1
Payload:
- user: { id: "A744d43X-3316-56f7-a6a3-99ecbbd44agg" }
- ttl: 60

Response:

{ token: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwSJRMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c" }

Last updated

Logo

© Copyright 2024 ALO.ai, Inc. • All Rights Reserved