Skip to content
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

Autofill credentials in the SAML window from ini file #259

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

nitrogl
Copy link

@nitrogl nitrogl commented Oct 14, 2023

This allows one to autofill credentials in the SAML window from ini file.

The ini file is "~/.gpclient-credentials"; the gateway/portal must match the section in the ini file (e.g., [vpn.domain.com]).

Limitation: the SAML login page must have "username" and "password" fields to be filled correctly. The fields are hardcoded, due to the inih inability to surf through sections and fields. Please, consider moving to other c++ ini readers, e.g., https://github.com/nitrogl/cinir [disclaimer: I developed it].

Mode of the credential file should be set the to 600 (similarly to .git-credentials, .ssh/id_rsa, ...).

@nitrogl
Copy link
Author

nitrogl commented Nov 21, 2023

This should also "fix" issue #185

@yuezk yuezk force-pushed the main branch 15 times, most recently from c39bf9c to 9dea81b Compare March 10, 2024 08:31
@yuezk yuezk force-pushed the main branch 4 times, most recently from e69de98 to 187ca77 Compare March 29, 2024 02:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant