@ttgint/fastify-ldap-service

0.0.2 • Public • Published

ttgint/fastify-ldap-service

JavaScript Style Guide Build Status

Install

npm install --save @ttgint/fastify-ldap-service

Usage

fastify.register(require('@ttgint/fastify-ldap-service'), { provider: 'https://post/endpoint' })

then

const result = await fastify.ldap(username, password)

will send your username and password as a POST request to the provided url and return the result.

For testing purposes you can also use a custom function as the provider such as

fastify.register(require('@ttgint/fastify-ldap-service'), { provider: () => ({ name: 'dummy', department: 'test' }) })

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i @ttgint/fastify-ldap-service

Weekly Downloads

1

Version

0.0.2

License

MIT

Unpacked Size

5.38 kB

Total Files

7

Last publish

Collaborators

  • cemremengu