Authentication - Clarification on private config #132
-
[note I have also posted this on Stack Overflow and will copy the answer over there for posterity should I get one] The short of it is I am getting 403 errors after switching to "Addin only permissions" using a token/secret provided by my admins.
and private (not the actual values I am using expect for "strategy" )
I couldn’t find much on the “strategy” value on the sp-rest-proxy or the node-sp-auth side of the documentation. I can assume its OnlineAddinOnly but I’m not able to find the specific syntax for what possible values this attribute expects. I also noticed that the “clientSecret” is changing once I run the server, I assume this is an intentional encryption. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Please check this article https://github.com/s-KaiNet/node-sp-auth/wiki/SharePoint-Online-addin-only-authentication 403 means you’ve been authenticated but not authorized. The add-in registration has been granted no permissions or an API/resource called only supports a user context. Regarding strategy name, it’s a helper from node-sp-auth-config library which prompts per credentials without having user a chance on a mistake, almost. The list of strategies can be seen here https://github.com/koltyakov/node-sp-auth-config/blob/master/src/config/index.ts |
Beta Was this translation helpful? Give feedback.
Please check this article https://github.com/s-KaiNet/node-sp-auth/wiki/SharePoint-Online-addin-only-authentication
403 means you’ve been authenticated but not authorized. The add-in registration has been granted no permissions or an API/resource called only supports a user context.
Regarding strategy name, it’s a helper from node-sp-auth-config library which prompts per credentials without having user a chance on a mistake, almost. The list of strategies can be seen here https://github.com/koltyakov/node-sp-auth-config/blob/master/src/config/index.ts