Hi,
I'm using PrintTask (ArcGIS JS API 4) with a WMS layer that requires JWT-based authentication (issued by a third-party GeoServer, not ArcGIS Server).
According to the ExportWebMap specification, there is a `token` field in the operationalLayers definition. However, the spec only mentions that OAuth2 is not supported and that credentials in the URL are not supported — it does not clarify what type of token is accepted.
My question: Does the `token` field in the ExportWebMap spec support non-ArcGIS tokens such as a JWT issued by a third-party WMS service (e.g., GeoServer)? Or is it strictly limited to ArcGIS token-based authentication?
If JWT is not supported via the `token` field, is there any other way to pass authentication headers (e.g., Bearer token) to a secured external WMS layer during printing?
Thank you.
Hi @JTTT, thanks for posting your question here. The token field is only meant for ArcGIS tokens. The print service reads it and then passes it along in its own requests as a token URL parameter. Unfortunately, we don't have a way to send custom headers from print services.