-
Notifications
You must be signed in to change notification settings - Fork 214
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
What are the requirements for silent refresh or for Vue in general? #1506
Comments
Here's what I have so far: I have a dedicated route to /oidc-callback which does But silent? No idea. |
Have you seen?:
Also notice, that this library supports an automatic way to do the renewing like described above: Yes the documentation is spartanic, please feel free to provide more documentation to fill the gaps... |
Yes, I, who just stumbled upon this package should write proper elaborate documentation, as opposed to you, who is maintaining this package. |
If the automatic refresh/renew was working this issue wouldn't exist. |
@idc77 I understand you're frustrated, but it's important to remember that contributors are volunteers who work on this in their free time. They don't owe you anything. If you want things to improve, go ahead and fix it. |
On topic: we don't use Vue but auto renew isn't working for us either. After debugging I found out that auto renew isn't working when the token is already expired. The
Edit: ^ this is obviously not going to work, I guess we'll have to implement this on our own as interaction is required when the token is already expired |
I'm also working on a Vue project and had the same question how to add OAuth integration to it. So in fact my solution isn't related to Vue at all, it's generic Javascript. I don't know if it's the best and easiest solution, but it works. Auto-renewal works if the access token expires soon (event |
The documentation, if you can call it that, is very spartan.
For Angular, there's a
src/silent-callback.html
, react is a completely different beast with their wrapped components.For Vue or rather Quasar, which builds upon Vue, there is no info, no example.
What do I need in order to get fully functional optional login with peridoic silent refresh working in Vue?
So far I have
plugins/VueOIDCClient.js
plugins/VueOIDCClient.js
And in
boot/oidc.js (because Quasar uses boot files.
^ the above is of course not complete
What fiels with what contents do I need where?
In the case of Angular, I don't understand where
<script src="./oidc-client-ts.js"></script>
is coming from.
It's not under assets or /src/.
In Vue, do I need to create a separate routed callback component?
The text was updated successfully, but these errors were encountered: