Skip to content
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

chore (examples): Add authentication to the examples #2248

Merged
merged 21 commits into from
Jan 29, 2025

Conversation

kevin-dp
Copy link
Contributor

Since the cloud API will require authentication we need to authenticate the requests to add the example DBs.
I modified the TODO app to authenticate the request. We need to do the same for the other examples.

Make sure that the ELECTRIC_ADMIN_API secret in GH points to the right path! The path should now include /api at the end.

Deployment of examples in CI relies on 2 new secrets ELECTRIC_ADMIN_API_TOKEN_ID and ELECTRIC_ADMIN_API_TOKEN_SECRET which are automatically written to this repository when deploying the cloud into production.

Copy link

netlify bot commented Jan 23, 2025

Deploy Preview for electric-next ready!

Name Link
🔨 Latest commit 781d6a3
🔍 Latest deploy log https://app.netlify.com/sites/electric-next/deploys/679919ddcee199000868ca0d
😎 Deploy Preview https://deploy-preview-2248--electric-next.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@kevin-dp kevin-dp force-pushed the kevin/examples-authentication branch from 9379945 to 1219e9d Compare January 23, 2025 16:07
@balegas balegas force-pushed the kevin/examples-authentication branch from e8ddafd to df189cb Compare January 29, 2025 14:02
- name: Deploy Linearlite
working-directory: ./examples/linearlite
run: pnpm sst deploy --stage production
# - name: Deploy Linearlite
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We're keeping this one out because it needs more work.

Copy link
Contributor

@KyleAMathews KyleAMathews left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great work!

@balegas balegas merged commit 2cd85ec into main Jan 29, 2025
34 checks passed
@balegas balegas deleted the kevin/examples-authentication branch January 29, 2025 23:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants