sashido-parse-server-microsoft-auth-adapter

1.0.1 • Public • Published

sashido-parse-server-microsoft-auth-adapter

Authenticate to parse server with Microsoft

How to use it?

1) Install the module

npm i -S sashido-parse-server-microsoft-auth-adapter

2) Add this module when creating ParseServer

import { ParseServer } from 'parse-server'
import authMicrosoft from 'sashido-parse-server-microsoft-auth-adapter'
...
const parserServer = new ParseServer({
  ...
  auth: {
    microsoft: authMicrosoft
  }
})

3) Using Firebase access token in our project

  • Get Parse access token by POST a raw data to /1/users
curl -X POST \
  {{API_ENDPOINT}}/1/users \
  -H 'content-type: application/json' \
  -H 'x-parse-application-id: {{APP_ID}}' \
  -d '{
    "authData": {
    	"microsoft": {
    		"token": "{{TOKEN}}",
    		"id": "{{ID}}"
    	}
    }
}'

Package Sidebar

Install

npm i sashido-parse-server-microsoft-auth-adapter

Weekly Downloads

3

Version

1.0.1

License

MIT

Unpacked Size

3.13 kB

Total Files

4

Last publish

Collaborators

  • pivanov