-
Notifications
You must be signed in to change notification settings - Fork 5
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
Add authn-local support to the API #131
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One minor comment; otherwise LGTM. Let me know if you want to revise or leave as-is.
lib/conjur/base.rb
Outdated
self.token_born = gettime | ||
def gettime | ||
monotonic_time | ||
end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If the gettime
method is the same in both APIKeyAuthenticator
and LocalAuthenticator
, why not include it in the TokenExpiration module like you did with update_token_born
? Why even have a method for this - you could just replace calls to gettime
with monotonic_time
@izgeri back in your court... |
LGTM |
The authn-local service is now available in both v4 and v5.
This pull request adds
Conjur::API.authenticate_local
, which uses authn-local according to theConjur.configuration.version
setting.Build results : https://jenkins.conjur.net/job/cyberark--conjur-api-ruby/job/authn_local/