vuex-oidc | Vuejs wrapper for open id authentication | State Container library
kandi X-RAY | vuex-oidc Summary
kandi X-RAY | vuex-oidc Summary
Vuejs (with vuex) wrapper for open id authentication
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Creates a new CustomEvent
vuex-oidc Key Features
vuex-oidc Examples and Code Snippets
Community Discussions
Trending Discussions on vuex-oidc
QUESTION
On my app I have installed Vuex-oidc package to implement the authentication using the endpoints that I have got from the backend, and everything is working well on my machine, but I got the request to modify the oidc settings because right now the auth is working only from locale, and is not working from the development server, so I was requested to move these settings from my config/oidc.js file to the Nuxt "runtime".
Here is my config/oidc.js file:
...ANSWER
Answered 2021-Nov-08 at 13:36Do you have these settings
QUESTION
- We are trying to implement OIDC for user onboarding from our main platform to our secondary platform
- While calling AutomaticSilentRenew function it leaves the following error:
- Is there anything wrong here (PFA)
OIDC config Object:
VUE_APP_OIDC_CONFIG={"authority": "https://auth.mainPlatform.com", "clientId": "", "redirectUri": "http://localhost:8080/oidc-callback", "popupRedirectUri": "http://localhost:8080/oidc-popup-callback", "responseType": "id_token token", "scope": "openid email", "automaticSilentRenew": true, "automaticSilentSignin": true, "silentRedirectUri": "http://localhost:8080/silent-renew-oidc.html"}
Error:
{context: "authenticateOidcSilent", error: "login_required"} App.vue?234e:38 I am listening to the oidc error event in vuex-oidc context: "authenticateOidcSilent" error: "login_required"
ANSWER
Answered 2020-Aug-18 at 11:48That's an absolutely standard part of the silent renewal flow and can happen for 2 reasons:
- When the Authorization Server Session Cookie expires
- If a browser drops the AS session cookie - eg Safari is likely to do this in 2020
The usual action when you get a login_required error code is to redirect the user to sign in again.
TROUBLESHOOTING
If this is happening on every token renewal request, I would debug via a tool such as Fiddler to see if the cookie is being sent. Your problem might be caused by recent browser restrictions on cross domain cookies.
For something to compare against, see my Silent Token Renewal blog post.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install vuex-oidc
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page