deva-auth-v3
v1.2.0
Published
Parse Server authentication adapter for external service.
Downloads
16
Readme
deva-auth-v2
Parse Server authentication adapter for external service.
Installation
npm install deva-auth-v2Usage
const DevaAuthAdapter = require('deva-auth-v2');
const api = new ParseServer({
// ... autres options
auth: {
externalService: {
module: DevaAuthAdapter,
enabled: true,
hostname: process.env.EXTERNAL_HOSTNAME,
path: process.env.EXTERNAL_PATH,
authorizationHeader: process.env.EXTERNAL_AUTH_HEADER,
},
},
});Configuration
The adapter requires the following options:
hostname: The hostname of the external authentication servicepath: The API path for authentication validationauthorizationHeader: The authorization header value for API requests
Authentication Data Format
The adapter expects authData with the following structure:
{
email: "[email protected]",
guid: "unique-guid-identifier"
}License
MIT
