PDA

View Full Version : Auto log user by mimic a post behavior in an Iframe



vuilled
23 Jan 2013, 7:05 AM
Hi,

I open specific user web application in a iframe embded in an Ext window. I do that by embded this item in the window and it work great :


items :
{
xtype: 'component',
autoEl: {
tag: 'iframe',
src: me.url,

height: '100%',
width: '100%'
} ,

listeners: {
load: {
element: 'el',
fn: function () {
this.parent().unmask();
}
},
render: function () {
this.up('panel').body.mask('Loading...');
}
}
},

Now I want to go one step further and auto log my user in the web app embded in the iframe. The web app only support post authentification to a page. I therefore need to open the iframe either directly to the form action page and mimic post variable or in the login page and mimic after that a post sending request.

Have someone already do that something like that or have an idea how to do that ?

Thanks

David

mitchellsimoens
28 Jan 2013, 12:53 PM
It sounds like you will be doing too much hacking. I would try to rethink the login service.