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
73
74
+
#### Basic authentication
72
75
```python
73
76
from pyartifactory import Artifactory
74
77
art = Artifactory(url="ARTIFACTORY_URL", auth=('USERNAME','PASSWORD_OR_API_KEY'), api_version=1)
75
78
```
76
79
80
+
#### Authentication with access token
81
+
```python
82
+
from pyartifactory import Artifactory
83
+
art = Artifactory(url="ARTIFACTORY_URL", access_token="your-access-token")
84
+
```
85
+
86
+
Note:
87
+
* If you set both `access_token` and `auth`, the access_token authentication will be chosen
88
+
* If you do not set any authentication method, API calls will be done without authentication (anonymous)
89
+
77
90
### SSL Cert Verification Options
78
91
79
92
Specify a local cert to use as client side certificate
0 commit comments