Redirect non-administrators to custom route
See original GitHub issueHello. I’d like to redirect users who do not have access to Keystone to a custom route rather than display the login page with the message “You’re already signed in”. Is this possible and if so, what would you recommend? I’ve already tried something like…
app.get('/keystone/signin', function(req, res, next){
//if user is logged in but does not have Keystone access, redirect
next();
});
but I suspect the internals of keystone.start() is preventing this from taking effect
Issue Analytics
- State:
- Created 8 years ago
- Comments:15 (2 by maintainers)
Top Results From Across the Web
How to redirect Admin to a specific page and users to another
Route ::get('/', 'HomeController@redirectUser');. Additionally create your own routes which you want to redirect to. Route::group(['middleware' ...
Read more >How to create a custom WordPress login redirect
Today we look into how to use WordPress login redirect tools for custom login pages. We investigate how and why we should create...
Read more >Magento 2 Why my admin route always redirect to the ...
I have a custom module with a backend menu ...
Read more >Forward Gmail emails to another user - Google Support
Forward messages with address maps. As an admin, you can set up address maps to redirect incoming messages to other people or accounts....
Read more >Routing - Laravel - The PHP Framework For Web Artisans
Routing. Basic Routing. Redirect Routes; View Routes; The Route List ... You may customize the status code using the optional third parameter:.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@offmadisonave easiest would be to use
signin redirect
: it’s an option you can set as a string or a function which allows you to determine where the user is redirected to when authentication succeeds:There’s other approaches too, but I think this one should be most suited.
Should this be included in the signin config in the node_modules/keystone ?