-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Invalid JWT token. Could not resolve issuer token. #42
Comments
Hi, |
Thank you for quick reply. |
Yep, I know that. I'm just curious if you setup apps for SharePoint correctly. The first step in the instruction is to setup apps environment. You might receive this error because you missed some essentials things or maybe something misconfigured. The best (and fastest) way to check it is through the visual studio and new SharePoint provider hosted app project. |
Another way to test it is using console application and var mngr = new AuthenticationManager();
var ctx = mngr.GetHighTrustCertificateAppOnlyAuthenticatedContext(....); If it works, then your configuration is OK. |
So I've checked this approach and it works, I think that's an issue with your farm apps configuration. I noticed you use SharePoint Foundation... TBH I've never tested it with foundation, but anyway it should work. The first thing for you to check is your farm configuration. |
Thank you for suggestion.
The response body was 'Invalid JWT token. Could not resolve issuer token.'. In the response I observe some other errors (not sure if they are related to the problem but it seems they are):
|
Do you have proxy setup or firewall? |
Firewall
…On Tue, Mar 20, 2018 at 8:23 PM, Sergei Sergeev ***@***.***> wrote:
Do you have proxy setup or firewall?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#42 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AK030OpI22s7-jGrvJAh01XiW8UK3q0Uks5tgUk1gaJpZM4Stvmv>
.
|
Probably your firewall is the cause, however, TBH I'm not sure. Have you tried any other authentication methods (ADFS, NTLM)? |
I tried with NTLM and it works fine.
…On Wed, Mar 21, 2018 at 1:36 PM, Sergei Sergeev ***@***.***> wrote:
Probably your firewall is the cause, however, TBH I'm not sure. Have you
tried any other authentication methods (ADFS, NTLM)?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#42 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AK030F0oaXLnhrWNEHmHCCAaugqq07cZks5tgjtYgaJpZM4Stvmv>
.
|
So I've checked firewall logs and there are no dropped packets |
I'm getting the same error. In my case openssl doesnt print the ShaThumbprint when executing the rsa command (I have installed and run several versions and none print the thumbprint) The certificate and app work fine if using it in a c# application. It looks like i'm missing the thumbprint in the correct format. Could you tell me how to generate it with openssl? The thumprint on the windows certificate console doesn't seem to work. |
Have you tried steps from this wiki page? (Starting from step |
I did. My issue is that the openssl step doesn't print the shathumbprint. |
nevermind I see that you are doing that in the powershell script Thanks, this api is great! |
Hello!
I'm trying to make SharePoint REST API call inside Gulp task (SharePoint Foundation 2013). I followed the manual https://github.com/s-KaiNet/node-sp-auth/wiki/SharePoint%20on-premise%20addin%20only%20authentication and tried the code inside the task:
Unfortunately I receive error in the console:
Could you help me to troubleshoot the issue please?
The text was updated successfully, but these errors were encountered: