[mapguide-users] Passing username and password into url with fusion

ary_s ary.sucaya at yahoo.com
Thu Oct 22 22:22:11 EDT 2009


In my case, changing ApplicationDefinition.js doesn't fix the issue with
authentication form in FF 3.0.14. If the final release will solve this
problem, i'd love to wait..

thanks,



GordonL wrote:
> 
> You can fix it with that fix that was listed on an earlier post:
> 
> In ApplicationDefinition.js, the method getAppDef(xhr) needs to be changed
> to be like this: 
> 
>     getAppDef: function(xhr){ 
>       if (xhr && typeof(xhr) == "object" && xhr.responseText) { 
>         this.sessionId = xhr.responseText; 
>         Fusion.sessionId = this.sessionId; 
>       } 
>       var r = new
> Fusion.Lib.MGRequest.MGGetResourceContent(this.applicationDefinition); 
>       r.parameters.session = this.sessionId; 
>       r.parameters.format = 'application/json'; 
>       this.oBroker.dispatchRequest(r, 
>               OpenLayers.Function.bind(this.getAppDefCB, this)); 
>     } 
> 
> 
> 
> regards
> gordon
> 
> 
> ary_s wrote:
>> 
>> the example works for IE and Chrome but my FF still ask username and
>> password.
>> 
>> thanks
>> 
>> 
>> Andy Morsell wrote:
>>> 
>>> No, Fusion does not support that.  See this issue on the Fusion Trac:
>>> http://trac.osgeo.org/fusion/ticket/105
>>> 
>>> You can, however, pass a valid SESSION at the URL to bypass the login
>>> prompt.  See the attached example.
>>> 
>>> Andy Morsell, P.E.
>>> Spatial Integrators, Inc.
>>> 47° 46' N 116° 49' W
>>> www.SpatialGIS.com
>>> 
>>> From: mapguide-users-bounces at lists.osgeo.org
>>> [mailto:mapguide-users-bounces at lists.osgeo.org] On Behalf Of Fraser
>>> Burgess
>>> Sent: Tuesday, October 20, 2009 12:06 PM
>>> To: MapGuide Users Mail List
>>> Subject: [mapguide-users] Passing username and password into url with
>>> fusion
>>> 
>>> Is there a trick to passing username and password into a URL with
>>> Fusion:
>>> 
>>> 
>>> A URL such as
>>> 
>>> http://mywebsite.com/mapguide2010/fusion/templates/mapguide/TMOslate/index.h
>>> tml?ApplicationDefinition=Library%3a%2f%2fTMO%2fLayouts%2fTMO%20Map.Applicat
>>> ionDefinition
>>> <http://mywebsite.com/mapguide2010/fusion/templates/mapguide/TMOslate/index.
>>> html?ApplicationDefinition=Library%3a%2f%2fTMO%2fLayouts%2fTMO%20Map.Applica
>>> tionDefinition&LOCALE=en&USERNAME=Anonymous&PASSWORD=>
>>> &LOCALE=en&USERNAME=Anonymous&PASSWORD=
>>> 
>>> still brings up the log in prompt
>>> 
>>> Fraser
>>> 
>>> 
>>>  
>>> _______________________________________________
>>> mapguide-users mailing list
>>> mapguide-users at lists.osgeo.org
>>> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>>> 
>>> 
>> 
>> 
> 
> 

-- 
View this message in context: http://n2.nabble.com/Passing-username-and-password-into-url-with-fusion-tp3860654p3876310.html
Sent from the MapGuide Users mailing list archive at Nabble.com.


More information about the mapguide-users mailing list