cyberark / conjur-api-python

Python client for the CyberArk Conjur API
Apache License 2.0
8 stars 3 forks source link

Abstract authentication flow into new interface #20

Closed szh closed 2 years ago

szh commented 2 years ago

Note: To see implementation in the CLI, see https://github.com/cyberark/cyberark-conjur-cli/pull/410

Desired Outcome

Create a new AuthenticationStrategy interface that will allow us to abstract the authentication flow. The interface should take a CredentialProvider and Conjur account as inputs, as well as any other arguments that are needed to authenticate, such as service_id for LDAP. The interface should have a authenticate method which returns a Conjur auth token. All details of authentication should be handled by the AuthenticationStrategy interface. Include unit tests and update existing unit and integration tests.

Implemented Changes

Connected Issue/Story

CyberArk internal issue link: ONYX-20429

Changelog

Test coverage

Documentation

Behavior

Security