<%

var log = new Log();
var userName = session.get("user");
var identityClient = require('IdentityProviderServiceClient.jag');

var i18n = session.get("i18n");

removeAssociateID();

function removeAssociateID(){
    try{

var idpID = request.getParameter("idpID");
var associatedID = request.getParameter("associatedID");
var profileManager = require("UserProfileMgtServiceClient.jag");

profileManager.removeAssociateID(idpID, associatedID);

    }
    catch(e){
        log.error(e);
        response.sendRedirect("../../index.jag?e=1&error=" + e);

    }

}


%>
