lib/conjur/authn.rb in conjur-cli-2.1.6 vs lib/conjur/authn.rb in conjur-cli-2.1.7
- old
+ new
@@ -7,9 +7,13 @@
def login(options = {})
delete_credentials
get_credentials(options)
end
+ def authenticate(options = {})
+ Conjur::API.authenticate(*get_credentials(options))
+ end
+
def delete_credentials
netrc.delete host
netrc.save
end