EducationSoftwareStrategy.com
StrategyCommunity

Knowledge Base

Product

Community

Knowledge Base

TopicsBrowse ArticlesDeveloper Zone

Product

Download SoftwareProduct DocumentationSecurity Hub

Education

Tutorial VideosSolution GalleryEducation courses

Community

GuidelinesGrandmastersEvents
x_social-icon_white.svglinkedin_social-icon_white.svg
Strategy logoCommunity

© Strategy Inc. All Rights Reserved.

LegalTerms of UsePrivacy Policy
  1. Home
  2. Topics

KB485016: Additional steps to setup Library Admin page authentication when SAML authentication is enabled


Sumit Bansal

Quality Engineer, Senior • Strategy


This article outlines the additional steps required in 2021 Update 1 to setup the authentication of the Library Admin pages when SAML authentication is enabled.

Note: This article is specific to 2021 Update 1.
From 2021 Update 2, the Library admin pages support basic and SAML authentication when only SAML authentication is enabled. The admin pages authentication is governed by the auth.admin.authMethod parameter in the WEB-INF/classes/config/configOverride.properties file. Refer to Library Admin Authentication for details.

Description

You can protect the Library Admin pages using SAML admin groups or basic authentication. 

Protect Library Admin pages using SAML admin groups

  1. Locate 
    web.xml
     in the
    WEB-INF
    folder of the Strategy Library installation directory and open it for editing.
  2. Disable basic authentication for the Admin pages by surrounding the constraints with
    <!--
    and
    -->
    tags. Make sure there are no sub comments in the text, as this may produce an error. If you decide to change to another authentication mode besides SAML in the future, you can reverse the changes done in this step.

    Add comments around the following <security-constraint> sections: 
    
    <!-- IMPORTANT NOTICE: UNCOMMENT CONSTRAINTS WHEN SWITCHING TO ANY NON-SAML  AUTHENTICATION MODE -->
      <security-constraint>	
        <web-resource-collection>	
          <web-resource-name>samlConfig</web-resource-name>	
          <url-pattern>/saml/config/*</url-pattern>	
        </web-resource-collection>	
        <auth-constraint>	
          <role-name>admin</role-name>	
        </auth-constraint>	
        <user-data-constraint>	
          <transport-guarantee>NONE</transport-guarantee>	
        </user-data-constraint>	
      </security-constraint>
    	<!-- IMPORTANT NOTICE: END OF SECTION -->
    	<!-- End SAML Config GUI -->

     
    
    <!-- IMPORTANT NOTICE: UNCOMMENT CONSTRAINTS WHEN SWITCHING TO ANY NON-SAML  AUTHENTICATION MODE -->
    	<security-constraint>	
    		<web-resource-collection>	
    			<web-resource-name>consume-web admin / control panel</web-resource-name>	
    			<url-pattern>/admin</url-pattern>	
    			<url-pattern>/admin/*</url-pattern>	
    		</web-resource-collection>	
    		<auth-constraint>	
    			<role-name>admin</role-name>	
    		</auth-constraint>	
    		<user-data-constraint>	
    			<transport-guarantee>NONE</transport-guarantee> <!-- Change to "CONFIDENTIAL" to allow https only access -->
    		</user-data-constraint>	
    	</security-constraint>
    	<!-- IMPORTANT NOTICE: END OF SECTION -->
    

     
    
    	<!-- IMPORTANT NOTICE: UNCOMMENT CONSTRAINTS WHEN SWITCHING TO ANY NON-SAML  AUTHENTICATION MODE -->
    	<security-constraint>	
    		<web-resource-collection>	
    			<web-resource-name>Admin APIs</web-resource-name>	
    			<url-pattern>/api/admin/*</url-pattern>	
    			<url-pattern>/api/auth/admin/login</url-pattern>	
    		</web-resource-collection>	
    		<auth-constraint>	
    			<role-name>admin</role-name>	
    		</auth-constraint>	
    		<user-data-constraint>	
    			<transport-guarantee>NONE</transport-guarantee> <!-- Change to "CONFIDENTIAL" to allow https only access -->
    		</user-data-constraint>	
    	</security-constraint>
    	<!-- IMPORTANT NOTICE: END OF SECTION -->	
    

  3. Save your changes and restart the Web server.

Protect Library Admin pages using basic authentication

  • Locate
    MainConfig.xml
     in
    StrategyLibrary_Deployment_Folder/WEB-INF/classes/auth/custom
     and open it for editing.
  • Add the following two lines nebeath the <list> tag:
    
    <value>/admin/**</value>
    <value>/api/admin/**</value>
    

ka0PW0000000xJRYAY_0EM4W0000027jjn.jpeg
  • Save your changes and restart the Web server.
  • Open a Library Admin page in a private window and verify it is protected by basic authentication.

Note: The

StrategyLibrary/saml/config/open
page is protected by both basic and SAML authentication.


Comment

0 comments

Details

Knowledge Article

Published:

April 29, 2021

Last Updated:

February 26, 2024