Reuse Jira login session in confluence

I am writing a groovy script which will login to a confluence instance and create pages. Can I login to confluence using the same session of Jira i.e. I do not want to hardcode passwords in any script.

2 answers

You might take a look at crowd.

This provides Single Sign On for the Atlassian stack and that might help you out.

Best regards,

Thanks for replying

Both the Jira and conflunce are using crowd but I am using the remote API from my groovy script to connect to confluence and create a page.

Something like this

def locator = new ConfluenceSoapServiceServiceLocator()

def service = locator.getConfluenceserviceV2(new URL("http://localhost:8090/rpc/soap-axis/confluenceservice-v2"))

def token = service.login("user", "password")

I dont want to use the login method but want to use , say the jira token instead

That's over my head, I can't really help you there.


you can login only if you use something like single sign on

Can I use SSO in a groovy script

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,968 views 12 18
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot