JWT
Add a JWT configuration so your application signs people in with signed tokens, check which claims Ideanote reads, map Teams and authenticate API requests.
With JSON Web Token (JWT) sign-in, your application sends signed identity data to Ideanote to sign a person in. There’s no JWT button on the sign-in page because your application handles sign-in. This page shows you how to configure JWT and use it with the API or a Widget.
Add a JWT configuration
In Settings, select Authentication. This is where you add and enable the JWT method. Each configuration needs a signing secret so Ideanote can verify tokens.
A workspace can have several JWT configurations. A method must be enabled before it can accept sign-ins.
Setting | What it does |
|---|---|
Synchronize team | Adds people to the Team named in the token. It’s off by default. |
Allow Signup without Invite | Lets Ideanote create an account without an active invitation. |
Allowed email addresses | Limits new accounts to individual addresses or patterns, such as a domain. It doesn’t affect recognition of existing accounts. Leave it empty to apply no email restriction. |
Allowed IP-addresses | Restricts sign-in when the request’s IP address is available. It applies to existing users too. |
Custom sign-in-button text | Doesn’t apply to JWT because it has no sign-in button. |
Custom sign-in-button icon | Doesn’t apply to JWT because it has no sign-in button. |
Show on Sign-In Page | Doesn’t apply to JWT. Turning it on won’t add a JWT button. |
Check what Ideanote reads from the token
Ideanote uses the token’s subject to identify the person. It also reads email, name, language, profile picture, country, state, city, expiry and issuer.
During explicit sign-in, country, state and city fill any corresponding profile fields that are empty.
Map a Team from the token
Ideanote checks the configured Team attributes before the department attribute. It takes the first value it finds and treats it as one Team name.
With Synchronize team on, Ideanote finds the named Team or creates it if needed. It then adds the person if they aren’t already a member. Changing or omitting the Team name doesn’t remove any existing memberships.
Sign in through the API or a Widget
Your application can use a signed JWT to sign a person in through the API. A Widget can also sign the person in when its host supplies the token. Signing in to the host site alone doesn’t sign the person in to its Widget.
If the workspace has several JWT configurations, both the API and the Widget must identify the intended method. An API sign-in request that names only the workspace is rejected. See Widget authentication to configure the Widget.
During explicit sign-in, Ideanote verifies the token against the configured signing secret. It rejects tokens that fail verification and blocks sign-in for disabled users. Ideanote matches an existing account or creates one if there’s no match and signup is allowed.
A new user gets the rank from the current invitation first, then from the authentication method. If neither sets a rank, the user becomes a Member.
Authenticate API requests with JWT
A JWT can also identify the person and workspace on an API request. For these requests, Ideanote uses the workspace’s first JWT configuration.
A linked identity uses the saved user’s session. An unmatched identity can start a session without immediately creating an account. An API operation that needs a saved account can create one at that point.
Common questions
How do I remove someone from a Team they no longer belong to?
Changing or omitting the Team in a JWT won’t remove someone’s existing membership. If you manage the Team through SCIM, remove the person with a SCIM group update; see Team Management.