Skip to content

Commit 97db561

Browse files
committed
Abstract authentication flow into new interface
1 parent 24a1133 commit 97db561

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

Diff for: README.md

+14
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,20 @@ credentials = CredentialsData(username=username, password=password, machine=conj
9999
credentials_provider = SimpleCredentialsProvider()
100100
credentials_provider.save(credentials)
101101
del credentials
102+
103+
```
104+
105+
#### Create authentication strategy
106+
107+
The client also uses an authentication strategy in order to authenticate to conjur. This approach allows us to implement different authentication strategies
108+
(e.g. `authn`, `authn-ldap`, `authn-k8s`) and to keep the authentication logic separate from the client implementation.
109+
110+
We provide the `AuthnAuthenticationStrategy` for the default Conjur authenticator. Example use:
111+
112+
```python
113+
114+
authn_provider = AuthnAuthenticationStrategy(credentials_provider)
115+
102116
```
103117

104118
#### Create authentication strategy

0 commit comments

Comments
 (0)