Select to view content in your preferred language

Can't Paste SAML token into Visual Studio Code Terminal

903
2
12-29-2022 11:43 AM
KevinRathgeber1
Regular Contributor

Hello, I am having the dumbest problem that is costing me more time than it should.  I am working in Visual Studio Code and connecting to an ArcGIS enterprise instance using SAML.  The code is very simple

from arcgis.gis import GIS

gis = GIS("yourPortalPath", client_id='appClientId')
 
I am presented with the Portal login screen where I connect using my enterprise account and am provided an OAuth2 approval code.  I copy that code.  In the terminal I see the following:

Please sign in to your GIS and paste the code that is obtained below.
If a web browser does not automatically open, please navigate to the URL below yourself instead.
Opening web browser to navigate to: https://.....
Enter code obtained on signing in using SAML:

On that last line I am unable to paste or type anything in.
 
NOTE: When I am not debugging I can paste and type fine in the terminal window.  It is only when the code is running I can no longer perform copy/paste actions.

If anyone can help it would be greatly appreciated.
0 Kudos
2 Replies
WengNg4
Emerging Contributor

I have the same problem as well can't figure out how to paste the code back into the terminal in VS Code. 

Works in Jupyter though 😶

0 Kudos
KevinRathgeber1
Regular Contributor

I eventually found that Shift+Insert works however note that you will not see it actually paste in.  You have to trust that it did.