-
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? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
Hi @dr4kk4r , |
Beta Was this translation helpful? Give feedback.
-
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 |
Beta Was this translation helpful? Give feedback.
-
@dr4kk4r This feature to use access token is now enabled by @anancarv on the latest version. |
Beta Was this translation helpful? Give feedback.
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
cm
if 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-Api
header, or in theAuthorization: Bearer <token>
header.Generating a Reference token can be done with the API by passing the
include_reference_token
parameter, in the Administration > Access tokens screen by checking the "Create Reference Token" checkbo…