VS Code Extension authentication problem

Sami Koskivaara
Giga Contributor

My user account has admin rights to our ServiceNow instance. I can login to instance with my username and password no problem from the UI and I can access to my application scope and make changes in ServiceNow. No 2 FA activated. It's a domain separated instance but my account is not in global, but couple levels down. I use node 14.2.0 locally. I'm NOT using Oauth, I'm using Basic authentication.

1. Open VS Code

2. Activate ServiceNow extension (latest version)

3. Create now project

4. Add URL and credentials with Basic auth

5. Select your custom application scope

6. It start to download the app but has error about Oauth token expired and asks authenticate again

7. Downloading stops and none of the scripts are downloaded

 

This errors pop up multiple times:

find_real_file.png

 

1 ACCEPTED SOLUTION

Hi, 
When you select the same current folder during setup workspace, vscode ignores the command and hence nothing happens. I suggest you open a fresh instance of vscode (no folder opened inside) and do the setup workspace command, or select a completely different folder during setup workspace (folder which is not currently open in vscode)

View solution in original post

6 REPLIES 6

Hi, 
When you select the same current folder during setup workspace, vscode ignores the command and hence nothing happens. I suggest you open a fresh instance of vscode (no folder opened inside) and do the setup workspace command, or select a completely different folder during setup workspace (folder which is not currently open in vscode)

This fixed it. So the trick is to have empty VS Code (no folder opened), then enable extension and then setup workspace.