Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

SPIKE: Proof of concept to show auth using Ory Network & Ory JavaScript SDK #71

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

paigen11
Copy link
Contributor

@paigen11 paigen11 commented Feb 27, 2024

Problem Context

Simple POC to show how we can use the Ory Network (Ory's hosted version) and the Ory JavaScript SDK to authenticate with the Airnote application.

Changes

Screenshot (if applicable)

airnote-auth-poc.mov

Testing

To test locally, follow these steps:

For best results, open an incognito browser for testing (sometimes other cookies stored in already existing browser sessions can cause issues)

  1. Run the following command in a terminal export ORY_SDK_URL=<INSERT_ORY_NETWORK_URL_HERE>
  2. Then this command npx @ory/cli tunnel --dev http://localhost:5173
  3. In a separate terminal window run this command npm run dev
  4. Open the browser at http://localhost:5173
  5. See the Airnote dashboard and a # link in the nav bar and on the main page. Click either link
  6. See that you're redirected to an Ory # screen at http://localhost:4000, # or # as a new user.
  7. After successful # see that you're redirected back to the Airnote app and the nav bar's # link is replaced with "Hi, <full_name>" instead as is the message on the homepage where the # button was
  8. Click the Sign Out button on the homepage
  9. See the homepage and nav bar switch back to # links after sign out is complete

Any other related PRs

Ticket(s)

@paigen11 paigen11 requested a review from bshort February 27, 2024 21:55
Copy link

netlify bot commented Feb 27, 2024

Deploy Preview for airnote-live ready!

Name Link
🔨 Latest commit acf0cee
🔍 Latest deploy log https://app.netlify.com/sites/airnote-live/deploys/65df9316d4d1a60008909527
😎 Deploy Preview https://deploy-preview-71--airnote-live.netlify.app/quickstart
📱 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.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant