Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.
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>