the introduction of API KEYS in ArcGIS Enterprise 11.4&5 unlocks a lot possibilities for scripting with ArcGIS API for Python when you're using a SAML or openID connect account in ArcGIS Enterprise or when you've secured your build in account with 2F. Before the introduction of the API KEYS you could use these accounts for automated scripts and now you can.
Next step for me was of course to try this with the recent versions of Arcpy and I tried to use the API KEY as a token together with a referer and expiry timestamp and a hit a wall there. As far as I can see right now the referer is not always send from Arcpy when making certain requests to ArcGIS Enterprise.
So my request is: please add support for APIKEYS to Arcpy , so we can use any type of account and security when scripting with Arcpy and consuming resources from the Portal
Thank you