@Renév545
Below is an answer from a GenAI-powered tool and not verified.
All generated answers require validation against the provided references.
The scope for an access token is typically defined in the authentication service configuration within Pega. Here’s how you can check and configure it:
-
Access the Authentication Service Configuration:
- Navigate to the ‘Records’ explorer in Pega.
- Go to ‘SysAdmin’ and then ‘Authentication Service’.
- Open the specific authentication service you are using (e.g., OIDC, SAML, etc.).
-
Check the Client Information Section:
- Within the authentication service configuration, locate the ‘Client Information’ section.
- Here, you will find the ‘Scope’ field where you can specify the scopes required for the access token.
-
Verify the Scope in Your Request:
- Ensure that the scope specified in your Postman request or any other client request matches the scope defined in the Pega authentication service.
- If the ‘email’ scope is not explicitly defined in your request but appears in the access token, it might be added by default by the Pega Platform or the identity provider you are using.
-
Adjust the Scope if Necessary:
- If you need to add or remove scopes, you can do so in the ‘Scope’ field in the ‘Client Information’ section of the authentication service configuration.
By following these steps, you should be able to identify and configure the scopes for your access tokens. If the ‘email’ scope is being added automatically, it might be a default setting from your identity provider or a configuration in Pega that includes it by default.
Authenticating to Pega with miniOrange using OIDC protocol
OAuth 2.0 Scope support when Pega acts as the OAuth2 Provider
From external resources:*****
The “email” scope is a standard OIDC scope that is used to request the user’s email address from the identity provider.
Where is the “email” scope configured in Pega?
The “email” scope is not something that the Pega Platform adds by default. Instead, it is configured within the Authentication Service rule in your Pega application. Specifically, you will find this configuration in the OpenID Connect (OIDC) authentication service.
Here’s how you can locate the configuration:
-
In Dev Studio, navigate to the Records Explorer.
-
Expand the Security category and select Authentication Service.
-
Look for the OIDC authentication service that is being used by your application.
-
Open the authentication service rule.
-
On the Provider tab of the authentication service ruleform, you will find a Scope field.
In this Scope field, you will likely see “email” listed, along with other standard OIDC scopes such as openid and profile. The scopes are typically separated by spaces. It is in this field that you can configure which user claims (like email, profile information, etc.) your Pega application requests from the identity provider.
Is this added by the Pega Platform?
No, the Pega Platform does not automatically add the “email” scope. It is explicitly configured in the authentication service by a developer or administrator to enable the application to retrieve the user’s email address from the identity provider. This email address is often used to map the authenticated user to an operator ID in Pega.