You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since Artifactory 6.6.0 there is version 2 of the REST API for permission management, in case you have that version or higher, you need to pass api_version=2 to the constructor when you instantiate the class.
71
74
75
+
#### Basic authentication
72
76
```python
73
77
from pyartifactory import Artifactory
74
78
art = Artifactory(url="ARTIFACTORY_URL", auth=('USERNAME','PASSWORD_OR_API_KEY'), api_version=1)
75
79
```
76
80
81
+
#### Authentication with access token
82
+
```python
83
+
from pyartifactory import Artifactory
84
+
art = Artifactory(url="ARTIFACTORY_URL", access_token="your-access-token")
85
+
```
86
+
87
+
#### Anonymous authentication
88
+
```python
89
+
from pyartifactory import Artifactory
90
+
art = Artifactory(url="ARTIFACTORY_URL", anonymous_auth=True)
91
+
```
92
+
77
93
### SSL Cert Verification Options
78
94
79
95
Specify a local cert to use as client side certificate
0 commit comments