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

Outline _redirects based security rules #3

Open
devraj opened this issue Jul 24, 2022 · 1 comment
Open

Outline _redirects based security rules #3

devraj opened this issue Jul 24, 2022 · 1 comment

Comments

@devraj
Copy link
Member

devraj commented Jul 24, 2022

Netlify allows protecting content based on a configuration file, outline a process of mapping subscriptions to roles and let Netlify handle the protection of content

[[redirects]]
  from = "/gated-path"
  status = 200
  conditions = {Role = ["admin"]}
  force = true

If the user does not have a role we should provide a meaningful fallback and the option to redirect to authentication or manage their subscription.

@devraj devraj transferred this issue from another repository Jul 29, 2022
@devraj devraj changed the title Outline netlify.toml based security rules Outline _redirects based security rules Jan 2, 2023
@devraj
Copy link
Member Author

devraj commented Jan 2, 2023

I've had more success with _redirects than the toml file, for now I am moving to using the _redirects as the solution.

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

No branches or pull requests

1 participant