0.1.0 • Published 1 month ago

@cityssm/authentication-helper v0.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 month ago

Authentication Helper

npm (scoped) DeepSource Maintainability

Handles the authentication requests for web applications. Standardizes each method to allow for easier switching.

Supports:

  • Active Directory
  • AD Web Auth
  • Plain Text (for testing purposes only!!!)

Installation

npm install @cityssm/authentication-helper

Usage

import { ActiveDirectoryAuthenticator } from '@cityssm/authentication-helper'

const authenticator = new ActiveDirectoryAuthenticator(config)

await authenticator.authenticate('domain\user', 'p@ssw0rd')