|
From what I can tell currently Artifactory class only allows for authorization via user name and password/api key. How can I use access token instead? |
Replies: 3 comments 2 replies
|
Hi @dr4kk4r , |
|
As @anancarv said, PyArtifactory only supports the basic auth scheme, which doesn't work with an access token (I guess you mean the "Identity tokens" as JFrog calls them, or "Scoped tokens" in another screen). Generating a Reference token can be done with the API by passing the |
As @anancarv said, PyArtifactory only supports the basic auth scheme, which doesn't work with an access token (I guess you mean the "Identity tokens" as JFrog calls them, or "Scoped tokens" in another screen).
However, if you generate a "Reference token" (starting with
cmif I trust my testing), which isn't an Identity token (a JWT) but an opaque reference to an Identity token, it will work everywhere: in basic auth, in theX-JFrog-Art-Apiheader, or in theAuthorization: Bearer <token>header.Generating a Reference token can be done with the API by passing the
include_reference_tokenparameter, in the Administration > Access tokens screen by checking the "Create Reference Token" checkbo…