[mapguide-users] authentication II

loic loic.buscoz at gmail.com
Wed Nov 27 01:58:00 PST 2013


Fisrt, excuse me for my english ;-)

Here some explanations to make it working :

You have to make an input form in a index.html for exemple :

<body>
<form action="accueil.php" method="POST" accept-charset="ISO-8859-1">
 <p>Nom d'utilisateur : <input type="text" name="username" /></p>
 <p>Mot de passe : <input type="password" name="password" /></p>
 <p><input type="submit" value="valider"></p>
</form>
</body>

*accueil.php* is your page where the application will be embeded.

Then here a part of the code of *accueil.php* : 

<head>
<?php 
 $url =
"http://sig:8008/mapguide/fusion/templates/mapguide/c3r/index.html?ApplicationDefinition=Library://maps/full-app.ApplicationDefinition&locale=fr";
?>
<frameset rows="30,*" frameborder="NO" border="0" framespacing="0">
<frame src="barre.html" name="TitleFrame" scrolling="NO" noresize>   
<frame src="<?php echo
$url."&username=".$_POST[username]."&password=".$_POST[password]
?>" name="ViewerFrame"> 
</frameset>
</head>

/$url/ is the location of your application. I put the ApplicationDefinition
and locale parameters too.
/<frame src="barre.html" name="TitleFrame" scrolling="NO" noresize>/ is a
title bar.
/<frame src="<?php echo
$url."&username=".$_POST[username]."&password=".$_POST[password]
?>" name="ViewerFrame"> /: this will embed your app with a concatenation of
the parameters. 


It should work !
Kajar wrote
> HI
> 
> I remember some versions ago this authentication window  worked out of box
> when  Fusion layout was used , but now its  somehow disabled by default. 
> Can someone describe how and where  to add this login iframe so I can get
> this login window working.





--
View this message in context: http://osgeo-org.1560.x6.nabble.com/authentication-II-tp5025338p5091429.html
Sent from the MapGuide Users mailing list archive at Nabble.com.


More information about the mapguide-users mailing list