@cityssm/authentication-helper
v0.6.2
Published
Handles the authentication requests for web applications.
Downloads
442
Maintainers
Readme
Authentication Helper
Handles the authentication requests for web applications. Standardizes each method to allow for easier switching.
Supports:
- Active Directory
- AD Web Auth
- Function - Implement your own!
- Plain Text (for testing purposes only!!!)
Installation
npm install @cityssm/authentication-helperUsage
import { ActiveDirectoryAuthenticator } from '@cityssm/authentication-helper'
const authenticator = new ActiveDirectoryAuthenticator(config)
await authenticator.authenticate('domain\\user', 'p@ssw0rd')