For some reason when I add a WMTS layer AGOL appends "rest" to the end of my base URL making it an invalid query. so https://geo.spatialhub.scot/geoserver/sh_cpth/gwc/service/wmts?authkey=xxxxxxxxxx becomes https://geo.spatialhub.scot/geoserver/sh_cpth/gwc/service/wmts/rest?authkey=xxxxxxxxxx
I have been working with my colleagues on investigating the issue with the GeoServer - I have access to another WMTS service which also appends the rest value and I have evidence this service works.
paituli.csc.fi/geoserver/paituli/gwc/service/wmts?
Please test this opensource link and let us know if the issue persists with that service.
I would be interested to know if what version your GeoServer is and if it is fully patched.
Other influences would be if there are any settings applied at GeoServer level that could be impacting use within ArcGIS Online.
We will continue to monitor this feed and thanks for bringing it to our attention.
OGC—Portal for ArcGIS | Documentation for ArcGIS Enterprise
From our documentation, "OGC WFS, WMS, and WMTS services secured with web-tier authentication, such as Integrated Windows Authentication (IWA), a public key infrastructure (PKI), Basic, or Digest access authentication, are supported. OGC WFS, WMS, and WMTS services secured with token-based authentication are not supported. "
It has been discovered through further conversations that the ability to use custom parameters is available through the following : customParameters | Web Map Specification | ArcGIS Developers
customParameters | Web Map Specification | ArcGIS Developers
Help to use custom parameters