@azure/functions
Advanced tools
Comparing version 3.0.0 to 3.1.0
@@ -111,2 +111,31 @@ // Copyright (c) .NET Foundation. All rights reserved. | ||
/** | ||
* Object representing logged-in user, either through | ||
* AppService/Functions authentication, or SWA Authentication | ||
*/ | ||
export interface HttpRequestUser { | ||
/** | ||
* Type of authentication, either AppService or StaticWebApps | ||
*/ | ||
type: HttpRequestUserType; | ||
/** | ||
* unique user GUID | ||
*/ | ||
id: string; | ||
/** | ||
* unique username | ||
*/ | ||
username: string; | ||
/** | ||
* provider of authentication service | ||
*/ | ||
identityProvider: string; | ||
/** | ||
* Extra authentication information, dependent on auth type | ||
* and auth provider | ||
*/ | ||
claimsPrincipalData: { | ||
[key: string]: any; | ||
}; | ||
} | ||
/** | ||
* HTTP request object. Provided to your function when using HTTP Bindings. | ||
@@ -136,2 +165,8 @@ */ | ||
/** | ||
* Object representing logged-in user, either through | ||
* AppService/Functions authentication, or SWA Authentication | ||
* null when no such user is logged in. | ||
*/ | ||
user: HttpRequestUser | null; | ||
/** | ||
* The HTTP request body. | ||
@@ -150,2 +185,6 @@ */ | ||
/** | ||
* Possible values for an HTTP Request user type | ||
*/ | ||
export type HttpRequestUserType = 'AppService' | 'StaticWebApps'; | ||
/** | ||
* Http response cookie object to "Set-Cookie" | ||
@@ -152,0 +191,0 @@ */ |
{ | ||
"name": "@azure/functions", | ||
"version": "3.0.0", | ||
"version": "3.1.0", | ||
"description": "Azure Functions types for Typescript", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -0,0 +0,0 @@ # Type definitions for Azure Functions |
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
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 2 instances 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
21868
8
517
2