Kinde lets you add custom scopes to help manage others who access to your APIs. Scopes define token permissions used by your APIs, and provide a reliable way to control access to your API resources.
Granular control: Instead of broad permissions like read or write, you can create scopes tailored to different levels of access, such as read:userprofile or write:roles.
Security: You only need to grant the permissions necessary for each operation, minimizing the risk of unauthorized access to sensitive data or actions within your system.
Flexibility: As your application grows and requirements change, you can easily add, remove, or modify scopes without affecting other parts of your system.
Better UX: They simplify the authorization process and improve overall user experience.
Compliance: They help you align with regulatory requirements or industry standards by ensuring that access to sensitive data is properly managed and audited.
Select View details on the API you want to add scopes for.
In the menu, select Scopes.
Select Add scope.
In the Add scope window, enter a name for the scope. This will be the name you use in your code to recognize the scope. We recommend following a consistent naming convention, such as read:user_status or write:mobilephone.
Add a description that explains what the scope is for and what it does.
Select Save.
Repeat from step 4 for all the scopes you want to add for this API.
Repeat from step 1 to add scopes for a different API.
Go to Settings > Applications and select View details on the relevant application.
Select APIs in the side menu.
If the application is not yet authorized, select the three dots menu next to the API you’re giving the app access to, and then select Authorize application.
In the same three dots menu, select Manage scopes.
In the window that opens, switch on or off the scopes allowed for the application.