Hexagon Geospatial
MENU

M.App Enterprise Tutorials

Not sure on how to get started or looking for a workflow to get M.App Enterprise up and running. Tutorials provide step by instruction on some of the most common configurations and workflows to get M.App Enterprise configured up and running quickly.
Showing results for 
Search instead for 
Do you mean 

How to secure your OGC Services with API Keys

by Technical Evangelist on ‎03-28-2018 10:51 AM (521 Views)

This tutorial describes how your created OGC services (My GeoServices) can be secured in M.App Enterprise. The solution to this are the newly introduced API Keys, which means you can control the access to your hosted WMS, WMTS or WFS services.

 

An API key describes some form of secret token which is submitted alongside web service (or similar) requests to identify the origin of the request. API Keys are a popular way to secure web services.

In M.App Enterprise you can now create and maintain API keys for your needs. This new option is available in M.App Enterprise Studio in the Security section

 

apikeys.png

 

 

 

To use the created API key you have a new option available when creating your geoservice. This option is called 'Secure with API Key'.

 

myGeoservice.png

 

 

When using the created WMS, WMTS or WFS you simply put the API Key in the querystring of the URL. The querystring parameter is called 'apiKey'.

(If you create a Geoservice from your My Geoservice the API Key will automatically be added to the URL.)

 

Example for WMS: 

https://SERVERNAME/api/v1/geoservices/wms/newyork/TestWMS?request=GetCapabilities&apiKey=6271a4867e2b4250893406c189385c11

 

Example for WMTS: 

https://SERVERNAME/api/v2/geoservices/wmts/newyork/TestWMTS/WMTSCapabilities.xml?apiKey=6271a4867e2b4250893406c189385c11

 

Example for WFS: 

https://SERVERNAME/api/v1/geoservices/wfs/newyork/TestWFS?request=GetCapabilities&apiKey=6271a4867e2b4250893406c189385c11

 

 

 

 

Comments
by
on ‎06-18-2019 03:35 AM

Dear all,

and for imagery published with M.App Enterprise ? How can I secure WMS?

thanks

Overview