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
By initial motivation (https://medium.com/@jkroepke/openvpn-sso-via-oauth2-ab2583ee8477), this manager should make using client certificates for openvpn authentication unneeded. Actually, openvpn/openvpn-auth-oauth2 works fine with verify-client-cert none, but the status file will state "UNDEF" as user, and consequently ipp.txt won't help to re-use IP addresses when the same user reconnects.
Current, client certificates and verify-client-cert required/optional is necessary to obtain the username in openvpn.
Proposed Solution
openvpn-auth-oauth2 should report the username back to openvpn, so that openvpn-status and ipp.txt can work as expected.
Preferrably, the username should be taken from the OAuth2 claims. For this, I propose a setting oauth2.userclaim, to specify where to take the username from (might be one of e.g. preferred_username, email, name).
Additional information
No response
Acceptance Criteria
No response
The text was updated successfully, but these errors were encountered:
Once implement in OpenVPN server, I will implement it soon. You may can leave a comment there.
There is a command in OpenVPN called auth-token-user, which is only used in context of auth-token. While its implemented, auth-token is only used, if the initial sessions contains username/password and the value of auth-token-user is not used on ipp.txt file.
Problem Statement
By initial motivation (https://medium.com/@jkroepke/openvpn-sso-via-oauth2-ab2583ee8477), this manager should make using client certificates for openvpn authentication unneeded. Actually, openvpn/openvpn-auth-oauth2 works fine with
verify-client-cert none
, but the status file will state "UNDEF" as user, and consequently ipp.txt won't help to re-use IP addresses when the same user reconnects.Current, client certificates and
verify-client-cert required/optional
is necessary to obtain the username in openvpn.Proposed Solution
openvpn-auth-oauth2 should report the username back to openvpn, so that openvpn-status and ipp.txt can work as expected.
Preferrably, the username should be taken from the OAuth2 claims. For this, I propose a setting
oauth2.userclaim
, to specify where to take the username from (might be one of e.g. preferred_username, email, name).Additional information
No response
Acceptance Criteria
No response
The text was updated successfully, but these errors were encountered: