1
1
# volto-middleware-rejectanonymous
2
2
3
- [ Volto] ( https://github.com/plone/volto ) add-on
3
+ [ Volto] ( https://github.com/plone/volto ) add-on that reject unconditionnally anonymous users from a Volto site.
4
4
5
- ## Features
5
+ They should be redirected to a login form (customizable).
6
6
7
- [ rejectanonymous ] ( https://rejectanonymousjs.github.io/ ) middleware
7
+ When login management is outside Plone, the first SSR page load is without login headers, so you have to refresh the page to have the proper tokens.
8
8
9
- Demo GIF
9
+ With this middleware, you can force SSR to make a fake call to a Plone view that simply make a redirect (and returns the auth tokens).
10
10
11
11
## Getting started
12
12
13
- ### Try volto-addon-template with Docker
13
+ ### Try volto-middleware-rejectanonymous with Docker
14
14
15
15
1 . Get the latest Docker images
16
16
@@ -32,7 +32,7 @@ Demo GIF
32
32
33
33
1 . Go to http://localhost:3000
34
34
35
- ### Add volto-addon-template to your Volto project
35
+ ### Add volto-middleware-rejectanonymous to your Volto project
36
36
37
37
1 . Make sure you have a [ Plone backend] ( https://plone.org/download ) up-and-running at http://localhost:8080/Plone
38
38
@@ -69,14 +69,20 @@ Demo GIF
69
69
70
70
1 . Happy editing!
71
71
72
+ ### Configuration
73
+
74
+ This add-on can be enabled with an environment variable ` RAZZLE_REJECT_ANONYMOUS ` . It is disabled by default.
75
+
76
+ Default redirect url is ` /login ` but you can override it with ` RAZZLE_REJECT_ANONYMOUS_REDIRECT_URL ` environment variable.
77
+
72
78
## Release
73
79
74
- See [ RELEASE.md] ( https://github.com/collcetive /volto-middleware-rejectanonymous/blob/master/RELEASE.md ) .
80
+ See [ RELEASE.md] ( https://github.com/RedTurtle /volto-middleware-rejectanonymous/blob/master/RELEASE.md ) .
75
81
76
82
## How to contribute
77
83
78
- See [ DEVELOP.md] ( https://github.com/collcetive /volto-middleware-rejectanonymous/blob/master/DEVELOP.md ) .
84
+ See [ DEVELOP.md] ( https://github.com/RedTurtle /volto-middleware-rejectanonymous/blob/master/DEVELOP.md ) .
79
85
80
86
## Copyright and license
81
87
82
- See [ LICENSE.md] ( https://github.com/collcetive /volto-middleware-rejectanonymous/blob/master/LICENSE.md ) for details.
88
+ See [ LICENSE.md] ( https://github.com/RedTurtle /volto-middleware-rejectanonymous/blob/master/LICENSE.md ) for details.
0 commit comments