@types/passport-azure-ad
Advanced tools
Comparing version 4.3.1 to 4.3.2
@@ -0,3 +1,3 @@ | ||
import { Request } from "express"; | ||
import * as passport from "passport"; | ||
import { Request } from "express"; | ||
import { IBaseStrategyOption, ITokenPayload, VerifyCallback } from "./common"; | ||
@@ -10,3 +10,3 @@ | ||
token: ITokenPayload, | ||
done: VerifyCallback | ||
done: VerifyCallback, | ||
) => void; | ||
@@ -28,3 +28,3 @@ | ||
options: IBearerStrategyOptionWithRequest, | ||
verify: VerifyBearerFunctionWithReq | ||
verify: VerifyBearerFunctionWithReq, | ||
); | ||
@@ -31,0 +31,0 @@ constructor(options: IBearerStrategyOption, verify: VerifyBearerFunction); |
@@ -18,3 +18,3 @@ import { Request } from "express"; | ||
/** A security token service(STS) URI. Identifies the STS that constructs and returns the token, | ||
* and the Azure AD tenant in which the user was authenticated.*/ | ||
* and the Azure AD tenant in which the user was authenticated. */ | ||
iss?: string | undefined; | ||
@@ -74,3 +74,3 @@ /** The identity provider that authenticated the subject of the token*/ | ||
/** Indicates the version of the access token. */ | ||
ver?: '1.0' | '2.0' | undefined; | ||
ver?: "1.0" | "2.0" | undefined; | ||
@@ -77,0 +77,0 @@ /** v1.0 basic claims */ |
@@ -8,3 +8,2 @@ // Type definitions for passport-azure-ad 4.3 | ||
export { ITokenPayload, VerifyCallback } from "./common"; | ||
export { | ||
@@ -15,12 +14,13 @@ BearerStrategy, | ||
VerifyBearerFunction, | ||
VerifyBearerFunctionWithReq | ||
VerifyBearerFunctionWithReq, | ||
} from "./bearer-strategy"; | ||
export { ITokenPayload, VerifyCallback } from "./common"; | ||
export { | ||
OIDCStrategy, | ||
IOIDCStrategyOption, | ||
IOIDCStrategyOptionWithoutRequest, | ||
IOIDCStrategyOptionWithRequest, | ||
IOIDCStrategyOptionWithoutRequest, | ||
IProfile, | ||
OIDCStrategy, | ||
VerifyOIDCFunction, | ||
VerifyOIDCFunctionWithReq | ||
VerifyOIDCFunctionWithReq, | ||
} from "./oidc-strategy"; |
@@ -0,3 +1,3 @@ | ||
import { Request } from "express"; | ||
import * as passport from "passport"; | ||
import { Request } from "express"; | ||
import { IBaseStrategyOption, VerifyCallback } from "./common"; | ||
@@ -14,3 +14,3 @@ | ||
useCookieInsteadOfSession?: boolean | undefined; | ||
cookieEncryptionKeys?: {key: string, iv: string}[] | undefined; | ||
cookieEncryptionKeys?: { key: string; iv: string }[] | undefined; | ||
nonceLifetime?: number | undefined; | ||
@@ -46,16 +46,67 @@ nonceMaxAmount?: number | undefined; | ||
export type VerifyOIDCFunction = | ||
((profile: IProfile, done: VerifyCallback) => void) | | ||
((iss: string, sub: string, done: VerifyCallback) => void) | | ||
((iss: string, sub: string, profile: IProfile, done: VerifyCallback) => void) | | ||
((iss: string, sub: string, profile: IProfile, access_token: string, refresh_token: string, done: VerifyCallback) => void) | | ||
((iss: string, sub: string, profile: IProfile, access_token: string, refresh_token: string, params: any, done: VerifyCallback) => void) | | ||
((iss: string, sub: string, profile: IProfile, jwtClaims: any, access_token: string, refresh_token: string, params: any, done: VerifyCallback) => void); | ||
| ((profile: IProfile, done: VerifyCallback) => void) | ||
| ((iss: string, sub: string, done: VerifyCallback) => void) | ||
| ((iss: string, sub: string, profile: IProfile, done: VerifyCallback) => void) | ||
| (( | ||
iss: string, | ||
sub: string, | ||
profile: IProfile, | ||
access_token: string, | ||
refresh_token: string, | ||
done: VerifyCallback, | ||
) => void) | ||
| (( | ||
iss: string, | ||
sub: string, | ||
profile: IProfile, | ||
access_token: string, | ||
refresh_token: string, | ||
params: any, | ||
done: VerifyCallback, | ||
) => void) | ||
| (( | ||
iss: string, | ||
sub: string, | ||
profile: IProfile, | ||
jwtClaims: any, | ||
access_token: string, | ||
refresh_token: string, | ||
params: any, | ||
done: VerifyCallback, | ||
) => void); | ||
export type VerifyOIDCFunctionWithReq = | ||
((req: Request, profile: IProfile, done: VerifyCallback) => void) | | ||
((req: Request, iss: string, sub: string, done: VerifyCallback) => void) | | ||
((req: Request, iss: string, sub: string, profile: IProfile, done: VerifyCallback) => void) | | ||
((req: Request, iss: string, sub: string, profile: IProfile, access_token: string, refresh_token: string, done: VerifyCallback) => void) | | ||
((req: Request, iss: string, sub: string, profile: IProfile, access_token: string, refresh_token: string, params: any, done: VerifyCallback) => void) | | ||
((req: Request, iss: string, sub: string, profile: IProfile, jwtClaims: any, access_token: string, refresh_token: string, params: any, done: VerifyCallback) => void); | ||
| ((req: Request, profile: IProfile, done: VerifyCallback) => void) | ||
| ((req: Request, iss: string, sub: string, done: VerifyCallback) => void) | ||
| ((req: Request, iss: string, sub: string, profile: IProfile, done: VerifyCallback) => void) | ||
| (( | ||
req: Request, | ||
iss: string, | ||
sub: string, | ||
profile: IProfile, | ||
access_token: string, | ||
refresh_token: string, | ||
done: VerifyCallback, | ||
) => void) | ||
| (( | ||
req: Request, | ||
iss: string, | ||
sub: string, | ||
profile: IProfile, | ||
access_token: string, | ||
refresh_token: string, | ||
params: any, | ||
done: VerifyCallback, | ||
) => void) | ||
| (( | ||
req: Request, | ||
iss: string, | ||
sub: string, | ||
profile: IProfile, | ||
jwtClaims: any, | ||
access_token: string, | ||
refresh_token: string, | ||
params: any, | ||
done: VerifyCallback, | ||
) => void); | ||
@@ -65,3 +116,3 @@ export class OIDCStrategy implements passport.Strategy { | ||
options: IOIDCStrategyOptionWithRequest, | ||
verify: VerifyOIDCFunctionWithReq | ||
verify: VerifyOIDCFunctionWithReq, | ||
); | ||
@@ -68,0 +119,0 @@ constructor(options: IOIDCStrategyOptionWithoutRequest, verify: VerifyOIDCFunction); |
{ | ||
"name": "@types/passport-azure-ad", | ||
"version": "4.3.1", | ||
"version": "4.3.2", | ||
"description": "TypeScript definitions for passport-azure-ad", | ||
@@ -31,4 +31,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/passport-azure-ad", | ||
}, | ||
"typesPublisherContentHash": "dfef790b4633250e7b5ccf8a037fca6d1eef870282befcb07763f1693117c0b2", | ||
"typeScriptVersion": "3.6" | ||
"typesPublisherContentHash": "768c46acceaa39b852cadc1f63f1d92410575913fd5e8956c020bcb33b018ceb", | ||
"typeScriptVersion": "4.5" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Thu, 08 Jul 2021 20:19:21 GMT | ||
* Last updated: Sun, 24 Sep 2023 06:37:28 GMT | ||
* Dependencies: [@types/express](https://npmjs.com/package/@types/express), [@types/passport](https://npmjs.com/package/@types/passport) | ||
@@ -14,0 +14,0 @@ * Global values: none |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
14392
256