How to access Jenkins using basic authentication

115 views
Skip to first unread message

Samith Dassanayake

unread,
May 17, 2015, 12:48:31 AM5/17/15
to jenkin...@googlegroups.com
Hi all,
I want to access jenkins using basic authentication. I have started the jenkins as mentioned in [1] with user name "user" and password as "password" and choosing Delegate to servlet container for security realm and Legacy mode for authorization strategy. 
But when I try to access job configuration of a job(my_test_job) using curl command as in [2](using same credentials that which used in the server start up as in [1]), it wan't authorize and I can see following log [3] in the jenkins.
What am I missing here? How can I configure jenkins to access using simple basic authentication? Appreciate your help.. 

Note: I have enabled https and and changed the port to 9000 and my jenkins version is 1.609

[2] curl -X GET  --user user:password --insecure https:///localhost:9000/job/my_test_job/config.xml
[3] "While serving https://localhost:9000/job/my_test_job/config.xml: hudson.security.AccessDeniedException2: anonymous is missing the Job/ExtendedRead permission."

Regards,
Samith
Reply all
Reply to author
Forward
Message has been deleted
0 new messages