# How to Manage OpenID Providers
This document provides a step-by-step guide on how to add or remove OpenID providers in Segura®.
Access Path
- In Segura®, on the navigation bar, hover over the Product Menu and select Settings.
- In the side menu, select Authentication > OpenID > Providers.
For OpenID Connect integration to work properly with Segura®, make sure the following scopes are enabled in the identity provider (IdP):
openid
email
profile
These scopes are essential for Segura® to correctly identify and authenticate the user. In more restrictive environments, you may need to explicitly request these scopes from the team responsible for SSO management.
Add Provider
Be aware that each provider may require specific information. Whenever more details are needed, check the provider's configuration.
-
On the Providers report page, click the Add button.
-
In the Provider Registration window:
- Type: from the dropdown menu, select the type of OpenID provider to use.
- Active: select the OpenID provider status at creation. By default, it is always set to Yes.
- Environment: select the environment where the OpenID provider will be used.
- Provider name: enter the provider's name.
- Icon: upload the provider's icon.
- Client ID: enter the
client ID
for connection. This ID is provided by the OpenID provider when registering a new application. - Client secret: enter the secret from the OpenID authentication provider. This secret is provided by the OpenID provider when registering a new application.
- Preferred username: indicate the preferred username.
- Domain or public IP for redirect URL: enter the domain or public IP address of Segura®. It is used by the OpenID provider to redirect the user back to your application after authentication.
- Redirect URL: enter the specific endpoint in your application to which the OpenID provider will redirect the user after authentication.
- Comments: field to add notes or additional observations about the configuration.
-
In the Endpoint Configuration section:
- OpenID endpoint configuration: enter the endpoint that configures OpenID. This is the base URL provided by the OpenID provider. This URL describes the endpoints required for OpenID interactions. This configuration generally automates endpoint discovery.
InfoThis field is required only if the endpoint URLs fields are not filled in. The user must fill in at least one of the two available fields: OpenID endpoint configuration or the other endpoint URLs. If the other endpoint URLs field is not filled in, it is essential to fill in the OpenID endpoint configuration field to ensure correct service configuration.
-
In the Other Endpoint URLs section:
- Authorization endpoint: enter the URL provided by the OpenID provider, used by the application to send authorization requests.
- Token endpoint: enter the URL provided by the OpenID provider, where the application sends requests to exchange the authorization code for an access token.
- Userinfo endpoint: enter the URL provided by the OpenID provider, through which the application can request profile information of the authenticated user using the access token.
-
In the Additional Provider Settings section:
- JWK endpoint (required if not available in the OpenID endpoint): enter the endpoint where the application should obtain the OpenID provider's public keys to validate the access token signature. This field is required if these keys are not available in the OpenID configuration endpoint.
- Additional issuers (comma-separated): enter the list of additional issuers accepted by the application. Useful when the application needs to support multiple OpenID providers.
-
In the Device Authorization Configuration section:
- Enable device authorization: enables authorization through a specific device.
- Username for device authorization: username used for device authentication.
- Password for device authorization: password for the username used for device authentication.
- Token endpoint URL: URL of the endpoint to generate the token.
- Status verification endpoint URL: URL to check the token status.
- User info endpoint URL: URL to check the user.
-
Click Save.
Update Provider
To update the information of a previously registered provider, follow the steps below:
If the client_secret
is not changed, the current information will be kept.
- In Segura®, on the navigation bar, hover over the Product Menu and select Settings.
- In the side menu, select Authentication > OpenID > Providers.
- In the Providers report, find the record you want to update, click the Actions button, and select Edit.
- Update the necessary information and click Save.
View Provider Details
To view provider details, follow the steps below:
- In the Providers report, find the record you want to update, click the Actions button, and select Provider Details.
- The Provider Registration window will open in view mode.
- You will be able to view various details of the registered provider in this window, such as: OpenID endpoint configuration, Authorization endpoint, Userinfo endpoint, Redirect URL, Token endpoint, and Comments.
- To view one detail at a time, click the eye icon next to each detail's text field.
Delete a Provider
- In the Providers report, find the record you want to update, click the Actions button, and select Deactivate.
- In the confirmation modal, click Yes to deactivate the provider.