MapInfo Pro

 View Only
  • 1.  Embed WMS server user/pass in Tab file

    Posted 05-01-2019 21:09
    Edited by George Corea 05-01-2019 21:13
    I need to create a .tab file that opens a restricted/protected WMS server without prompting for credentials every time.

    Currently when I open it, a prompt for the user name and password comes up. I don't want to give this to all the users on the system but have it embedded in the .tab/.xml file...ideally scrambled.


    The .tab is

    !table
    !version 750
    !charset WindowsLatin1

    Definition Table
    File "qld_sisp_imagery_wms.xml"
    Type "WMS"
    CoordSys Earth Projection 8, 116, "m", 147, 0, 0.9996, 500000, 10000000
    begin_metadata
    "\IsReadOnly" = "FALSE"
    "\MapInfo" = ""
    "\MapInfo\TableID" = "8b6009d6-c314-4bd4-9223-d7d290ed84e4"
    end_metadata

    the .xml is
    <MI_WMS_MapDefinition version="1.0" wms_version="1.3.0"><HTTP GetCapabilities="https://auth-spatial-XXX/ImageServer/WMSServer?" GetMap="https://auth-spatial-XXX/ImageServer/WMSServer"/><Exception format="XML"/><SRS>EPSG:28355</SRS><Image bgcolor="16777215" transparent="true" format="image/png"/><Layer><Name>LatestStateProgram_SISPUsers</Name><Style></Style><LatLonBoundingBox minx="-180" miny="-90" maxx="180" maxy="90"/><BoundingBox SRS="EPSG:28355" minx="-481881.729993" miny="6734668.137079" maxx="1225547.023262" maxy="8981699.047294"/></Layer></MI_WMS_MapDefinition>

    QGIS enables this - 

    Is there a similar MI process?

    ------------------------------
    George Corea
    Mangoesmapping
    ------------------------------


  • 2.  RE: Embed WMS server user/pass in Tab file

    Employee
    Posted 05-05-2019 22:20
    Edited by Peter Møller 06-07-2022 03:32
    Hi George, 

    I agree that the ability to embed the credentials within the .tab file would be helpful for GIS administrators and users. I believe this has already been raised and acknowledged as an enhancement request in our portal. Please see the following link --> https://ideas.precisely.com/ideas/MIPRO-I-1012

    Please vote for the idea above if you haven't already done so and for any product management/development team members who read this post, please share your feedback. 

    Thanks,


    ------------------------------
    Dave Kuo
    Pitney Bowes Australia Pty Ltd
    Australia
    ------------------------------



  • 3.  RE: Embed WMS server user/pass in Tab file

    Posted 05-06-2019 09:10
    ​Would you require the credentials to be stored in the .tab in an encrypted way? You said "ideally" scrambled.  How scrambled? If this server just used basic http authentication then that is fairly easy. 
    Having them stored as clear text would seem to defeat the WMS server creators purpose.


    ------------------------------
    Eric Blasenheim
    Spectrum Spatial Technical Product Manager
    Troy, NY
    ------------------------------