/*
 * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
 *
 * WSO2 Inc. licenses this file to you under the Apache License,
 * Version 2.0 (the "License"); you may not use this file except
 * in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */
package org.wso2.carbon.analytics.idp.client.core.utils.config;

import org.wso2.carbon.config.annotation.Configuration;
import org.wso2.carbon.config.annotation.Element;
import org.wso2.carbon.database.query.manager.config.Queries;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;

/**
 * IdP configurations.
 */
@Configuration(namespace = "auth.configs", description = "SP Authorization Configuration Parameters")
public class IdPClientConfiguration {

    @Element(description = "Client Type", required = true)
    private String type = "local";

    @Element(description = "Client properties")
    private Map<String, String> properties = new HashMap<>();

    @Element(description = "REST API configuration")
    private RESTAPIConfigurationElement restAPIAuthConfigs = new RESTAPIConfigurationElement();

    @Element(description = "User Manager")
    private UserManagerElement userManager = new UserManagerElement();

    @Element(description = "Database query map")
    private ArrayList<Queries> queries = new ArrayList<>();

    public String getType() {
        return type;
    }

    public Map<String, String> getProperties() {
        return properties;
    }

    public RESTAPIConfigurationElement getRestAPIAuthConfigs() {
        return restAPIAuthConfigs;
    }

    public UserManagerElement getUserManager() {
        return userManager;
    }

    public ArrayList<Queries> getQueries() {
        return queries;
    }
}

@@ -1245,16 +1245,99 @@
 ocal%22;%0A%0A
+    @Element(description = %22SSO enabled%22)%0A    private boolean ssoEnabled = false;%0A%0A
     @Ele
@@ -2220,11 +2220,81 @@
 s;%0A    %7D
+%0A%0A    public boolean isSsoEnabled() %7B%0A        return ssoEnabled;%0A    %7D
 %0A%7D%0A

Add config Element to support sso