Repository navigation
fix: safer logging, working setup on macOS, current SDK #29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
KomanRudden
wants to merge
1
commit into
kinde-starter-kits:main
Choose a base branch
from
KomanRudden:fix/setup-and-logging
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,36 +1,27 @@ | ||
| # Kinde Application Configuration | ||
| # Get these values from your Kinde application settings | ||
| # Kinde Flask starter kit | ||
| # Copy this file to .env and fill in the values from your Kinde application. | ||
| # .env is in .gitignore, so your secrets stay out of git. | ||
|
|
||
| # Your Kinde application (App Keys page) | ||
| KINDE_CLIENT_ID=<YOUR_CLIENT_ID> | ||
| KINDE_CLIENT_SECRET=<YOUR_CLIENT_SECRET> | ||
|
|
||
| # Redirect URI configurations | ||
| # Update these URLs to match your application's deployment | ||
| KINDE_REDIRECT_URI=http://localhost:5000/callback | ||
| LOGOUT_REDIRECT_URL=http://localhost:5000/ | ||
| KINDE_CALLBACK_URL=http://localhost:5000/callback | ||
|
|
||
| # Kinde Host Configuration | ||
| # Replace <YOUR_SUBDOMAIN> with your actual Kinde subdomain | ||
| KINDE_HOST=https://<YOUR_SUBDOMAIN>.kinde.com | ||
| KINDE_ISSUER_URL=https://<YOUR_SUBDOMAIN>.kinde.com | ||
| KINDE_DOMAIN=<YOUR_SUBDOMAIN>.kinde.com | ||
| KINDE_REDIRECT_URI=http://localhost:5001/callback | ||
| # Optional: only if you call your own API with the access token | ||
| # KINDE_AUDIENCE= | ||
|
|
||
| # OAuth Configuration | ||
| KINDE_AUDIENCE= | ||
| GRANT_TYPE=AUTHORIZATION_CODE_WITH_PKCE | ||
| # Generate a random string for code verifier (43-128 characters) | ||
| CODE_VERIFIER=<YOUR_CODE_VERIFIER> | ||
| # Management API (optional, used by the /helpers and /api_demo pages) | ||
| KINDE_DOMAIN=<YOUR_SUBDOMAIN>.kinde.com | ||
| KINDE_MANAGEMENT_CLIENT_ID=<YOUR_MANAGEMENT_CLIENT_ID> | ||
| KINDE_MANAGEMENT_CLIENT_SECRET=<YOUR_MANAGEMENT_CLIENT_SECRET> | ||
|
|
||
| # Flask Application Configuration | ||
| TEMPLATES_AUTO_RELOAD=True | ||
| SESSION_TYPE=filesystem | ||
| SESSION_PERMANENT=False | ||
| # Generate a secure random secret key for Flask sessions | ||
| # Flask sessions. Generate a key with: | ||
| # python -c "import secrets; print(secrets.token_hex(32))" | ||
| SECRET_KEY=<YOUR_SECRET_KEY> | ||
| # Optional: where session files are kept (a temporary folder is used if not set) | ||
| # SESSION_FILE_DIR=./flask_session | ||
|
|
||
| # Management API Configuration (Optional) | ||
| # Only needed if you're using Kinde Management API | ||
| MGMT_API_CLIENT_ID=<YOUR_MGMT_API_CLIENT_ID> | ||
| MGMT_API_CLIENT_SECRET=<YOUR_MGMT_API_CLIENT_SECRET> | ||
| KINDE_MANAGEMENT_CLIENT_ID=<YOUR_MANAGEMENT_CLIENT_ID> | ||
| KINDE_MANAGEMENT_CLIENT_SECRET=<YOUR_MANAGEMENT_CLIENT_SECRET> | ||
| # Run on localhost:5001. Port 5000 is used by AirPlay on macOS, and the app must be | ||
| # opened on the same host as KINDE_REDIRECT_URI (localhost, not 127.0.0.1). | ||
| FLASK_RUN_HOST=localhost | ||
| FLASK_RUN_PORT=5001 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| python-dotenv>=1.0.0 | ||
| Flask~=3.0.0 | ||
| kinde-python-sdk~=2.0.8 | ||
| Flask-Session~=0.5.0 | ||
| kinde-python-sdk~=2.4 | ||
| Flask-Session>=0.6.0,!=0.7.0,<1.0.0 | ||
| Werkzeug~=3.0.0 |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔒 Security & Privacy | 🟡 Minor | ⚡ Quick win
🔎 Supported by static analysis
🏁 Script executed:
Repository: kinde-starter-kits/python-starter-kit
Length of output: 6295
Filter the Kinde SDK logger before authenticated requests.
kinde_oauth.get_user_info()still logs the complete user-info response atINFO, including profile fields such asemail. The PR removes application-level sensitive logs but leaves this SDK log, so the safer-logging change remains incomplete. Configure the Kinde SDK logger itself atWARNINGor higher.This SDK behavior predates the PR; the change reduces duplicate exposure but does not remove the remaining SDK log.
🤖 Prompt for AI Agents