-
-
Notifications
You must be signed in to change notification settings - Fork 27
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
Missing required parameter: refresh_token #338
Comments
I was a bit confused, why
did not note before. Bit that changed was introduced in 1.22.0 It would be helpful, it you could update to 1.22.0. There are some fixed between both. it may resolved your issue.
openvpn-auth-oauth2 is aware of that issue. That why openvpn-auth-oauth2 always sets |
Apologies, I submitted the issue incorrectly, the installed version is in fact
That should teach me to type things out instead of copying them. |
There are more Could it be possible, that the initial re-auth works, but then the second fails? Maybe there is an regression with #298 where I store the new refresh token after reauthentication, but I didn't check is the refesh token is present. |
We have set no other
A pattern does seem to emerge that, after the initial authentication, the first re-auth succeeds but the second one fails. This is the log from a session I started that follows this pattern (timezone GMT+1). I'm using the
The failed re-auth aligns with this log message for the
At this point it failed silently, I did not get (or notice) a new browser window asking me to log in again. |
Hi @ncgee are you able to test a snapshot version from #341?
NEW: https://github.com/jkroepke/openvpn-auth-oauth2/actions/runs/11644456646/artifacts/2136622418 |
Thanks for the quick responses! We have testing of your updated build planned for tomorrow, I'll let you know our findings. |
Problem Statement
Users are reporting having to reauthenticate more frequently than the configuration would suggest, seemingly randomly as well. The openvpn-auth-oauth2 plugin logs suggest that the problem is a missing refresh token, but it's unclear why this would be.
Current configurations (limited to what seemed most relevant)
openvpn-auth-oauth2 (via
/etc/sysconfig/openvpn-auth-oauth2
):OpenVPN:
The same users that have the missing refresh tokens associated with their sessions will at other times have successfully authenticate with a refresh token, for example the log line for the same user as the other attached log:
We found some indication that Google doesn't always return a refresh token, could this be the cause? Or are we missing some bit of essential configuration?
openvpn-auth-oauth2 logs
Environment
The text was updated successfully, but these errors were encountered: