How do I auto direct back to Login if the user isn't logged in?

What’s your server model?
If php:

Can you show us the security provider enforcer?
(App - > security provider enforcer)
Also show us the security provider under globals.

If: node: