Java Code Examples for org.wso2.carbon.identity.application.common.model.Property#setDisplayOrder()

The following examples show how to use org.wso2.carbon.identity.application.common.model.Property#setDisplayOrder() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: YahooOpenIDAuthenticator.java    From carbon-identity with Apache License 2.0 6 votes vote down vote up
/**
 * Get Configuration Properties
 *
 * @return
 */
@Override
public List<Property> getConfigurationProperties() {

    List<Property> configProperties = new ArrayList<Property>();

    Property oauthEndpoint = new Property();
    oauthEndpoint.setDisplayName("Yahoo Authentication Endpoint");
    oauthEndpoint.setName(YahooOpenIDAuthenticatorConstants.YAHOO_AUTHZ_URL);
    oauthEndpoint.setValue(IdentityApplicationConstants.YAHOO_AUTHZ_URL);
    oauthEndpoint.setDescription("Enter value corresponding to yahoo oauth endpoint.");
    oauthEndpoint.setDisplayOrder(1);
    configProperties.add(oauthEndpoint);

    return configProperties;
}
 
Example 2
Source File: YahooOAuth2Authenticator.java    From carbon-identity with Apache License 2.0 5 votes vote down vote up
/**
 * Get configuration properties.
 *
 * @return Properties list.
 */
@Override
public List<Property> getConfigurationProperties() {

    List<Property> configProperties = new ArrayList<>();

    Property clientId = new Property();
    clientId.setName(OIDCAuthenticatorConstants.CLIENT_ID);
    clientId.setDisplayName("Client Id");
    clientId.setRequired(true);
    clientId.setDescription("Enter Yahoo IDP client identifier value");
    clientId.setDisplayOrder(1);
    configProperties.add(clientId);

    Property clientSecret = new Property();
    clientSecret.setName(OIDCAuthenticatorConstants.CLIENT_SECRET);
    clientSecret.setDisplayName("Client Secret");
    clientSecret.setRequired(true);
    clientSecret.setConfidential(true);
    clientSecret.setDescription("Enter Yahoo IDP client secret value");
    clientSecret.setDisplayOrder(2);
    configProperties.add(clientSecret);

    Property callbackUrl = new Property();
    callbackUrl.setDisplayName("Callback URL");
    callbackUrl.setName(IdentityApplicationConstants.OAuth2.CALLBACK_URL);
    callbackUrl.setDescription("Enter value corresponding to callback url.");
    callbackUrl.setDisplayOrder(3);
    configProperties.add(callbackUrl);

    return configProperties;
}
 
Example 3
Source File: GoogleOAuth2Authenticator.java    From carbon-identity with Apache License 2.0 5 votes vote down vote up
/**
 * Get Configuration Properties
 *
 * @return
 */
@Override
public List<Property> getConfigurationProperties() {

    List<Property> configProperties = new ArrayList<Property>();

    Property clientId = new Property();
    clientId.setName(OIDCAuthenticatorConstants.CLIENT_ID);
    clientId.setDisplayName("Client Id");
    clientId.setRequired(true);
    clientId.setDescription("Enter Google IDP client identifier value");
    clientId.setDisplayOrder(1);
    configProperties.add(clientId);

    Property clientSecret = new Property();
    clientSecret.setName(OIDCAuthenticatorConstants.CLIENT_SECRET);
    clientSecret.setDisplayName("Client Secret");
    clientSecret.setRequired(true);
    clientSecret.setConfidential(true);
    clientSecret.setDescription("Enter Google IDP client secret value");
    clientSecret.setDisplayOrder(2);
    configProperties.add(clientSecret);

    Property callbackUrl = new Property();
    callbackUrl.setDisplayName("Callback Url");
    callbackUrl.setName(IdentityApplicationConstants.OAuth2.CALLBACK_URL);
    callbackUrl.setDescription("Enter value corresponding to callback url.");
    callbackUrl.setDisplayOrder(3);
    configProperties.add(callbackUrl);

    Property scope = new Property();
    scope.setDisplayName("Additional Query Parameters");
    scope.setName("AdditionalQueryParameters");
    scope.setValue("scope=openid email profile");
    scope.setDescription("Additional query parameters. e.g: paramName1=value1");
    scope.setDisplayOrder(4);
    configProperties.add(scope);

    return configProperties;
}
 
Example 4
Source File: WindowsLiveOAuth2Authenticator.java    From carbon-identity with Apache License 2.0 5 votes vote down vote up
@Override
public List<Property> getConfigurationProperties() {

    List<Property> configProperties = new ArrayList<Property>();

    Property callbackUrl = new Property();
    callbackUrl.setDisplayName("Callback Url");
    callbackUrl.setName(IdentityApplicationConstants.OAuth2.CALLBACK_URL);
    callbackUrl.setDescription("Enter value corresponding to callback url.");
    callbackUrl.setDisplayOrder(3);
    configProperties.add(callbackUrl);

    Property clientId = new Property();
    clientId.setName(OIDCAuthenticatorConstants.CLIENT_ID);
    clientId.setDisplayName("Client Id");
    clientId.setRequired(true);
    clientId.setDescription("Enter Microsoft Live client identifier value");
    clientId.setDisplayOrder(1);
    configProperties.add(clientId);

    Property clientSecret = new Property();
    clientSecret.setName(OIDCAuthenticatorConstants.CLIENT_SECRET);
    clientSecret.setDisplayName("Client Secret");
    clientSecret.setRequired(true);
    clientSecret.setConfidential(true);
    clientSecret.setDescription("Enter Microsoft Live client secret value");
    clientSecret.setDisplayOrder(2);
    configProperties.add(clientSecret);

    return configProperties;
}