https://github.com/koltyakov/node-sp-auth-troubleshoot
Node.js SharePoint Auth Troubleshooting
https://github.com/koltyakov/node-sp-auth-troubleshoot
auth javascript node-sp-auth nodejs sharepoint
Last synced: 3 months ago
JSON representation
Node.js SharePoint Auth Troubleshooting
- Host: GitHub
- URL: https://github.com/koltyakov/node-sp-auth-troubleshoot
- Owner: koltyakov
- Created: 2018-11-01T12:21:32.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-02-03T10:00:30.000Z (over 3 years ago)
- Last Synced: 2025-03-20T04:46:51.252Z (over 1 year ago)
- Topics: auth, javascript, node-sp-auth, nodejs, sharepoint
- Language: JavaScript
- Size: 229 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Node.js SharePoint Authentication troubleshooting
## Prerequisites
- Node.js 10.19 or greater (this requirements is applied `node-sp-auth` v3)
## Clone the project
```bash
git clone https://github.com/koltyakov/node-sp-auth-troubleshoot
cd node-sp-auth-troubleshoot
```
## Restore dependencies
```bash
npm install
```
## Run connection test
```bash
npm run test -- --env uat
```
On the first run, connection and credentials prompts will appear.
Provide [auth options](https://github.com/s-KaiNet/node-sp-auth#getauthurl-credentialoptions) due to the environment settings following the CLI wizard.
Connection file will be saved to `./config/private.{env}.json`.
### Success
On successful connection, `=== Success ===` console message following with authentication cookies or tokens should be printed in a console.
### Errors
On error, `=== Error ===` console message following with error stack trace appears.
Please share stack trace with a developer or admin to troubleshoot the reason of the error.