Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
@types/passport-http
Advanced tools
TypeScript definitions for passport-http
npm install --save @types/passport-http
This package contains type definitions for passport-http (https://github.com/jaredhanson/passport-http).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/passport-http.
import passport = require("passport");
import express = require("express");
export interface BasicStrategyOptions<req extends boolean = boolean> {
realm?: string | undefined;
passReqToCallback?: req | undefined;
}
export interface DigestStrategyOptions {
realm?: string | undefined;
domain?: string | string[] | undefined;
opaque?: string | undefined;
algorithm?: string | undefined;
qop?: string | string[] | undefined;
}
export interface DigestValidateOptions {
nonce: string;
cnonce: string;
nc: number;
opaque: string;
}
export type BasicVerifyFunction = (
username: string,
password: string,
done: (error: any, user?: any) => void,
) => any;
export type BasicVerifyFunctionWithRequest = (
req: express.Request,
username: string,
password: string,
done: (error: any, user?: any) => void,
) => any;
export type DigestSecretFunction = (
username: string,
done: (error: any, user?: any, password?: any) => void,
) => any;
export type DigestValidateFunction = (
params: DigestValidateOptions,
done: (error: any, valid: boolean) => void,
) => any;
export class BasicStrategy implements passport.Strategy {
constructor(verify: BasicVerifyFunction);
constructor(options: BasicStrategyOptions<false>, verify: BasicVerifyFunction);
constructor(options: BasicStrategyOptions<true>, verify: BasicVerifyFunctionWithRequest);
name: string;
authenticate(req: express.Request, options?: object): void;
}
export class DigestStrategy implements passport.Strategy {
constructor(secret: DigestSecretFunction, validate?: DigestValidateFunction);
constructor(options: DigestStrategyOptions, secret: DigestSecretFunction, validate?: DigestValidateFunction);
name: string;
authenticate(req: express.Request, options?: object): void;
}
These definitions were written by Christophe Vidal, Tomek Łaziuk, Chris Barth, and James Adarich.
FAQs
TypeScript definitions for passport-http
We found that @types/passport-http demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.