You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Greetings friends,
I tried searching for my issue with keycloak on discord and within issues of this repo but to no avail. Hopefully some of you can help you.
I've managed to setup keycloak with docker/nuxt/proxy, everything is hooked up correctly and working with no issue.
Under the hood keycloak has some extra options you can pass in, in particular this part: You can pass login-required or check-sso to the init function. login-required will authenticate the client if the user is logged-in to {project_name} or display the login page if not. check-sso will only authenticate the client if the user is already logged-in, if the user is not logged-in the browser will be redirected back to the application and remain unauthenticated.
I'm looking for check-sso option, but i have no idea how to pass it in though nuxt-auth, also nuxt auth has only loginWith method, which automatically does login-required mode (aka it redirects to login page if not logged in). |
I need to init nuxt auth and if the user is not logged in to set the values ctx.$auth.loggedIn = false and ctx.$auth.user = null.
This is important for the project i am currently working on, where there is going to be internal AND external access
Anyone got any ideas?
This discussion was converted from issue #1357 on January 19, 2022 11:34.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Greetings friends,
I tried searching for my issue with keycloak on discord and within issues of this repo but to no avail. Hopefully some of you can help you.
I've managed to setup keycloak with docker/nuxt/proxy, everything is hooked up correctly and working with no issue.
Under the hood keycloak has some extra options you can pass in, in particular this part:
You can pass login-required or check-sso to the init function. login-required will authenticate the client if the user is logged-in to {project_name} or display the login page if not. check-sso will only authenticate the client if the user is already logged-in, if the user is not logged-in the browser will be redirected back to the application and remain unauthenticated.
I'm looking for check-sso option, but i have no idea how to pass it in though nuxt-auth, also nuxt auth has only loginWith method, which automatically does login-required mode (aka it redirects to login page if not logged in). |
I need to init nuxt auth and if the user is not logged in to set the values ctx.$auth.loggedIn = false and ctx.$auth.user = null.
This is important for the project i am currently working on, where there is going to be internal AND external access
Anyone got any ideas?
Beta Was this translation helpful? Give feedback.
All reactions