You could use this implementation which allows you to control which pages are seen based on authentication type.