Skip to content

How to create Artifactory instance using only access token? #133

Answered by nymous
dr4kk4r asked this question in Q&A
Discussion options

You must be logged in to vote

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 the X-JFrog-Art-Api header, or in the Authorization: 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…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@anancarv
Comment options

Comment options

You must be logged in to vote
1 reply
@mohan-barathi
Comment options

Answer selected by anancarv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants