Retrieve registration endpoint

Retrieve the OpenID Connect/OAuth2 identity provider registration endpoint URL in your Genero application.

The Genero OpenIDConnect service creates the environment variable OIDC_REGISTRATION_ENDPOINT if the identity provider has provided a registration end point.

This environment variable is available after the user has been successfully authenticated, and can be retrieved in the application via fgl_getenv(). For example, you might want to use the environment variable to connect to an identity provider in order to register or unregister an application.

To check if the identity provider has provided the registration endpoint, you can execute the fglrun ImportOAuth --show command with the URL of the identity provider. For more details, go to Show IdP metadata.

To retrieve the registration endpoint, add this code to your Genero application:
LET regUrl = fgl_getenv("OIDC_REGISTRATION_ENDPOINT")