Skip to content

Commit f7dc97b

Browse files
Changed heading capitalisation
1 parent 3b3027a commit f7dc97b

File tree

1 file changed

+22
-22
lines changed

1 file changed

+22
-22
lines changed

src/content/docs/developer-tools/sdks/backend/python-sdk.mdx

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -29,19 +29,19 @@ Install [PIP](https://pip.pypa.io/en/stable/installation/) and then execute the
2929
pip install kinde-python-sdk
3030
```
3131

32-
### Environment Variables
32+
### Environment variables
3333

3434
The Kinde Python SDK v2 uses environment variables for configuration. Here are all the supported variables:
3535

36-
#### Required Variables
36+
#### Required variables
3737
- `KINDE_CLIENT_ID` - Your application's client ID from Kinde
3838
- `KINDE_CLIENT_SECRET` - Your application's client secret from Kinde
3939
- `KINDE_REDIRECT_URI` - The callback URL where Kinde will redirect after authentication
4040
- `KINDE_HOST` - Your Kinde domain (e.g., `https://yourdomain.kinde.com`)
4141
- `KINDE_ISSUER_URL` - Your Kinde issuer URL (typically same as KINDE_HOST)
4242
- `GRANT_TYPE` - The OAuth grant type to use (e.g., `AUTHORIZATION_CODE_WITH_PKCE`)
4343

44-
#### Optional Variables
44+
#### Optional variables
4545
- `KINDE_AUDIENCE` - The intended recipient of the access token (for API access)
4646
- `KINDE_CALLBACK_URL` - Alternative name for KINDE_REDIRECT_URI
4747
- `LOGOUT_REDIRECT_URL` - Where users are redirected after logout
@@ -151,7 +151,7 @@ oauth = OAuth(
151151
)
152152
```
153153

154-
### Manual Route Implementation
154+
### Manual route implementation
155155

156156
If you prefer to implement the routes manually, here's how you can do it:
157157

@@ -279,7 +279,7 @@ The Kinde Python SDK provides a simple way to check user permissions in your app
279279
from kinde_sdk.auth import permissions
280280
```
281281

282-
### Checking Permissions
282+
### Checking permissions
283283

284284
To check if a user has a specific permission:
285285

@@ -300,7 +300,7 @@ print(f"User belongs to organization: {all_permissions['orgCode']}")
300300
print("User permissions:", all_permissions["permissions"])
301301
```
302302

303-
### Practical Examples
303+
### Practical examples
304304

305305
Here's how to use permissions in your application:
306306

@@ -321,7 +321,7 @@ async def create_todo(todo_data: dict):
321321
# Create todo logic here...
322322
```
323323

324-
### Common Permission Patterns
324+
### Common permission patterns
325325

326326
Here are some common permission patterns you might use:
327327

@@ -345,15 +345,15 @@ Here are some common permission patterns you might use:
345345

346346
For more information about setting up permissions in Kinde, see [User permissions](/manage-users/roles-and-permissions/user-permissions/).
347347

348-
## Feature Flags
348+
## Feature flags
349349

350350
The Kinde Python SDK provides a simple way to access feature flags from your application. First, import the feature flags module:
351351

352352
```python
353353
from kinde_sdk.auth import feature_flags
354354
```
355355

356-
### Getting Feature Flags
356+
### Getting feature flags
357357

358358
To get a specific feature flag value:
359359

@@ -381,7 +381,7 @@ for code, flag in all_flags.items():
381381
print(f"- {code}: {flag.value} ({flag.type})")
382382
```
383383

384-
### Practical Examples
384+
### Practical examples
385385

386386
Here's how to use feature flags in your application:
387387

@@ -416,7 +416,7 @@ async def create_competition(competition_data: dict):
416416
# Create competition logic here...
417417
```
418418

419-
### Feature Flag Types
419+
### Feature flag types
420420

421421
The SDK supports the following feature flag types:
422422

@@ -440,7 +440,7 @@ The SDK supports the following feature flag types:
440440
}
441441
```
442442

443-
### Common Use Cases
443+
### Common use cases
444444

445445
```python
446446
# Feature Toggles
@@ -465,7 +465,7 @@ The Kinde Python SDK provides a simple way to access user claims from your appli
465465
from kinde_sdk.auth import claims
466466
```
467467

468-
### Getting Claims
468+
### Getting claims
469469

470470
To get a specific claim from the user's tokens:
471471

@@ -491,7 +491,7 @@ for claim_name, claim_value in all_claims.items():
491491
id_token_claims = await claims.get_all_claims(token_type="id_token")
492492
```
493493

494-
### Practical Examples
494+
### Practical examples
495495

496496
Here's how to use claims in your application:
497497

@@ -517,7 +517,7 @@ async def protected_endpoint():
517517
return {"message": "Access granted"}
518518
```
519519

520-
### Common Claims
520+
### Common claims
521521

522522
Here are some common claims you might want to access:
523523

@@ -540,7 +540,7 @@ Here are some common claims you might want to access:
540540
"org_id"
541541
```
542542

543-
### Token Types
543+
### Token types
544544

545545
The SDK supports two types of tokens:
546546

@@ -634,7 +634,7 @@ Once the user has successfully authenticated, you'll get a JWT and possibly a re
634634

635635
The Kinde Python SDK provides a Management API client for interacting with Kinde's management endpoints. This allows you to programmatically manage users, organizations, and other resources.
636636

637-
### Getting Started
637+
### Getting started
638638

639639
To use the Management API, you'll need to initialize the client with your Kinde credentials:
640640

@@ -650,7 +650,7 @@ oauth = OAuth(
650650
management = oauth.get_management()
651651
```
652652

653-
### Available Endpoints
653+
### Available endpoints
654654

655655
The Management API provides methods for common operations on resources. Here are some examples:
656656

@@ -678,7 +678,7 @@ updated_user = await management.update_user(
678678
await management.delete_user(user_id="user_123")
679679
```
680680

681-
### Organization Management
681+
### Organization management
682682

683683
```python
684684
# List organizations
@@ -702,7 +702,7 @@ updated_org = await management.update_organization(
702702
await management.delete_organization(org_id="org_123")
703703
```
704704

705-
### Error Handling
705+
### Error handling
706706

707707
The Management API methods will raise exceptions for API errors. It's recommended to handle these appropriately:
708708

@@ -714,7 +714,7 @@ except Exception as e:
714714
print(f"Error: {e}")
715715
```
716716

717-
### Token Management
717+
### Token management
718718

719719
The Management API client automatically handles token management, including:
720720
- Token acquisition
@@ -724,7 +724,7 @@ The Management API client automatically handles token management, including:
724724

725725
You don't need to manage tokens manually - the client handles this for you.
726726

727-
### Best Practices
727+
### Best practices
728728

729729
1. Always use async/await when calling Management API methods
730730
2. Handle API errors appropriately

0 commit comments

Comments
 (0)