Does hammer support RH SSO authentication method ?
In 3.5+ it does, @Marek_Hulan or @ofedoren will have more details.
Here you can find more information: Foreman :: Manual
I just have tried the
hammer -v auth login oauth --two-factor --oidc-token-endpoint … command
(I need to use an http proxy - I don’t know to tell hammer to use a proxy for than in the command line - so I didn’t).
The command issued the error :
“Can’t perform login. Make sure sessions are enabled in hammer configuration file.”
I have added the files to /etc/hammer/cli_config.yml file :
Same error. Not really verbose output.
Any tip please ?
-v flag is not so useful for debugging purposes, could you attach command’s output, but with
Also, in hammer you can specify the server to make calls to either in
~/.hammer/cli.modules.d/foreman.yml config file or specifying
-s <fqdn> option.
As for now, it still seems like wrong config file since hammer can’t fetch
Could you please add this into a different config file? In your case I guess it should land in
/etc/hammer/cli.modules.d/foreman.yml. Also, please be aware that this is YAML formatted file, thus the spaces must follow specifications:
:foreman: :use_sessions: true
EDIT: I should have mentioned this earlier, but when pasting debug output, please verify that no internal/private information is shared for you own good.
Thank you . It worked.
It aks me for a code now :