Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explicitly use a not logged in page #207

Open
svituz opened this issue Apr 6, 2023 · 0 comments
Open

Explicitly use a not logged in page #207

svituz opened this issue Apr 6, 2023 · 0 comments

Comments

@svituz
Copy link

svituz commented Apr 6, 2023

Hi @perarnborg, thanks for this great package.
In my application, I would like the user to explicitly click on a login button when s/he tries to access a private page, instead of redirecting the browser directly to the OIDC login.
For example, let's say I have one route:

{
    path: '/private-page',
    component: MyComponent,
    meta: { isPublic: false }
}

If the user is not logged in and tries to access '/private-page', I want him/her to be redirected to a page where, for example, a message "You must login to access this page" is returned. Then when the user explicetely clicks on a Login button, the login is process started. Is it possible to do that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant