Skip to content
Snippets Groups Projects
Commit a28fd112 authored by srosse's avatar srosse
Browse files

OO-1588: remove debugging code

parent 9338f576
No related branches found
No related tags found
No related merge requests found
...@@ -50,7 +50,6 @@ import org.olat.core.gui.exception.MsgFactory; ...@@ -50,7 +50,6 @@ import org.olat.core.gui.exception.MsgFactory;
import org.olat.core.gui.media.MediaResource; import org.olat.core.gui.media.MediaResource;
import org.olat.core.gui.media.RedirectMediaResource; import org.olat.core.gui.media.RedirectMediaResource;
import org.olat.core.gui.translator.Translator; import org.olat.core.gui.translator.Translator;
import org.olat.core.helpers.Settings;
import org.olat.core.logging.AssertException; import org.olat.core.logging.AssertException;
import org.olat.core.logging.OLATRuntimeException; import org.olat.core.logging.OLATRuntimeException;
import org.olat.core.logging.OLATSecurityException; import org.olat.core.logging.OLATSecurityException;
...@@ -152,15 +151,6 @@ public class ShibbolethDispatcher implements Dispatcher{ ...@@ -152,15 +151,6 @@ public class ShibbolethDispatcher implements Dispatcher{
uri = uri.substring(uriPrefix.length()); // guaranteed to exist by DispatcherAction uri = uri.substring(uriPrefix.length()); // guaranteed to exist by DispatcherAction
Map<String, String> attributesMap = getShibbolethAttributesFromRequest(req); Map<String, String> attributesMap = getShibbolethAttributesFromRequest(req);
/* Simulate a user */
if(Settings.isDebuging()) {
attributesMap.put("Shib-SwissEP-UniqueID", "moka");
attributesMap.put("Shib-InetOrgPerson-givenName", "Akashiya");
attributesMap.put("Shib-Person-surname", "Moka");
attributesMap.put("Shib-InetOrgPerson-mail", "moka@cyberiacafe.ch");
attributesMap.put("Shib-SwissEP-HomeOrganization", "Yokai High School");
}
String uniqueID = getUniqueIdentifierFromRequest(req, resp, attributesMap); String uniqueID = getUniqueIdentifierFromRequest(req, resp, attributesMap);
if(uniqueID == null) { if(uniqueID == null) {
return; return;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment