Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@types/passport-azure-ad

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/passport-azure-ad - npm Package Compare versions

Comparing version 4.3.0 to 4.3.1

8

passport-azure-ad/bearer-strategy.d.ts

@@ -14,6 +14,6 @@ import * as passport from "passport";

export interface IBearerStrategyOption extends IBaseStrategyOption {
audience?: string | string[];
policyName?: String;
allowMultiAudiencesInToken?: boolean;
scope?: string[];
audience?: string | string[] | undefined;
policyName?: String | undefined;
allowMultiAudiencesInToken?: boolean | undefined;
scope?: string[] | undefined;
}

@@ -20,0 +20,0 @@

@@ -6,8 +6,8 @@ import { Request } from "express";

clientID: string;
isB2C?: boolean;
validateIssuer?: boolean;
issuer?: string | string[];
loggingLevel?: "info" | "warn" | "error";
loggingNoPII?: boolean;
clockSkew?: number;
isB2C?: boolean | undefined;
validateIssuer?: boolean | undefined;
issuer?: string | string[] | undefined;
loggingLevel?: "info" | "warn" | "error" | undefined;
loggingNoPII?: boolean | undefined;
clockSkew?: number | undefined;
}

@@ -17,43 +17,43 @@

/** An App ID URI. Identifies the intended recipient of the token. */
aud?: string;
aud?: string | undefined;
/** 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.*/
iss?: string;
iss?: string | undefined;
/** The identity provider that authenticated the subject of the token*/
idp?: string;
idp?: string | undefined;
/** "Issued At" indicates when the authentication for this token occurred. */
iat?: number;
iat?: number | undefined;
/** The "nbf" (not before) claim identifies the time before which the JWT must not be accepted for processing. */
nbf?: number;
nbf?: number | undefined;
/** The "exp" (expiration time) claim identifies the expiration time on or after which the JWT must not be accepted for processing. */
exp?: number;
exp?: number | undefined;
/** An internal claim used by Azure AD to record data for token reuse. */
aio?: string;
aio?: string | undefined;
/** Only present in v1.0 tokens. The "Authentication context class" claim. A value of "0" indicates the end-user authentication did not meet the requirements of ISO/IEC 29115. */
acr?: "0" | "1";
acr?: "0" | "1" | undefined;
/** Only present in v1.0 tokens. Identifies how the subject of the token was authenticated. */
amr?: string[];
amr?: string[] | undefined;
/** Only present in v1.0 tokens. GUID represents the application ID of the client using the token. */
appid?: string;
appid?: string | undefined;
/** Only present in v2.0 tokens. The application ID of the client using the token. */
azp?: string;
azp?: string | undefined;
/** Only present in v1.0 tokens. Indicates how the client was authenticated. For a public client, the value is "0".
* If client ID and client secret are used, the value is "1". If a client certificate was used for authentication, the value is "2". */
appidacr?: "0" | "1" | "2";
appidacr?: "0" | "1" | "2" | undefined;
/** Only present in v2.0 tokens. Indicates how the client was authenticated.
* For a public client, the value is "0". If client ID and client secret are used, the value is "1". If a client certificate was used for authentication, the value is "2". */
azpacr?: "0" | "1" | "2";
azpacr?: "0" | "1" | "2" | undefined;
/** Only present in v2.0 tokens. The primary username that represents the user. It could be an email address, phone number, or a generic username without a specified format */
preferred_username?: string;
preferred_username?: string | undefined;
/** Provides a human-readable value that identifies the subject of the token.
* The value is not guaranteed to be unique, it is mutable, and it's designed to be used only for display purposes. The profile scope is required in order to receive this claim. */
name?: string;
name?: string | undefined;
/** The set of scopes exposed by your application for which the client application has requested (and received) consent. */
scp?: string;
scp?: string | undefined;
/** The set of permissions exposed by your application that the requesting application has been given permission to call. */
roles?: string[];
roles?: string[] | undefined;
/** Provides object IDs that represent the subject's group memberships. */
groups?: string | string[];
groups?: string | string[] | undefined;
/** Denoting the user is in at least one group. */
hasgroups?: true;
hasgroups?: true | undefined;
/** The principal about which the token asserts information, such as the user of an app. This value is immutable and cannot be reassigned or reused.

@@ -63,15 +63,15 @@ * It can be used to perform authorization checks safely, such as when the token is used to access a resource,

* we recommend using this value in a general-purpose authorization system. The subject is, however, a pairwise identifier - it is unique to a particular application ID. */
sub?: string;
sub?: string | undefined;
/** GUID represents a user. This ID uniquely identifies the user across applications. */
oid?: string;
oid?: string | undefined;
/** Represents the Azure AD tenant that the user is from. */
tid?: string;
tid?: string | undefined;
/** Only present in v1.0 tokens. Provides a human readable value that identifies the subject of the token. */
unique_name?: string;
unique_name?: string | undefined;
/** An internal claim used by Azure to revalidate tokens. */
uti?: string;
uti?: string | undefined;
/** An internal claim used by Azure to revalidate tokens. */
rh?: string;
rh?: string | undefined;
/** Indicates the version of the access token. */
ver?: '1.0' | '2.0';
ver?: '1.0' | '2.0' | undefined;

