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
Is your feature request related to a problem? Please describe.
It's currently not possible to create an access token for a user other than the one that's currently authenticated using the Access service. This is possible through the REST API by setting the "username" field in the HTTP request to a value that's different from the current user. However, the CreateTokenParams struct that the (CreateAccessToken) function takes, does not have a "Username" field to specify a different user.
This functionality is present in the (CreateToken) function of the artifactory service but the latter uses the deprecated API endpoints for token management.
Describe the solution you'd like to see
A username field added to the CreateTokenParams struct and the respective functionality in the functions that create the tokens so we can create tokens for users others than the one that's currently authenticated in the service.
Describe alternatives you've considered
Using the CreateToken function from the artifactory service but this uses the deprecated APIs, meaning the tokens created through this function cannot be used to create tokens using the new API endpoints, which is no good for my use-case.
Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
It's currently not possible to create an access token for a user other than the one that's currently authenticated using the Access service. This is possible through the REST API by setting the "username" field in the HTTP request to a value that's different from the current user. However, the
CreateTokenParams
struct that the (CreateAccessToken) function takes, does not have a "Username" field to specify a different user.jfrog-client-go/access/manager.go
Line 109 in a664ea4
This functionality is present in the (CreateToken) function of the artifactory service but the latter uses the deprecated API endpoints for token management.
jfrog-client-go/artifactory/manager.go
Line 387 in a664ea4
Describe the solution you'd like to see
A username field added to the
CreateTokenParams
struct and the respective functionality in the functions that create the tokens so we can create tokens for users others than the one that's currently authenticated in the service.Describe alternatives you've considered
Using the
CreateToken
function from theartifactory
service but this uses the deprecated APIs, meaning the tokens created through this function cannot be used to create tokens using the new API endpoints, which is no good for my use-case.Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered: