Documentation
This commit is contained in:
parent
a75e5e12a9
commit
d2b7cea972
30
README.md
Normal file
30
README.md
Normal file
|
@ -0,0 +1,30 @@
|
|||
Office365 OAuth2 authenticator
|
||||
==============================
|
||||
|
||||
This project retrieves cookies used to authenticate an user on Sharepoint Online.
|
||||
|
||||
## Requirements
|
||||
|
||||
Tested with NodeJS 6.13.0.
|
||||
|
||||
## Installation
|
||||
|
||||
```
|
||||
$ git clone https://gitnet.fr/deblan/office365-oauth2-authenticator.git
|
||||
$ cd office365-oauth2-authenticator
|
||||
$ npm install
|
||||
```
|
||||
|
||||
## Configuration
|
||||
|
||||
```
|
||||
$ cp login_example login
|
||||
```
|
||||
|
||||
Edit `login` and replace values of:
|
||||
|
||||
* MS_OFFICE365_SITE
|
||||
* MS_OFFICE365_LOGIN
|
||||
* MS_OFFICE365_PASSWORD
|
||||
|
||||
Then run `node index.js`.
|
9
login_example
Executable file
9
login_example
Executable file
|
@ -0,0 +1,9 @@
|
|||
#!/bin/sh
|
||||
|
||||
# OPTIONS="--debug --crawler-debug"
|
||||
|
||||
export MS_OFFICE365_SITE="https://foo.sharepoint.com/"
|
||||
export MS_OFFICE365_LOGIN="bar@example.com"
|
||||
export MS_OFFICE365_PASSWORD="5eCrEt"
|
||||
|
||||
node ./index.js $OPTIONS
|
Reference in a new issue