@@ -81,19 +81,19 @@ /** v1.0 basic claims */

/** The IP address the user authenticated from. */
ipaddr?: string;
ipaddr?: string | undefined;
/** In cases where the user has an on-premises authentication, this claim provides their SID. */
onprem_sid?: string;
onprem_sid?: string | undefined;
/** Indicates when the user's password expires. */
pwd_exp?: number;
pwd_exp?: number | undefined;
/** A URL where users can be sent to reset their password. */
pwd_url?: string;
pwd_url?: string | undefined;
/** Signals if the client is logging in from the corporate network. If they aren't, the claim isn't included. */
in_corp?: string;
in_corp?: string | undefined;
/** An additional name for the user, separate from first or last name */
nickname?: string;
nickname?: string | undefined;
/** Provides the last name, surname, or family name of the user as defined on the user object. */
family_name?: string;
family_name?: string | undefined;
/** Provides the first or given name of the user, as set on the user object. */
given_name?: string;
given_name?: string | undefined;
/** The username of the user. May be a phone number, email address, or unformatted string. */
upn?: string;
upn?: string | undefined;
}

@@ -100,0 +100,0 @@

@@ -9,12 +9,12 @@ import * as passport from "passport";

redirectUrl: string;
allowHttpForRedirectUrl?: boolean;
clientSecret?: string;
thumbprint?: string;
privatePEMKey?: string;
useCookieInsteadOfSession?: boolean;
cookieEncryptionKeys?: {key: string, iv: string}[];
nonceLifetime?: number;
nonceMaxAmount?: number;
scope?: string | string[];
cookieSameSite?: boolean;
allowHttpForRedirectUrl?: boolean | undefined;
clientSecret?: string | undefined;
thumbprint?: string | undefined;
privatePEMKey?: string | undefined;
useCookieInsteadOfSession?: boolean | undefined;
cookieEncryptionKeys?: {key: string, iv: string}[] | undefined;
nonceLifetime?: number | undefined;
nonceMaxAmount?: number | undefined;
scope?: string | string[] | undefined;
cookieSameSite?: boolean | undefined;
}

@@ -31,13 +31,13 @@

export interface IProfile {
sub?: string;
oid?: string;
upn?: string;
displayName?: string;
sub?: string | undefined;
oid?: string | undefined;
upn?: string | undefined;
displayName?: string | undefined;
name?: {
familyName?: string;
givenName?: string;
middleName?: string;
};
familyName?: string | undefined;
givenName?: string | undefined;
middleName?: string | undefined;
} | undefined;
emails?: any;
_raw?: string;
_raw?: string | undefined;
_json?: any;

@@ -44,0 +44,0 @@ }

{
"name": "@types/passport-azure-ad",
"version": "4.3.0",
"version": "4.3.1",
"description": "TypeScript definitions for passport-azure-ad",
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/passport-azure-ad",
"license": "MIT",

@@ -30,4 +31,4 @@ "contributors": [

},
"typesPublisherContentHash": "86907a902f91039dd8093ef5a3138f9f4703ced44603c9ccfbd4cf8cdef89b3d",
"typeScriptVersion": "3.5"
"typesPublisherContentHash": "dfef790b4633250e7b5ccf8a037fca6d1eef870282befcb07763f1693117c0b2",
"typeScriptVersion": "3.6"
}

@@ -11,3 +11,3 @@ # Installation

### Additional Details
* Last updated: Sat, 22 May 2021 15:01:22 GMT
* Last updated: Thu, 08 Jul 2021 20:19:21 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc