dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #30774
Re: Need to pass credentials from external site
Hi,
i test this on our demo server (http://apps.dhis2.org/dev) and this works
fine:
$.post('/dev/dhis-web-commons-security/login.action?authOnly=true', {
j_username: "admin", j_password: "district" })
Is the request coming from the same server? remember that x-domain auth is
not supported by default
--
Morten
On Thu, Jun 12, 2014 at 10:22 AM, Md. Monjur Rahman <monjur@xxxxxxxxxx>
wrote:
> Dear All,
> I have several DHIS application from different server. I have developed a
> page which contains all the credential information about those applications.
> I want the DHIS application logged on after clicking the link. But it
> always redirect me to login page of DHIS. My code snippet is:
>
> $(document).ready(function () {
> $("#link1").click(function () {
> $.post("
> http://localhost:8191/dhis215/dhis-web-commons-security/login.action?authOnly=true",
> { j_username: "admin", j_password: "district" });
> window.open("
> http://localhost:8191/dhis215/dhis-web-dashboard-integration/index.action
> ");
> });
> });
>
> please help.
>
> Md Monjur Rahman
> Senior Computer Programmer,
> Center for Equity & Health System,
> icdd,b, Mohakhali, Dhaka, Bangladesh.
> _______________________________________________
> Mailing list: https://launchpad.net/~dhis2-devs
> Post to : dhis2-devs@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~dhis2-devs
> More help : https://help.launchpad.net/ListHelp
>
Follow ups
References