Hello,
Using:
SmartClient Version: SC_SNAPSHOT-2011-11-10/PowerEdition Deployment (built 2011-11-10)
I have some sort of Single-Sign on requirement that I want to implement as follows (and yes it is a bit of a hack).
A users logs in in my app, and then his entered credentials are immediately added to a DynamicForm which (classically) submits to an external domain (with synced user accounts obviously).
This way, from the other system's point of view, it looks like a login event.
So all I want is this to work:
My goal is that this redirects out of my system, and into 'Moodle', and opensource e-learning app. If this works, I am happy, but the form is not submitted.
That is, no POST is done according to Firebug's NET panel.
Is this a bug or a feature (ie. security feature).
Could you shed some light on this?
Using:
SmartClient Version: SC_SNAPSHOT-2011-11-10/PowerEdition Deployment (built 2011-11-10)
I have some sort of Single-Sign on requirement that I want to implement as follows (and yes it is a bit of a hack).
A users logs in in my app, and then his entered credentials are immediately added to a DynamicForm which (classically) submits to an external domain (with synced user accounts obviously).
This way, from the other system's point of view, it looks like a login event.
So all I want is this to work:
Code:
DynamicForm moodleLogin = new DynamicForm(); moodleLogin.setCanSubmit(true); moodleLogin.setMethod(FormMethod.POST); moodleLogin.setAction(event.getMoodleUrl()+"/login/index.php"); HiddenItem usr = new HiddenItem("j_username"); usr.setDefaultValue(username); HiddenItem pw = new HiddenItem("j_password"); pw.setDefaultValue(pass); moodleLogin.setFields(usr,pw); moodleLogin.submitForm();// this ought to work, an offline test with a form injected by plain javascript into the dom and submitted via javascript, worked.
That is, no POST is done according to Firebug's NET panel.
Is this a bug or a feature (ie. security feature).
Could you shed some light on this?
Comment