Enable SSO Auth Fallback Using REST API

Reab April 14, 2021

Hi, 

I've been trying to enable authentication fallback using curl as mentioned Bypass SAML auth

However, PUT request doesn't work. I am getting "405 Method not allowed" I checked the REST API documentation I couldn't find anything related to the authconfig endpoint.

I was able to enable it through the database directly but I want to do it through the API instead. However, the flag is different in the database 

latest version: 

 com.atlassian.plugins.authentication.sso.config.enable-authentication-fallback

as opposed to previously:

com.atlassian.plugins.authentication.samlconfig.allow-saml-override'

 

The response from the GET request to this <BASE_URL>/rest/authconfig/1.0/sso is:

{    
"show-login-form"false,    
"enable-authentication-fallback"false,    
"show-login-form-for-jsm"true,    "last-updated""
}

 

How can enable it through the REST API? 

 

1 answer

1 accepted

Suggest an answer

Log in or Sign up to answer
0 votes
Answer accepted
Reab April 14, 2021

Solved - it should be a PATCH request 

TAGS
AUG Leaders

Atlassian Community Events