# @types/passport-windowsauth

> TypeScript definitions for passport-windowsauth

Latest version **3.0.5** (published 2025-10-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/passport-windowsauth
pnpm add @types/passport-windowsauth
yarn add @types/passport-windowsauth
bun add @types/passport-windowsauth
```

## Health

**Score 65/100 (B)** — status: stable.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support.

## Facts

| | |
|---|---|
| Version | 3.0.5 |
| Published | 2025-10-24 |
| First published | 2018-10-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 6.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51441 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/passport-windowsauth
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/passport-windowsauth
- npm.io page: https://npm.io/package/@types/passport-windowsauth

## Dependencies (3)

- [@types/ldapjs](https://npm.io/package/@types/ldapjs.md) *
- [@types/express](https://npm.io/package/@types/express.md) *
- [@types/passport](https://npm.io/package/@types/passport.md) *

## Recent versions

- 3.0.5 (latest) — 2025-10-24
- 3.0.4 (ts5.1) — 2023-11-07
- 3.0.1 (ts3.6) — 2021-07-08
- 3.0.0 (ts3.5) — 2018-10-12
- 3.0.3 — 2023-10-18
- 3.0.2 — 2023-09-24

## README

# Installation
> `npm install --save @types/passport-windowsauth`

# Summary
This package contains type definitions for passport-windowsauth (https://github.com/auth0/passport-windowsauth#readme).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/passport-windowsauth.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/passport-windowsauth/index.d.ts)
````ts
import express = require("express");
import * as ldapjs from "ldapjs";
import * as passport from "passport";
import { TlsOptions } from "tls";

declare namespace windowsauth {
    interface Options {
        ldap?: {
            url?: string | undefined;
            maxConnections?: number | undefined;
            base?: string | undefined;
            bindDN?: string | undefined;
            bindCredentials?: string | undefined;
            tlsOptions?: TlsOptions | undefined;
            reconnect?: boolean | {
                initialDelay?: number | undefined;
                maxDelay?: number | undefined;
                failAfter?: number | undefined;
            } | undefined;
            timeout?: number | undefined;
            connectTimeout?: number | undefined;
            idleTimeout?: number | undefined;
            binder?: ldapjs.Client | undefined;
            client?: ldapjs.Client | undefined;
        } | undefined;
        integrated?: boolean | undefined;
        getUserNameFromHeader?(req: express.Request): string;
        passReqToCallback?: boolean | undefined;
        usernameField?: string | undefined;
        passwordField?: string | undefined;
    }
    type Verified = (err: Error | undefined | null, user?: object, info?: object) => void;
    type Verify = (profile: passport.Profile, done: Verified) => void;
    type VerifyWithReq = (req: express.Request, profile: passport.Profile, done: Verified) => void;
}

declare class windowsauth extends passport.Strategy {
    constructor(options: windowsauth.Options & { passReqToCallback: true }, verify: windowsauth.VerifyWithReq);
    constructor(options: windowsauth.Options, verify: windowsauth.Verify);
    constructor(verify: windowsauth.Verify);
}

export = windowsauth;

````

### Additional Details
 * Last updated: Fri, 24 Oct 2025 04:02:41 GMT
 * Dependencies: [@types/express](https://npmjs.com/package/@types/express), [@types/ldapjs](https://npmjs.com/package/@types/ldapjs), [@types/passport](https://npmjs.com/package/@types/passport)

# Credits
These definitions were written by [Emily Marigold Klassen](https://github.com/forivall).

---
_Source: https://npm.io/package/@types/passport-windowsauth · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
