<%
include("../../../../util/constants.jag");
include("../../util/constants.jag");
include("../../util/utility.jag");
include("../../../../util/utility.jag");

var log = new Log();
var cookie = request.getParameter("cookie");
var user = request.getParameter("user");
var appId = request.getParameter("appId");

session.put('auth-cookie', cookie);
session.put('user', user);

try {
    var header = {"cookie" : cookie};
    var result = get(getFIDOStartRegUrl(), {appId: appId}, header, "json");
    print(result);
} catch(e) {
    log.error(e);
}

%>
