Closed saidfarah closed 1 day ago
please double check, if the file does not have a final newline.
Works now,
Used this to confirm the newline
tail -c1 oauth2.client.secret | od -An -t x1
which returned 0a that confirmed the newline & removed it using this
truncate -s -1 oauth2.client.secret
Thanks.
Current Behavior
Doesn't Work (Secret referenced as file) When connected it prints "Access Denied"
File permission for oauth2.client.secret
-rw-r--r-- root openvpn-auth-oauth2 oauth2.client.secret
Works: (Secret passed as plain-text) When connected it prints "Access Granted"
Expected Behavior
Secret file should be read and when connected through OpenVPN Connect, it should grant Access.
For reference, I'm also reading the secret file for openvpn.password like this
This file is in the same directory, with the same user and group ownership and the same file permissions.
-rw-r--r-- 1 root openvpn-auth-oauth2 oauth2.client.secret
-rw-r--r-- 1 root openvpn-auth-oauth2 openvpn.password
Steps To Reproduce
No response
Environment
openvpn-auth-oauth2 logs
openvpn server logs
Anything else?
No response