In this article, we will discuss the way to resolve the issue related to SAML users not being able to generate the tokens for the repositories using the SetMeUp option from the User profile page.
Issue:
When SAML users login and try generating the token by navigating to their User profile and then SetMeUp -> Select any repository -> Click on Generate Token & Create Instructions as below.
The option “Generate Token & Create Instructions” just blinks and does not throw any error or output from the Artifactory UI. Also we do not see any token get created along with the repository instructions. If we open the Developer console of the browser and click on the token creation option, we will notice a 400 Bad response for that respective request as above.
Resolution:
The above behavior occurs when we did not check the “Allow created users access to profile page” option in the SAML SSO configuration in Artifactory. This option should be enabled in order so that the SAML users will have access to their profile page and will be able to perform actions such as generating an API key and Tokens in Artifactory UI.
Now we should be able to generate the token as expected with the corresponding repository instructions as below.