WMS/WMTS with authentification

Is it possible to create WebMapServiceImageryProvider or WebMapTileServiceImageryProvider and provide login credentials when the service is not public?

How does the service accept the login credentials? If it’s just a query param or a token in the header, you can pass that in by constructing a Resource object and passing that in as the url instead of a string. See: https://cesium.com/docs/cesiumjs-ref-doc/Resource.html

1 Like

Thank you, the Resource object already helps.

1 Like