Skip to content

sbrannstrom/nestjs-passport-ldap-example

Repository files navigation

Nest Logo

Description

Nest framework with LDAP Passport authentication example.
Created by Simon Brännström.

Installation

yarn

Running the app (in development mode)

yarn run start

Example LDAP lookup

curl --request POST \
 --url http://localhost:3000/ldap \
 --header 'Content-Type: application/json' \
 --data '{"username": "gauss", "password": "password"}'

Example response

{"dn":"uid=gauss,dc=example,dc=com","controls":[],"objectClass":["inetOrgPerson","organizationalPerson","person","top"],"cn":"Carl Friedrich Gauss","sn":"Gauss","uid":"gauss","mail":"[email protected]"}
# watch mode
$ yarn run start:dev

Author

Created by Simon Brännström January 2020.

License

Nest is MIT licensed.

About

NestJS Passport LDAP example

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published