Draft
Conversation
This adds global OAuth clients for common integrations during demo setup:
Google services:
- Google Drive
- Google Sheets
- Gmail
Salesforce:
- Salesforce (production)
- Salesforce Sandbox
Microsoft services:
- Microsoft SharePoint
- Microsoft Outlook
- Microsoft Calendar
- Microsoft OneDrive
- Microsoft Teams
Features:
- OAuth client credentials are read from environment variables via Bootstrap
- Falls back to dummy placeholder values for development/testing
- Clients are owned by super user if available, otherwise admin
- All clients are global (available across all projects)
- Scopes use full URL format for Google to match token response
Environment variables follow the pattern:
- {SERVICE}_CLIENT_ID
- {SERVICE}_CLIENT_SECRET
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #4134 +/- ##
==========================================
+ Coverage 88.79% 88.81% +0.01%
==========================================
Files 422 422
Lines 19189 19214 +25
==========================================
+ Hits 17038 17064 +26
+ Misses 2151 2150 -1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Add `mix lightning.setup_demo_oauth_clients` task that allows users to create demo OAuth clients without requiring a database reset. Features: - Creates OAuth clients for Google, Salesforce, and Microsoft services - Skips existing OAuth clients (idempotent operation) - Supports --email option to specify the OAuth client owner - Falls back to superuser or first user if no email specified - Clear output showing created vs skipped clients This enables adding OAuth clients to existing deployments without running `mix ecto.reset` or the full demo setup.
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Testing something that should make working on OAuth locally a bit easier and faster. This is not ready yet !