Class: HammerCLIForeman::Api::InteractiveBasicAuthExternal
- Inherits:
-
ApipieBindings::Authenticators::BasicAuthExternal
- Object
- ApipieBindings::Authenticators::BasicAuthExternal
- HammerCLIForeman::Api::InteractiveBasicAuthExternal
- Includes:
- BasicAuth
- Defined in:
- lib/hammer_cli_foreman/api/interactive_basic_auth_external.rb
Instance Method Summary collapse
-
#initialize(user, password, foreman_url) ⇒ InteractiveBasicAuthExternal
constructor
A new instance of InteractiveBasicAuthExternal.
- #session_id ⇒ Object
Methods included from BasicAuth
#authenticate, #clear, #error, #password, #set_credentials, #status, #user
Constructor Details
#initialize(user, password, foreman_url) ⇒ InteractiveBasicAuthExternal
Returns a new instance of InteractiveBasicAuthExternal.
8 9 10 |
# File 'lib/hammer_cli_foreman/api/interactive_basic_auth_external.rb', line 8 def initialize(user, password, foreman_url) super(user, password, "#{foreman_url}/api/users/extlogin", HammerCLI::SSLOptions.new.(foreman_url)) end |
Instance Method Details
#session_id ⇒ Object
12 13 14 |
# File 'lib/hammer_cli_foreman/api/interactive_basic_auth_external.rb', line 12 def session_id &.delete_prefix('_session_id=') end |