Is it possible to change Saml configurations via script?

Hello,

we use SAML 2.0 Single Sign-On for Confluence (bitium) with Confluence 5.10.8.
Is it possible to change Saml configurations via script, CLI or Rest API on confluence backend server? We want for example enable or disable the option "Force SSO login" .
Thanks
Vimalavong

2 answers

2 accepted

Hi @bvimala

I guess the setting would either reside in the database or in a file on the server, so my guess is that this is possible to script. 

 

-Lars 

Hi @Lars Olav Velle,
I also suspected that. But I need the info as I can access it.
Maybe someone has already done that.

 

Unfortunately I can't find the settings in the database and also in files.
Where are the settings written?

@bvimala 

It took me about two minutes to find the settings in the database. Here is what I did:

Installed the add-on. 

"Configured" it with some values that i could later search for.

I set the UID Attribute to "blablabla"

Dumped the datbase "mysqldump -p jiradb > /tmp/jiradb.sql"

grep blablabla tmp/jiradb.sql

Found the table: propertystring "INSERT INTO `propertystring"

 

Amswer: The settings are found in the database: table propertystring

-Lars

Hi Lars,
the settings were finally found in the database:
at Confluence:
select * from BANANA where bandanakey like '% saml%';
at Jira:
select * from propertyentry where property_key like '% saml%';

Thank you for your help,
Vimalavong

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jul 10, 2018 in Confluence

We want to see the templates you've created in Confluence!

Hi Community, Jessica here from the Confluence Product Marketing team!  July’s community challenge is all about sharing pictures  — and as an extension of our first post on what ...

864 views 23 12
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