-
-
Notifications
You must be signed in to change notification settings - Fork 158
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
SSO login fails: Failed to parse token auth data: missing field username
#372
Comments
Can you try it with the |
If I run it as my normal user, it fails with:
If run as root, it seems fine in terminal but doesn't open a browser:
|
Try the following command
|
that fails the same way as running it as root without |
This is another issue I'm trying to fix in the next update in #366, but it may not related to your initial problem. Has it ever worked before? |
no. This is a new vpn setup I haven't connected to before. |
I was able to work around #366 by racing it with cat and manually opening it in browser. Auth worked until the same error as with integrated browser:
|
and the callback (url decoded) is |
The callback looks valid, it should be a bug in the processing logic, I will try to fix it soon. |
Hi @uumas I'm trying to fix this issue. But your callback URL looks good and the existing parsing logic and unit test case are shown below. Both are straightforward and UT is pass. I assume there could be some special chars in the token field. Would you mind sending me the full callback URL to test it? Thanks. Parsing code: GlobalProtect-openconnect/crates/gpapi/src/auth.rs Lines 65 to 74 in a25b5cb
Unit test: GlobalProtect-openconnect/crates/gpapi/src/auth.rs Lines 135 to 143 in a25b5cb
|
I will get that in a moment, but if it might be special characters, maybe it's a dash ( |
Where can I send the full url (if you still need it)? |
Hi @uumas I published a snapshot version, which will log the callback URL when it fails to parse it. Can you install the snapshot version from here and capture the logs? You can send the logs to me privately. My email is [email protected] |
I emailed you |
Thanks, the logs are helpful, I will try to fix it. |
Hi @uumas can you help re-install the snapshot version from https://github.com/yuezk/GlobalProtect-openconnect/releases/tag/snapshot to see if it works for you now? Thanks. |
it works! |
Good. I will release a new version soon. |
Released in 2.3.2. Closing |
Describe the bug
Trying to login to the vpn using
gpclient connect portal.domain.tld
. It opens a browser window, I log in but the browser window just returns to the login screen.Expected behavior
It should authenticate successfully and connect
Screenshots
Logs
Environment:
The text was updated successfully, but these errors were encountered: