Custom login using the API
This article describes how to login the user in the browser by using the Ideanote API. This technique can be used when JWT, SAML or OpenID isn't an option. In order to log in the user, you will have to follow these steps:
- Create or update the user and obtain the user's
- Generate a link using the
session tokenthat can be used to automatucally log in the user in the browser.
1. Create or update the user and obtain the user's
The following JSON endpoint will automatically create the user if it doesn't exist or update the user if it already exists. The endpoint returns a session object with a
The ID of your workspace
This key needs to always be set to the value:
A data object describing the user details
curl "https://api.ideanote.io/session" \
-H "Content-Type: application/json" \
"name": "John Doe",
Generate a link using the
session token that can be used to automatucally log in the user in the browser.
After obtaining the
sessionToken of the user, you can generate a link that can be used to log in the user directly in the browser.
Link directly to the webapp:
Link directly to the widget
First you will have to get a widget link. This can be found by sharing a mission, editting the embed code and getting a "full page" widget link.
Afterwards you will have to extend the URL with the query parameter: