Log In Page
In order to be able to use scseAuth an SCSE application needs to provide a login page.
It is important that the login page may be accessed by unauthorized users. Additionally unauthenticatedOnly: true may be set when calling definePageMeta in order to not allow authenticated users onto the login page.
Find more information on page specific settings on the Hide Pages page.
There is a default set for the login page path (check the scse-components source code). The path for the login page may be overwritten in the configuration. Additionally an optional profile page path may be set.
scseComponents: {
...
scseAuth: {
enabled: true,
pages: {
login: '/login',
profile: '/profile',
},
},
...
}
The scse-components provides an example for a Log in page. Copy it to an SCSE application to get started. The provided Log in page requires a layout with the name 'bare'. Copy that over as well if not present.