Identificación de usuario

Autenticación centralizada

Una vez que se haya autenticado no será necesario identificarse de nuevo para acceder a otros recursos.

Para desconectarse, recomendamos que cierre su navegador (cerrando todas las ventanas).

'; if ($(".bloque .error_msg").length == 0) { $(".bloque").prepend(error_msg); } else { $(".bloque .error_msg #text_span_error").html('' + textos[$("#langs .highlight_lang").attr("id")][error_id] + ''); } } } $(document).ready(function() { var url_hash = window.location.hash; if(url_hash.length !== 0){ processAction(url_hash); processModules(url_hash); } //$("button, input:submit, .own-button").button(); if ($('.ui-state-error').length < 1) { $('.notes_texts').show(); } $('#holder').sweetPages({perPage: 4}); var controls = $('.swControls').detach(); $('#number-links').html(controls); $('a.http_authn_module').click(function() { if ($(this).attr("disabled") != "disabled") { $('#panelhttp').hide(); $('#externalauth').load("https://login.uc3m.es/authn/httpauth/js-httpauth.php", function(response, status, xhr) { checkError(response, status, xhr, "error_httpauth"); }); } }); $("#x509_module").click(function(e) { e.preventDefault(); if ($(this).attr("disabled") != "disabled") { $("#confirm_tls_dialog").dialog({ resizable: false, height: 'auto', //width: 'auto', modal: false, closeText: 'hide', buttons: { "Aceptar": function() { $(this).dialog("close"); window.location = $("#x509_module").attr('href'); $('#background_wayf').hide(); }, "Cancelar": function() { $(this).dialog("close"); $('#background_wayf').hide(); } }, open: function(event, ui) { var buttons = $(this).parent().find(".ui-button-text"); $(buttons[0]).html("" + $(buttons[0]).html() + ""); $(buttons[1]).html("" + $(buttons[1]).html() + ""); var theme_lang = $("#adAS_i18n_theme").val(); if(theme_lang!=undefined){ translate_to(theme_lang); } $('#background_wayf').height($(document).height() * 1.20).show(); } }) var dialog = $("#confirm_tls_dialog").parent(); dialog.css('font', '14px arial,helvetica,verdana,sans-serif'); dialog.find("p").css('padding', '20px'); dialog.find("button").css('background', '#001d85').css('color', '#fff').css('font', '14px arial,helvetica,verdana,sans-serif'); dialog.find(".ui-dialog-titlebar").css('background', '#001d85').css('color', '#fff'); dialog.find(".ui-dialog-titlebar-close").hide(); } }); $('.return_to_userpassword').click(function(event) { event.preventDefault(); $('#panelhttp').hide(); $('#userpass').show(); }); activate_translation(); activate_translation_extra(); $("#wayf_button").click(function() { $('#background_wayf').show(); $('#wayfotherlogin').fadeIn('slow', function() { $('#background_wayf').height($(document).height() * 1.20); }); }); $("#wayf_button_close2").click(function() { $('#wayfotherlogin').fadeOut(); $('#background_wayf').hide(); }); $("#formulario1").submit(function() { $("#formulario1").find("input:submit").prop('disabled', true); setTimeout(function() { $("#formulario1").find("input:submit").prop('disabled', false); }, 5000); return true; }); if((navigator.platform.indexOf('iPhone') != -1) || (navigator.platform.indexOf('iPod') != -1) || (navigator.platform.indexOf('iPad') != -1)){ $('.text-field').css('height','17px'); } }); function activate_translation_extra() { var texts = { }; $(langs).each(function () { $("#" + this).click(function () { var id_lang_cl = this.id; $(".button-text").each(function (i, elem) { var classes = $(elem).attr("class"); var sml_id = classes.match(/mod\_name\_(.*)$/); if(sml_id!==undefined && sml_id[1]!==undefined && texts[sml_id[1]]!==undefined){ if(texts[sml_id[1]][id_lang_cl]!==undefined){ $(elem).text(texts[sml_id[1]][id_lang_cl]); }else if(texts[sml_id[1]][default_lang]!==undefined){ $(elem).text(texts[sml_id[1]][default_lang]); } } }); }); }); } function processAction(url_hash){ var acti = $("#formulario1").attr('action'); $("#formulario1").attr('action',acti+url_hash); } function processModules(url_hash){ $("a.own-button").each(function() { var acti_own = $(this).attr('href'); $(this).attr('href',acti_own+url_hash); }); } -