Add OAuth2 SSO to web application
Add OAuth2 SSO to a Genero web application.
This task must be performed in the application configuration file (xcf). The application configuration is slightly different for GAS and JGAS, choose the appropriate step.
Before you begin, you must have an account with an OAuth2 identity provider (such as Facebook or Instagram) that will provide authentication services for you before you can configure applications for Single Sign On.
Ensure the IdP uses the OAuth2 protocol, see Identify the protocol in use by IdP.
Start your browser and enter the application URL. Your browser is redirected to the Identity Provider (IdP), where you must enter your credentials. If your credentials are valid, your browser is redirected back to the application; otherwise an HTML error page is returned.
Once authenticated, the application can then get
user information through environment variables such as OIDC_SUB
.
The
fglrun
process is executed in the context of the GAS operating system user. For
example, when using Apache, the program process will run in the context of the Apache
user.
JGAS
For details of deploying applications with the JGAS, see the Launch OpenID Connect/OAuth2 SSO app in JGAS page in the Genero Application Server for Java User Guide.