You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/docs/developer-tools/kinde-api/about-m2m-scopes.mdx
+21-4Lines changed: 21 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,22 +14,39 @@ app_context:
14
14
s: apis
15
15
---
16
16
17
-
The Kinde management API uses JSON Web Tokens (JWTs) to authenticate requests. The token’s scopes claim indicates which endpoints can be accessed when calling the management API.
17
+
The Kinde management API uses JSON Web Tokens (JWTs) to authenticate requests. The token’s scopes claim indicates which endpoints can be accessed when calling the API.
18
18
19
19
## Example scopes
20
20
21
21
-`read:users` for fetching user details.
22
22
-`write:users` for modifying user details.
23
23
-`read:roles` or `write:roles` for managing roles.
24
24
25
-
You can select scopes when you authorize a new application or you can add scopes to an existing application. We recommend adding as few scopes as you need, to maintain API security.
25
+
You can select scopes when you authorize a new application or you can add scopes to an existing application. We recommend adding as few scopes as you need, to maintain API security.
26
26
27
-
## Change or add scopes to an application accessing the Kinde Management API
27
+
## Request scopes in the body of an access token request
28
+
29
+
By default token requests for an authorized application will return all the scopes enabled below. You can also optionally ask for a subset of enabled scopes to be returned by including them in the body of the access token request. You might do this to add more security to access requests, or because you want your users to be very specific about scopes in their requests.
## Add or modify scopes for accessing the Kinde Management API
28
45
29
46
Follow this procedure if you already have an application and you experience a scope error, if you want to add scopes for an application, or remove scopes to tighten security.
30
47
31
48
1. Go to **Settings > Applications** and select the relevant M2M application.
32
49
2. On the left, select **APIs**.
33
50
3. Select the three dots next to the Kinde management API, then choose **Manage scopes**.
34
51
4. Select the scopes you want to include in the token. For maximum security only enable the minimum scopes you require.
35
-
5. Select **Save**. The scopes will now be included in the token. You do not need to also send them in the token request.
Copy file name to clipboardExpand all lines: src/content/docs/developer-tools/your-apis/custom-api-scopes.mdx
+17Lines changed: 17 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -68,3 +68,20 @@ Take care deleting scopes. If a scope is in use, it can cause breaking changes f
68
68
4. Select the dots menu (far right) and select:
69
69
-**Edit scope.** You can only change the scope description. Select **Save**.
70
70
-**Delete scope**. Confirm that you want to delete and select **Delete scope**.
71
+
72
+
## Request a subset of scopes for an authorized application
73
+
74
+
By default token requests for an authorized application will return all the scopes enabled in the section above. However, you can also optionally ask for a subset of enabled scopes to be returned by including them in the body of the access token request. You might do this to add more security to access requests for your API, or because you want your users to be very specific in their requests.
Copy file name to clipboardExpand all lines: src/content/docs/developer-tools/your-apis/test-token-from-kinde.mdx
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
2
page_id: be39d3bb-a83d-4d21-8941-8f1c8363c3bb
3
-
title: Get a user access token to test your APIs (Fast method)
3
+
title: Get a M2M token to test your APIs
4
4
sidebar:
5
5
order: 2
6
6
relatedArticles:
@@ -10,7 +10,7 @@ relatedArticles:
10
10
11
11
Kinde lets you quickly generate a test token for testing your APIs with Kinde. This can save you time generating a token via Postman or other service.
12
12
13
-
This process assumes you have [registered](/developer-tools/your-apis/register-manage-apis/) your API with Kinde, and have [authorized an application](/developer-tools/your-apis/register-manage-apis/#authorize-or-revoke-authorization-of-an-app-from-the-api) to access it.
13
+
This process assumes you have [registered](/developer-tools/your-apis/register-manage-apis/) your API with Kinde, and have [authorized an M2M application](/developer-tools/your-apis/register-manage-apis/#authorize-or-revoke-authorization-of-an-app-from-the-api) to access it.
0 commit comments