Are there any ways to setup settings for SAML authentication plugin (plugin already exists / install automatically)?
Or only manually via Web-console? ( https://docs.sonarqube.org/display/PLUG/SAML+Authentication+Plugin ). Other tricky ways?
Can I set these keys in conf/sonar.properties file? Is it correct?
Checkout this topic I found by searching โsonar.properties SAMLโ on this forum
Thanks for your reply, but i have more questions:
I use curl to set up this setting:
# Auth and Get cookies curl -c /tmp/cookies -X POST -i 'http://sonarqube.localhost/api/authentication/login' --data 'login=admin&password=admin' # Set up parametrs: curl -b /tmp/cookies -X POST -i 'http://sonarqube.localhost/api/settings/set' --data 'key=sonar.auth.saml.enabled&value=true'
But there are no changes occur
I hooked an HTTP packet:
POST /api/settings/set HTTP/1.1
Host: sonarqube.localhost
User-Agent: curl/7.58.0
Accept: /
Cookie: JWT-SESSION=eyJhbGciOiJIUzI1NiJ9.eyJqdGkiOiJBV2xYajlpQUozOUVOcFdTQk5YdCIsInN1YiI6ImFkbWluIiwiaWF0IjoxNTUxOTUyMjM4LCJleHAiOjE1NTIyMTE0MzgsImxhc3RSZWZyZXNoVGltZSI6MTU1MTk1MjIzODcyMCwieHNyZlRva2VuIjoibmk0MW0zdDZndWxmcTNxcms3MzVwNXI5YzkifQ.yCA83d9Kng8u8beDz-z4Izd-m1Q1RdzuEEovAbdJUgc; XSRF-TOKEN=ni41m3t6gulfq3qrk735p5r9c9
Content-Length: 38
Content-Type: application/x-www-form-urlencodedkey=sonar.auth.saml.enabled&value=true
It is similar to the packet from browser, exluding some http headers.
What do I wrong?