Skip to content

Commit

Permalink
define constant for scopes
Browse files Browse the repository at this point in the history
  • Loading branch information
Yoshani committed Jul 5, 2023
1 parent 63165a5 commit 1ffe792
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public class IdPManagementUIUtil {
public static final String JWKS_URI = "jwksUri";

private static final String META_DATA_SAML = "meta_data_saml";

private static final String SCOPES = "scopes";
public static final String DEFAULT_AUTH_SEQ = "default_sequence";

public static final String FILTER_STRING = "org.wso2.carbon.idp.mgt.filter";
Expand Down Expand Up @@ -1378,9 +1378,9 @@ private static void buildOpenIDConnectAuthenticationConfiguration(

property = new Property();
property.setName(IdentityApplicationConstants.Authenticator.OIDC.SCOPES);
if (paramMap.get("scopes") != null
&& paramMap.get("scopes").trim().length() > 0) {
property.setValue(paramMap.get("scopes"));
if (paramMap.get(SCOPES) != null
&& paramMap.get(SCOPES).trim().length() > 0) {
property.setValue(paramMap.get(SCOPES));
}
properties[5] = property;

Expand Down

0 comments on commit 1ffe792

Please sign in to comment.