@types/passport-azure-ad
Advanced tools
Comparing version 4.0.8 to 4.3.0
@@ -20,2 +20,4 @@ import { Request } from "express"; | ||
iss?: string; | ||
/** The identity provider that authenticated the subject of the token*/ | ||
idp?: string; | ||
/** "Issued At" indicates when the authentication for this token occurred. */ | ||
@@ -27,22 +29,18 @@ iat?: number; | ||
exp?: number; | ||
/** 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"; | ||
/** An internal claim used by Azure AD to record data for token reuse. */ | ||
aio?: string; | ||
/** Identifies how the subject of the token was authenticated. */ | ||
/** 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"; | ||
/** Only present in v1.0 tokens. Identifies how the subject of the token was authenticated. */ | ||
amr?: string[]; | ||
/** GUID represents the application ID of the client using the token. */ | ||
/** Only present in v1.0 tokens. GUID represents the application ID of the client using the token. */ | ||
appid?: string; | ||
/** Indicates how the client was authenticated. For a public client, the value is "0". | ||
/** Only present in v2.0 tokens. The application ID of the client using the token. */ | ||
azp?: string; | ||
/** 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"; | ||
/** Only present in v2.0 tokens. The application ID of the client using the token. */ | ||
azp?: string; | ||
/** 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"; | ||
/** Provides object IDs that represent the subject's group memberships. */ | ||
groups?: string | string[]; | ||
/** Denoting the user is in at least one group. */ | ||
hasgroups?: true; | ||
/** 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 */ | ||
@@ -53,10 +51,10 @@ preferred_username?: string; | ||
name?: string; | ||
/** GUID represents a user. This ID uniquely identifies the user across applications. */ | ||
oid?: string; | ||
/** An internal claim used by Azure to revalidate tokens. */ | ||
rh?: string; | ||
/** The set of scopes exposed by your application for which the client application has requested (and received) consent. */ | ||
scp?: string; | ||
/** The set of permissions exposed by your application that the requesting application has been given permission to call. */ | ||
roles?: string; | ||
roles?: string[]; | ||
/** Provides object IDs that represent the subject's group memberships. */ | ||
groups?: string | string[]; | ||
/** Denoting the user is in at least one group. */ | ||
hasgroups?: true; | ||
/** 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. | ||
@@ -67,2 +65,4 @@ * It can be used to perform authorization checks safely, such as when the token is used to access a resource, | ||
sub?: string; | ||
/** GUID represents a user. This ID uniquely identifies the user across applications. */ | ||
oid?: string; | ||
/** Represents the Azure AD tenant that the user is from. */ | ||
@@ -72,8 +72,29 @@ tid?: string; | ||
unique_name?: string; | ||
/** The username of the user. May be a phone number, email address, or unformatted string. */ | ||
upn?: string; | ||
/** An internal claim used by Azure to revalidate tokens. */ | ||
uti?: string; | ||
/** An internal claim used by Azure to revalidate tokens. */ | ||
rh?: string; | ||
/** Indicates the version of the access token. */ | ||
ver?: string; | ||
ver?: '1.0' | '2.0'; | ||
/** v1.0 basic claims */ | ||
/** The IP address the user authenticated from. */ | ||
ipaddr?: string; | ||
/** In cases where the user has an on-premises authentication, this claim provides their SID. */ | ||
onprem_sid?: string; | ||
/** Indicates when the user's password expires. */ | ||
pwd_exp?: number; | ||
/** A URL where users can be sent to reset their password. */ | ||
pwd_url?: string; | ||
/** Signals if the client is logging in from the corporate network. If they aren't, the claim isn't included. */ | ||
in_corp?: string; | ||
/** An additional name for the user, separate from first or last name */ | ||
nickname?: string; | ||
/** Provides the last name, surname, or family name of the user as defined on the user object. */ | ||
family_name?: string; | ||
/** Provides the first or given name of the user, as set on the user object. */ | ||
given_name?: string; | ||
/** The username of the user. May be a phone number, email address, or unformatted string. */ | ||
upn?: string; | ||
} | ||
@@ -80,0 +101,0 @@ |
@@ -1,4 +0,5 @@ | ||
// Type definitions for passport-azure-ad 4.0 | ||
// Type definitions for passport-azure-ad 4.3 | ||
// Project: https://github.com/AzureAD/passport-azure-ad#readme | ||
// Definitions by: Shekhar Nain <https://github.com/ShekharNain> | ||
// Jason <https://github.com/JasonMan34> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
@@ -5,0 +6,0 @@ // TypeScript Version: 2.9 |
{ | ||
"name": "@types/passport-azure-ad", | ||
"version": "4.0.8", | ||
"version": "4.3.0", | ||
"description": "TypeScript definitions for passport-azure-ad", | ||
@@ -11,2 +11,7 @@ "license": "MIT", | ||
"githubUsername": "ShekharNain" | ||
}, | ||
{ | ||
"name": "Jason", | ||
"url": "https://github.com/JasonMan34", | ||
"githubUsername": "JasonMan34" | ||
} | ||
@@ -26,4 +31,4 @@ ], | ||
}, | ||
"typesPublisherContentHash": "2435c8620a488ca1bbc5f163c5f53c374dfa64e6d4f625fbe705e558199ddb9f", | ||
"typeScriptVersion": "3.4" | ||
"typesPublisherContentHash": "86907a902f91039dd8093ef5a3138f9f4703ced44603c9ccfbd4cf8cdef89b3d", | ||
"typeScriptVersion": "3.5" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Fri, 22 Jan 2021 00:05:17 GMT | ||
* Last updated: Sat, 22 May 2021 15:01:22 GMT | ||
* Dependencies: [@types/express](https://npmjs.com/package/@types/express), [@types/passport](https://npmjs.com/package/@types/passport) | ||
@@ -17,2 +17,2 @@ * Global values: none | ||
# Credits | ||
These definitions were written by [Shekhar Nain](https://github.com/ShekharNain). | ||
These definitions were written by [Shekhar Nain](https://github.com/ShekharNain), and [Jason](https://github.com/JasonMan34). |
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
13104
205