I want to use Web API with a user created by SAML authentication

I don’t know how to use Web API with a user created with SAML authentication.
(SonarQube version: Developer Edition version 8.9.2 (build 46101))

The created user does not have a login password, so I created a user token and entered the command as follows.

curl -u my_token htts://host:9000/api/users/search

Then you will be asked for a password, but I don’t know what to do.
please tell me.

Thank you in advance.

Hi,

You need a colon after the token as stated in the documentation. :wink: Example:

# note that the colon after the token is required in curl to set an empty password 
curl -u THIS_IS_MY_TOKEN: htts://host:9000/api/users/search

Hi @felipebz

Thank you for your reply!
Thanks to you, I was able to solve it.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.