Skip to content

demo oauth clients#4134

Draft
elias-ba wants to merge 6 commits intomainfrom
demo-oauth-clients
Draft

demo oauth clients#4134
elias-ba wants to merge 6 commits intomainfrom
demo-oauth-clients

Conversation

@elias-ba
Copy link
Contributor

@elias-ba elias-ba commented Dec 4, 2025

Testing something that should make working on OAuth locally a bit easier and faster. This is not ready yet !

@github-project-automation github-project-automation bot moved this to New Issues in Core Dec 4, 2025
@codecov
Copy link

codecov bot commented Dec 4, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 88.81%. Comparing base (5fceb3c) to head (2dd94b6).

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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@elias-ba elias-ba marked this pull request as draft December 5, 2025 07:29
@elias-ba elias-ba changed the title Add demo OAuth clients for Google, Salesforce, and Microsoft add demo oauth clients Dec 5, 2025
@elias-ba elias-ba changed the title add demo oauth clients demo oauth clients Dec 5, 2025
Add mix task and public API for creating pre-configured global OAuth
clients. Supports --list to show config status, --only to select
specific clients, and --email to specify the owner. Reads credentials
from app config (Bootstrap/Dotenvy), skips unconfigured clients
gracefully, and is fully idempotent.
@elias-ba elias-ba force-pushed the demo-oauth-clients branch from ed05211 to ee036e9 Compare March 14, 2026 13:07
Users can now create placeholder OAuth credentials that can be
reauthorized later through the UI. Supports optional --project
flag to attach credentials to a specific project.
Add `mix lightning.create_oauth_credential` for creating a single
dummy OAuth credential with full control over name, user, and project.
Replace bulk credential creation with a focused single-credential
function (create_dummy_oauth_credential/3) that's composable and
flexible.
Users can discover available OAuth clients before creating credentials.
Shows client names, IDs, and whether they're global.
Add tests for both mix tasks (setup_demo_oauth_clients,
create_oauth_credential) covering happy paths, error cases, and
flag handling. Add direct tests for all_keys/0, env_vars_for/1,
demo_client_name/1, and credential token body verification.

52 tests total, 0 failures.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: New Issues

Development

Successfully merging this pull request may close these issues.

1 participant