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

Replace SSL Prompt with Config Entry? #6

Open
itrecommind opened this issue Jan 30, 2015 · 1 comment
Open

Replace SSL Prompt with Config Entry? #6

itrecommind opened this issue Jan 30, 2015 · 1 comment

Comments

@itrecommind
Copy link

@traylenator
I really like the plugin, works very well. I wondered if you were open to a suggestion.

Instead of the prompt for user/password I just added the two values into the settings hash and placed this into the client.cfg. Which eliminated the authenticate_user function. So something like this:
In foreman.rb adding something like:
:login => Config.instance.pluginconf["foreman.login"],
:password => Config.instance.pluginconf["foreman.password"],

    req.basic_auth SETTINGS[:login], SETTINGS[:password]

and then adding something like so into the client.cfg

plugin.foreman.login = blah
plugin.foreman.password = blah

@traylenator
Copy link
Contributor

I think if this was a possible configuration then this would be fine. We'd like to keep the prompt as an option however.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants