Ask a question
Limited-Time Offer: 50% off IBM TechXchange Conference 2025
IBM’s largest technical learning event is back October 6-9 in Orlando, FL
Steps to enable Basic HTTP authentication in Software AG Runtime (CTP) :
Add the following in the /profiles/CTP/configuration/tomcat/conf/server.xml file’s Engine element next to <Realm className="org.apache.catalina.realm.LockOutRealm"/> : <Realm className="com.softwareag.platform.catalina.auth.SINRealm" name="Default"/>
/profiles/CTP/configuration/tomcat/conf/server.xml
Engine
<Realm className="org.apache.catalina.realm.LockOutRealm"/>
<Realm className="com.softwareag.platform.catalina.auth.SINRealm" name="Default"/>
Add the following in the /profiles/CTP/configuration/tomcat/conf/web.xml before the closing </web-app> tag:
/profiles/CTP/configuration/tomcat/conf/web.xml
</web-app>
<security-constraint> <web-resource-collection> <!-- Choose your specific URL pattern --> <url-pattern>/services/Version.VersionHttpSoap12Endpoint/</url-pattern> <http-method>POST</http-method> </web-resource-collection> <auth-constraint> <role-name>superadmin</role-name> </auth-constraint> </security-constraint> <login-config> <auth-method>BASIC</auth-method> <realm-name>Default</realm-name> </login-config>