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

KeystoneJS Azure Static Web Apps Session Example #9323

Open
wants to merge 17 commits into
base: main
Choose a base branch
from

Conversation

relusion
Copy link

@relusion relusion commented Sep 8, 2024

Features

  • Custom session implementation using Azure Static Web Apps x-ms-client-principal header.
  • React frontend with login/logout functionality, and role-based authorization tests.
  • KeystoneJS backend with authorization based on roles.

- Add robots.txt file
- Add sandbox.config.json file
- Add index.css file
- Add index.js file
- Add setupTests.js file
- Add .gitignore file
- Add reportWebVitals.js file
- Add swa-cli.config.json file
- Add package.json file
- Add manifest.json file
- Add App.css file
- Add schema.prisma file
- Add keystone.ts file
- Add staticwebapp.config.json file
- Add App.js file
- Remove unused code and imports in backend files
- Add bootstrap v5.3.3 as a frontend dependency
- Update package-lock.json and package.json
- Update App.js to import bootstrap CSS
- Improve loading state in App.js
- Add error handling and fetch posts functionality in App.js
- Add addNewPost functionality in App.js
- Update UI in App.js to display user information and posts

Related to keystonejs#9322, keystonejs#9320, keystonejs#9262
Copy link

codesandbox-ci bot commented Sep 8, 2024

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit a04c9a7:

Sandbox Source
@keystone-6/sandbox Configuration

Copy link
Member

@dcousens dcousens left a comment

Choose a reason for hiding this comment

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

Can you please remove examples/custom-session-az-swa/backend/package-lock.json

@relusion
Copy link
Author

relusion commented Sep 8, 2024

Can you please remove examples/custom-session-az-swa/backend/package-lock.json

I've removed the "package-lock.json" file. The change has been pushed to the branch.
Let me know if you need anything else changed. Thanks!

@relusion relusion closed this Sep 8, 2024
@relusion relusion reopened this Sep 8, 2024
Copy link
Member

@dcousens dcousens left a comment

Choose a reason for hiding this comment

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

Please remove examples/custom-session-az-swa/frontend/package-lock.json

@relusion
Copy link
Author

Hey @dcousens, let me know if we can merge this, thanks.

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.

2 participants