Try OpenEdge Now
skip to main content
Administration
REST Administration : REST Web Application Administration : Managing REST Web applications : SSO support for REST Web applications : Enabling the REST Web application for SSO
 
Enabling the REST Web application for SSO
To enable the REST Web application for SSO:
1. Identify and open the security configuration you applied to your REST Web application.
Your REST Web application's security configuration is based on your performing the instructions in Choosing and applying a security configuration.
2. In the security configuration file, appSecurity-XXX.xml, uncomment the OEClientPrincipalFilter bean code snippet to enable SSO support.
After uncommenting, your OEClientPrincipalFilter bean code snippet must look as shown below:
<!-- The security filter that turns a Spring token into an OpenEdge
ClientPrincipal object -->
<b:bean id="OEClientPrincipalFilter"
class="com.progress.rest.security.OEClientPrincipalFilter" >
<b:property name="enablecp" value="true" />
<b:property name="domain" value=$Application />
<b:property name="roles" value="" />
<b:property name="authz" value="" />
<b:property name="expires" value="600" />
<b:property name="accntinfo" value="" />
<b:property name="" >
<b:map>
<b:entry key="prop-1" value="string1"/>
<b:entry key="prop-2" value="string2"/>
</b:map>
</b:property>
<b:property name="ccid" value="true" />
<b:property name="anonymous" value="true" />
</b:bean>
Optionally, for each of the OEClientPrincipal properties, such as enablecp and domain, you can update the value attribute. To know about the OEClientPrincipal properties, see OEClientPrincipal properties. The following is a sample with updated properties values:
<!-- The security filter that turns a Spring token into an OpenEdge
ClientPrincipal object -->
<b:bean id="OEClientPrincipalFilter"
class="com.progress.rest.security.OEClientPrincipalFilter" >
<b:property name="enablecp" value="false" />
<b:property name="domain" value="sample" />
<b:property name="roles" value="sample" />
<b:property name="authz" value="false" />
<b:property name="expires" value="600" />
<b:property name="accntinfo" value="true" />
<b:property name="properties" >
<b:map>
<b:entry key="prop-1" value="string1"/>
<b:entry key="prop-2" value="string2"/>
</b:map>
</b:property>
<b:property name="ccid" value="true" />
<b:property name="anonymous" value="true" />
</b:bean>
3. Save the security configuration file, appSecurity-XXX.xml.
Note: You must restart the Web server for the above security configuration updates to take effect.