I did it in my project
I created a header page, without any security on it.
I add an empty label, but you can use any component in it
Add the following in a Startup Script on this component
if not system.perspective.isAuthorized(False, ["Authenticated"]):
system.perspective.login()
So whenever I have a page with security, I use this header