Error issuing session token: HostAuthorizationNotFound

1k Views Asked by At

Im developing TFS extension using angular and when I debugging the extension I unable to make rest calls using the VSS SDK, it try to make a request to WebPlatformAuth but it throw exception:

"Error issuing session token: HostAuthorizationNotFound".

Just to make it clear, Im able to use VSS to get WebContext for example project.name or user.id.

(I debug my extension by running ng serve on my localhost and provide the extension manifest "baseUri" field).

UPDATE - It happen also when I deploy the extension without the baseUri - not in debug mode.

Just to mention, I also developed another simple extension using only html and jquery and it worked just fine without any additional configurations.

2

There are 2 best solutions below

0
On

Apparently I just had to enter the 'manage extensions' page at the Azure Devops and give my extension the authorization to the actions it ask for.

0
On

Uninstalling and reinstalling seemed not to help because we switched to a different version of the extension. When I uninstalled and reinstalled the SAME version, the extension worked again!