You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am connecting to an on premises SharePoint 2019 environment from NodeJS via @pnp/[email protected] and also trying to connect using sp-request@^3.0.0 with OnPremiseAddinCredentials
The issue I am facing is that most of my data resides on Webapplication A (https://tools.contoso.com) and this is working perfectly. But I now need to pull some Data from Web Application B in the same SharePoint Farm (https://intranet.contoso.com) but I am getting a The token audience is NOT valid error because the audience is set to 00000003-0000-0ff1-ce00-000000000000/tools.contoso.com@addinRealmGUID
I am trying to set up sp-request with a fresh instance auf AuthConfig (getContext() then authOptions) as well as tried to run bootstrap(sp) again with the new authConfig and other URL, all leading to the same issue with the audience.
The App (ClientID) is the same for both Web Applications, it has permissions on both sites (wie appinv.aspx)
Please point me to what I am doing wrong or what more information you need to find out what's going wrong :)
Thank you!
The text was updated successfully, but these errors were encountered:
Hi,
I am connecting to an on premises SharePoint 2019 environment from NodeJS via @pnp/[email protected] and also trying to connect using sp-request@^3.0.0 with OnPremiseAddinCredentials
The issue I am facing is that most of my data resides on Webapplication A (https://tools.contoso.com) and this is working perfectly. But I now need to pull some Data from Web Application B in the same SharePoint Farm (https://intranet.contoso.com) but I am getting a
The token audience is NOT valid
error because the audience is set to00000003-0000-0ff1-ce00-000000000000/tools.contoso.com@addinRealmGUID
I am trying to set up sp-request with a fresh instance auf AuthConfig (getContext() then authOptions) as well as tried to run bootstrap(sp) again with the new authConfig and other URL, all leading to the same issue with the audience.
The App (ClientID) is the same for both Web Applications, it has permissions on both sites (wie appinv.aspx)
Please point me to what I am doing wrong or what more information you need to find out what's going wrong :)
Thank you!
The text was updated successfully, but these errors were encountered: