How to implement Single sign-on (SSO) / OpenID Connect SSO |
Follow these steps to add OpenID Connect SSO to a Genero Web application.
This task must be performed in the .xcf application configuration file for the Genera Application Server.
Add the DELEGATE tag to all Genero Web Client applications requiring Single sign-on (SSO), plus the following 3 mandatory parameters :
<?xml version="1.0"?> <APPLICATION Parent="defaultgwc" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://www.4js.com/ns/gas/2.50/cfextwa.xsd"> <EXECUTION> <PATH>$(res.path.qa)/applications/myapp</PATH> <MODULE>App.42r</MODULE> <DELEGATE service="services/OpenIDConnectServiceProvider" > <IDP>https://accounts.google.com</IDP> <SCOPE>email</SCOPE> <CLIENT_PUBLIC_ID>XXXXXXXX.apps.googleusercontent.com</CLIENT_PUBLIC_ID> <CLIENT_SECRET_ID>XXXXXX-XXXXXX</CLIENT_SECRET_ID> </DELEGATE> </EXECUTION> </APPLICATION>
With the above configuration and default GAS configuration, the delegation will point to the $FGLDIR/web_utilities/services/OpenIDConnectServiceProvider.xcf file.
For more information about the DELEGATE configuration element, see DELEGATE.