@azure/core-auth
Advanced tools
Comparing version 1.8.1-alpha.20241016.3 to 1.9.0
@@ -0,1 +1,2 @@ | ||
export { HttpMethods } from "@azure/core-util"; | ||
export { AzureKeyCredential } from "./azureKeyCredential.js"; | ||
@@ -2,0 +3,0 @@ export { KeyCredential, isKeyCredential } from "./keyCredential.js"; |
@@ -1,3 +0,1 @@ | ||
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT License. | ||
export { AzureKeyCredential } from "./azureKeyCredential.js"; | ||
@@ -4,0 +2,0 @@ export { isKeyCredential } from "./keyCredential.js"; |
import { AbortSignalLike } from "@azure/abort-controller"; | ||
import { TracingContext } from "./tracing.js"; | ||
import { HttpMethods } from "@azure/core-util"; | ||
/** | ||
@@ -57,2 +58,23 @@ * Represents a credential capable of providing an authentication token. | ||
tenantId?: string; | ||
/** | ||
* Options for Proof of Possession token requests | ||
*/ | ||
proofOfPossessionOptions?: { | ||
/** | ||
* The nonce value required for PoP token requests. | ||
* This is typically retrieved from the WWW-Authenticate header of a 401 challenge response. | ||
* This is used in combination with {@link resourceRequestUrl} and {@link resourceRequestMethod} to generate the PoP token. | ||
*/ | ||
nonce: string; | ||
/** | ||
* The HTTP method of the request. | ||
* This is used in combination with {@link resourceRequestUrl} and {@link nonce} to generate the PoP token. | ||
*/ | ||
resourceRequestMethod: HttpMethods; | ||
/** | ||
* The URL of the request. | ||
* This is used in combination with {@link resourceRequestMethod} and {@link nonce} to generate the PoP token. | ||
*/ | ||
resourceRequestUrl: string; | ||
}; | ||
} | ||
@@ -75,4 +97,18 @@ /** | ||
refreshAfterTimestamp?: number; | ||
/** Type of token - `Bearer` or `pop` */ | ||
tokenType?: "Bearer" | "pop"; | ||
} | ||
/** | ||
* @internal | ||
* @param accessToken - Access token | ||
* @returns Whether a token is bearer type or not | ||
*/ | ||
export declare function isBearerToken(accessToken: AccessToken): boolean; | ||
/** | ||
* @internal | ||
* @param accessToken - Access token | ||
* @returns Whether a token is Pop token or not | ||
*/ | ||
export declare function isPopToken(accessToken: AccessToken): boolean; | ||
/** | ||
* Tests an object to determine whether it implements TokenCredential. | ||
@@ -79,0 +115,0 @@ * |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT License. | ||
/** | ||
* @internal | ||
* @param accessToken - Access token | ||
* @returns Whether a token is bearer type or not | ||
*/ | ||
export function isBearerToken(accessToken) { | ||
return !accessToken.tokenType || accessToken.tokenType === "Bearer"; | ||
} | ||
/** | ||
* @internal | ||
* @param accessToken - Access token | ||
* @returns Whether a token is Pop token or not | ||
*/ | ||
export function isPopToken(accessToken) { | ||
return accessToken.tokenType === "pop"; | ||
} | ||
/** | ||
* Tests an object to determine whether it implements TokenCredential. | ||
@@ -5,0 +21,0 @@ * |
@@ -0,1 +1,2 @@ | ||
export { HttpMethods } from "@azure/core-util"; | ||
export { AzureKeyCredential } from "./azureKeyCredential.js"; | ||
@@ -2,0 +3,0 @@ export { KeyCredential, isKeyCredential } from "./keyCredential.js"; |
"use strict"; | ||
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT License. | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -5,0 +3,0 @@ exports.isTokenCredential = exports.isSASCredential = exports.AzureSASCredential = exports.isNamedKeyCredential = exports.AzureNamedKeyCredential = exports.isKeyCredential = exports.AzureKeyCredential = void 0; |
import { AbortSignalLike } from "@azure/abort-controller"; | ||
import { TracingContext } from "./tracing.js"; | ||
import { HttpMethods } from "@azure/core-util"; | ||
/** | ||
@@ -57,2 +58,23 @@ * Represents a credential capable of providing an authentication token. | ||
tenantId?: string; | ||
/** | ||
* Options for Proof of Possession token requests | ||
*/ | ||
proofOfPossessionOptions?: { | ||
/** | ||
* The nonce value required for PoP token requests. | ||
* This is typically retrieved from the WWW-Authenticate header of a 401 challenge response. | ||
* This is used in combination with {@link resourceRequestUrl} and {@link resourceRequestMethod} to generate the PoP token. | ||
*/ | ||
nonce: string; | ||
/** | ||
* The HTTP method of the request. | ||
* This is used in combination with {@link resourceRequestUrl} and {@link nonce} to generate the PoP token. | ||
*/ | ||
resourceRequestMethod: HttpMethods; | ||
/** | ||
* The URL of the request. | ||
* This is used in combination with {@link resourceRequestMethod} and {@link nonce} to generate the PoP token. | ||
*/ | ||
resourceRequestUrl: string; | ||
}; | ||
} | ||
@@ -75,4 +97,18 @@ /** | ||
refreshAfterTimestamp?: number; | ||
/** Type of token - `Bearer` or `pop` */ | ||
tokenType?: "Bearer" | "pop"; | ||
} | ||
/** | ||
* @internal | ||
* @param accessToken - Access token | ||
* @returns Whether a token is bearer type or not | ||
*/ | ||
export declare function isBearerToken(accessToken: AccessToken): boolean; | ||
/** | ||
* @internal | ||
* @param accessToken - Access token | ||
* @returns Whether a token is Pop token or not | ||
*/ | ||
export declare function isPopToken(accessToken: AccessToken): boolean; | ||
/** | ||
* Tests an object to determine whether it implements TokenCredential. | ||
@@ -79,0 +115,0 @@ * |
@@ -5,4 +5,22 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.isBearerToken = isBearerToken; | ||
exports.isPopToken = isPopToken; | ||
exports.isTokenCredential = isTokenCredential; | ||
/** | ||
* @internal | ||
* @param accessToken - Access token | ||
* @returns Whether a token is bearer type or not | ||
*/ | ||
function isBearerToken(accessToken) { | ||
return !accessToken.tokenType || accessToken.tokenType === "Bearer"; | ||
} | ||
/** | ||
* @internal | ||
* @param accessToken - Access token | ||
* @returns Whether a token is Pop token or not | ||
*/ | ||
function isPopToken(accessToken) { | ||
return accessToken.tokenType === "pop"; | ||
} | ||
/** | ||
* Tests an object to determine whether it implements TokenCredential. | ||
@@ -9,0 +27,0 @@ * |
import { AbortSignalLike } from '@azure/abort-controller'; | ||
import { HttpMethods } from '@azure/core-util'; | ||
@@ -19,2 +20,4 @@ /** | ||
refreshAfterTimestamp?: number; | ||
/** Type of token - `Bearer` or `pop` */ | ||
tokenType?: "Bearer" | "pop"; | ||
} | ||
@@ -151,4 +154,27 @@ | ||
tenantId?: string; | ||
/** | ||
* Options for Proof of Possession token requests | ||
*/ | ||
proofOfPossessionOptions?: { | ||
/** | ||
* The nonce value required for PoP token requests. | ||
* This is typically retrieved from the WWW-Authenticate header of a 401 challenge response. | ||
* This is used in combination with {@link resourceRequestUrl} and {@link resourceRequestMethod} to generate the PoP token. | ||
*/ | ||
nonce: string; | ||
/** | ||
* The HTTP method of the request. | ||
* This is used in combination with {@link resourceRequestUrl} and {@link nonce} to generate the PoP token. | ||
*/ | ||
resourceRequestMethod: HttpMethods; | ||
/** | ||
* The URL of the request. | ||
* This is used in combination with {@link resourceRequestMethod} and {@link nonce} to generate the PoP token. | ||
*/ | ||
resourceRequestUrl: string; | ||
}; | ||
} | ||
export { HttpMethods } | ||
/** | ||
@@ -155,0 +181,0 @@ * Tests an object to determine whether it implements KeyCredential. |
@@ -0,1 +1,2 @@ | ||
export { HttpMethods } from "@azure/core-util"; | ||
export { AzureKeyCredential } from "./azureKeyCredential.js"; | ||
@@ -2,0 +3,0 @@ export { KeyCredential, isKeyCredential } from "./keyCredential.js"; |
@@ -1,3 +0,1 @@ | ||
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT License. | ||
export { AzureKeyCredential } from "./azureKeyCredential.js"; | ||
@@ -4,0 +2,0 @@ export { isKeyCredential } from "./keyCredential.js"; |
import { AbortSignalLike } from "@azure/abort-controller"; | ||
import { TracingContext } from "./tracing.js"; | ||
import { HttpMethods } from "@azure/core-util"; | ||
/** | ||
@@ -57,2 +58,23 @@ * Represents a credential capable of providing an authentication token. | ||
tenantId?: string; | ||
/** | ||
* Options for Proof of Possession token requests | ||
*/ | ||
proofOfPossessionOptions?: { | ||
/** | ||
* The nonce value required for PoP token requests. | ||
* This is typically retrieved from the WWW-Authenticate header of a 401 challenge response. | ||
* This is used in combination with {@link resourceRequestUrl} and {@link resourceRequestMethod} to generate the PoP token. | ||
*/ | ||
nonce: string; | ||
/** | ||
* The HTTP method of the request. | ||
* This is used in combination with {@link resourceRequestUrl} and {@link nonce} to generate the PoP token. | ||
*/ | ||
resourceRequestMethod: HttpMethods; | ||
/** | ||
* The URL of the request. | ||
* This is used in combination with {@link resourceRequestMethod} and {@link nonce} to generate the PoP token. | ||
*/ | ||
resourceRequestUrl: string; | ||
}; | ||
} | ||
@@ -75,4 +97,18 @@ /** | ||
refreshAfterTimestamp?: number; | ||
/** Type of token - `Bearer` or `pop` */ | ||
tokenType?: "Bearer" | "pop"; | ||
} | ||
/** | ||
* @internal | ||
* @param accessToken - Access token | ||
* @returns Whether a token is bearer type or not | ||
*/ | ||
export declare function isBearerToken(accessToken: AccessToken): boolean; | ||
/** | ||
* @internal | ||
* @param accessToken - Access token | ||
* @returns Whether a token is Pop token or not | ||
*/ | ||
export declare function isPopToken(accessToken: AccessToken): boolean; | ||
/** | ||
* Tests an object to determine whether it implements TokenCredential. | ||
@@ -79,0 +115,0 @@ * |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT License. | ||
/** | ||
* @internal | ||
* @param accessToken - Access token | ||
* @returns Whether a token is bearer type or not | ||
*/ | ||
export function isBearerToken(accessToken) { | ||
return !accessToken.tokenType || accessToken.tokenType === "Bearer"; | ||
} | ||
/** | ||
* @internal | ||
* @param accessToken - Access token | ||
* @returns Whether a token is Pop token or not | ||
*/ | ||
export function isPopToken(accessToken) { | ||
return accessToken.tokenType === "pop"; | ||
} | ||
/** | ||
* Tests an object to determine whether it implements TokenCredential. | ||
@@ -5,0 +21,0 @@ * |
@@ -0,1 +1,2 @@ | ||
export { HttpMethods } from "@azure/core-util"; | ||
export { AzureKeyCredential } from "./azureKeyCredential.js"; | ||
@@ -2,0 +3,0 @@ export { KeyCredential, isKeyCredential } from "./keyCredential.js"; |
@@ -1,3 +0,1 @@ | ||
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT License. | ||
export { AzureKeyCredential } from "./azureKeyCredential.js"; | ||
@@ -4,0 +2,0 @@ export { isKeyCredential } from "./keyCredential.js"; |
import { AbortSignalLike } from "@azure/abort-controller"; | ||
import { TracingContext } from "./tracing.js"; | ||
import { HttpMethods } from "@azure/core-util"; | ||
/** | ||
@@ -57,2 +58,23 @@ * Represents a credential capable of providing an authentication token. | ||
tenantId?: string; | ||
/** | ||
* Options for Proof of Possession token requests | ||
*/ | ||
proofOfPossessionOptions?: { | ||
/** | ||
* The nonce value required for PoP token requests. | ||
* This is typically retrieved from the WWW-Authenticate header of a 401 challenge response. | ||
* This is used in combination with {@link resourceRequestUrl} and {@link resourceRequestMethod} to generate the PoP token. | ||
*/ | ||
nonce: string; | ||
/** | ||
* The HTTP method of the request. | ||
* This is used in combination with {@link resourceRequestUrl} and {@link nonce} to generate the PoP token. | ||
*/ | ||
resourceRequestMethod: HttpMethods; | ||
/** | ||
* The URL of the request. | ||
* This is used in combination with {@link resourceRequestMethod} and {@link nonce} to generate the PoP token. | ||
*/ | ||
resourceRequestUrl: string; | ||
}; | ||
} | ||
@@ -75,4 +97,18 @@ /** | ||
refreshAfterTimestamp?: number; | ||
/** Type of token - `Bearer` or `pop` */ | ||
tokenType?: "Bearer" | "pop"; | ||
} | ||
/** | ||
* @internal | ||
* @param accessToken - Access token | ||
* @returns Whether a token is bearer type or not | ||
*/ | ||
export declare function isBearerToken(accessToken: AccessToken): boolean; | ||
/** | ||
* @internal | ||
* @param accessToken - Access token | ||
* @returns Whether a token is Pop token or not | ||
*/ | ||
export declare function isPopToken(accessToken: AccessToken): boolean; | ||
/** | ||
* Tests an object to determine whether it implements TokenCredential. | ||
@@ -79,0 +115,0 @@ * |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT License. | ||
/** | ||
* @internal | ||
* @param accessToken - Access token | ||
* @returns Whether a token is bearer type or not | ||
*/ | ||
export function isBearerToken(accessToken) { | ||
return !accessToken.tokenType || accessToken.tokenType === "Bearer"; | ||
} | ||
/** | ||
* @internal | ||
* @param accessToken - Access token | ||
* @returns Whether a token is Pop token or not | ||
*/ | ||
export function isPopToken(accessToken) { | ||
return accessToken.tokenType === "pop"; | ||
} | ||
/** | ||
* Tests an object to determine whether it implements TokenCredential. | ||
@@ -5,0 +21,0 @@ * |
{ | ||
"name": "@azure/core-auth", | ||
"version": "1.8.1-alpha.20241016.3", | ||
"version": "1.9.0", | ||
"description": "Provides low-level interfaces and helper methods for authentication in Azure SDK", | ||
@@ -78,8 +78,8 @@ "sdk-type": "client", | ||
"@azure/abort-controller": "^2.0.0", | ||
"@azure/core-util": "^1.1.0", | ||
"@azure/core-util": "^1.11.0", | ||
"tslib": "^2.6.2" | ||
}, | ||
"devDependencies": { | ||
"@azure/dev-tool": ">=1.0.0-alpha <1.0.0-alphb", | ||
"@azure/eslint-plugin-azure-sdk": ">=3.0.0-alpha <3.0.0-alphb", | ||
"@azure/dev-tool": "^1.0.0", | ||
"@azure/eslint-plugin-azure-sdk": "^3.0.0", | ||
"@microsoft/api-extractor": "^7.40.3", | ||
@@ -86,0 +86,0 @@ "@types/node": "^18.0.0", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
167809
2260
0
4
295
18
142
Updated@azure/core-util@^1.11.0