Backend Setup
Set up user authoization in the backend for dashboard deployment
User Authorization (Tenant Registration)
The purpose of user authorization set up in the backend is for Upsolve AI to provide appropriate data access based on your user permissioning set up.
In your product’s authentication flow, you will need to call the /register-tenant endpoint to authorize users/register tenants. This endpoint allows you to tell Upsolve AI who the authorized user is and what data permission they have via a payload.
The endpoint is a “refresh” endpoint that consumes the payload and issues an one-hour short-lived JWT. This endpoint should be hit every time you re-authorize the user in your app. This JWT is then used to provide your authorized users the appropriate access to the dashboard and underlying data.
Please refer to the documentation for the /register-tenant endpoint. You will need to call this endpoint in your auth flow.
Setup Inspection
You could inspect whether the user authorization is setup successfully. Navigate to the Deploy application using the side navigation bar.
If the endpoint is successfully called, you should see your new tenants in the Deploy application:
Was this page helpful?