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

Plugin install invokes keycloak init #13

Open
Toilal opened this issue Mar 11, 2022 · 4 comments
Open

Plugin install invokes keycloak init #13

Toilal opened this issue Mar 11, 2022 · 4 comments

Comments

@Toilal
Copy link

Toilal commented Mar 11, 2022

The vue plugin install function automatically invokes init function, making the library hard to use when some routes of the application are available publicly without authentication, using check-sso mode.

Do you think it make sense to add an option to avoid this behavoir, and invoke init manually on keycloak instance ?

@Toilal
Copy link
Author

Toilal commented Mar 11, 2022

I have implemented it in this commit Toilal@f170c5c, but it's based on my fork with vue2 support. Do you want me to open a pull request based on official master ?

@yantxs
Copy link

yantxs commented Apr 5, 2023

@Toilal, I have installed your implementation. Can you help me with some examples of how I can make some routes public?

@Toilal
Copy link
Author

Toilal commented Apr 5, 2023

You have to manage not invoking the plugin on public routes.

@yantxs
Copy link

yantxs commented Apr 5, 2023

You have to manage not invoking the plugin on public routes.

Like this? Can you help with some example? @Toilal

image
Ps: Ignore the wrong conditional

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

2 participants