Browse Source

Documentation

Simon Vieille 6 months ago
parent
commit
d2b7cea972
No known key found for this signature in database
2 changed files with 39 additions and 0 deletions
  1. 30
    0
      README.md
  2. 9
    0
      login_example

+ 30
- 0
README.md View File

@@ -0,0 +1,30 @@
1
+Office365 OAuth2 authenticator
2
+==============================
3
+
4
+This project retrieves cookies used to authenticate an user on Sharepoint Online.
5
+
6
+## Requirements
7
+
8
+Tested with NodeJS 6.13.0.
9
+
10
+## Installation
11
+
12
+```
13
+$ git clone https://gitnet.fr/deblan/office365-oauth2-authenticator.git
14
+$ cd office365-oauth2-authenticator
15
+$ npm install
16
+```
17
+
18
+## Configuration
19
+
20
+```
21
+$ cp login_example login
22
+```
23
+
24
+Edit `login` and replace values of:
25
+
26
+* MS_OFFICE365_SITE
27
+* MS_OFFICE365_LOGIN
28
+* MS_OFFICE365_PASSWORD
29
+
30
+Then run `node index.js`.

+ 9
- 0
login_example View File

@@ -0,0 +1,9 @@
1
+#!/bin/sh
2
+
3
+# OPTIONS="--debug --crawler-debug"
4
+
5
+export MS_OFFICE365_SITE="https://foo.sharepoint.com/"
6
+export MS_OFFICE365_LOGIN="bar@example.com"
7
+export MS_OFFICE365_PASSWORD="5eCrEt"
8
+
9
+node ./index.js $OPTIONS

Loading…
Cancel
Save