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

[SID-1577] Restrict access to custom pages #19

Merged
merged 8 commits into from
Feb 26, 2024
Merged

Conversation

ikovic
Copy link
Contributor

@ikovic ikovic commented Feb 23, 2024

Apply privatePaths to custom pages, as well as the docs. Add the configuration option to determine the behaviour in case someone ends up on a private path.

Added the uxMode config option to define behaviour when an unauthenticated user accesses a private path:

  • redirect is the default option, behaves consistent to the previous version - redirects to the path defined as privateRedirectPath or "/"
  • modal will render the login form on top of the private page

Testing

Released a beta version - @slashid/[email protected]

@ikovic ikovic self-assigned this Feb 23, 2024
Copy link

cloudflare-workers-and-pages bot commented Feb 26, 2024

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: 2e219e3
Status: ✅  Deploy successful!
Preview URL: https://76c22043.docusaurus-slashid-login.pages.dev
Branch Preview URL: https://sid-1577-protect-pages.docusaurus-slashid-login.pages.dev

View logs

@jake-slashid
Copy link
Contributor

I haven't tested but code looks good

@ikovic ikovic merged commit 4223fa6 into main Feb 26, 2024
2 checks passed
@ikovic ikovic deleted the sid-1577-protect-pages branch February 26, 2024 13:51
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