Logto product update: Compliance status, custom JWT, API resources for organization roles, and more
We are excited to share the latest updates to compliance and new features. It was a productive month for the Logto team, so make sure you have brewed your favorite coffee before diving in.
GaoFounder
Stop wasting weeks on user auth
Launch secure apps faster with Logto. Integrate user auth in minutes, and focus on your core product.
Logto Cloud now passes all SOC 2 checks from the compliance automation platform. We've scheduled a SOC 2 Type I audit and are working towards a SOC 2 Type II audit.
JWT access tokens can now be customized with additional claims using custom JavaScript code snippets. This feature is useful when you need to include custom data in the token for compatibility with other systems.
To use this feature, navigate to the "Custom JWT" tab in the Console. Both user and machine-to-machine (M2M) tokens can be customized.
Before deploying the changes, you can use the "Run test" button to see how the token will look with the custom claims.
You can now assign permissions (scopes) from the API resources to organization roles. Like other permissions in the organization template, these permissions are organization-level, meaning that they only apply to a specific organization.
Let's see an example:
There is an API resource called https://shopping.api/.
The API resource has two scopes: read and write.
There are two organization roles: admin and user.
The admin role has both read and write scopes; the user role has only the read scope.
A user Alice is assigned the admin role in the organization foo, and the user role in the organization bar.
When Alice tries to exchange an organization token for the https://shopping.api/ resource, she will receive a token with scopes based on which organization she is requesting the token for.
For the foo organization, Alice will receive a token with both read and write scopes. For the bar organization, she will receive a token with only the read scope.
Organizational API resources can also be used when configuring permissions for third-party apps. User will be prompted to select an organization when configuring permissions for a third-party app.
Organization invitation APIs should handle invitee emails case insensitively.
Management API will not return 500 in production for status codes that are not listed in the OpenAPI spec.
Return 403 instead of 400 when Logto tries to grant an access token to a user lacking the required permissions, especially when granting for organization related resources.
Fixed the wrong social sign-in callback that posts to the native container (e.g. WKWebView in iOS).
Fixed the new user from SSO register hook event not triggering bug.
Fixed a bug that API resource indicator does not work if the indicator is not followed by a trailing slash or a pathname.