modules inc
This commit is contained in:
38
node_modules/@azure/msal-node/dist/crypto/CryptoProvider.d.ts
generated
vendored
Normal file
38
node_modules/@azure/msal-node/dist/crypto/CryptoProvider.d.ts
generated
vendored
Normal file
@@ -0,0 +1,38 @@
|
||||
import { ICrypto, PkceCodes } from "@azure/msal-common";
|
||||
/**
|
||||
* This class implements MSAL node's crypto interface, which allows it to perform base64 encoding and decoding, generating cryptographically random GUIDs and
|
||||
* implementing Proof Key for Code Exchange specs for the OAuth Authorization Code Flow using PKCE (rfc here: https://tools.ietf.org/html/rfc7636).
|
||||
* @public
|
||||
*/
|
||||
export declare class CryptoProvider implements ICrypto {
|
||||
private pkceGenerator;
|
||||
constructor();
|
||||
/**
|
||||
* Creates a new random GUID - used to populate state and nonce.
|
||||
* @returns string (GUID)
|
||||
*/
|
||||
createNewGuid(): string;
|
||||
/**
|
||||
* Encodes input string to base64.
|
||||
* @param input - string to be encoded
|
||||
*/
|
||||
base64Encode(input: string): string;
|
||||
/**
|
||||
* Decodes input string from base64.
|
||||
* @param input - string to be decoded
|
||||
*/
|
||||
base64Decode(input: string): string;
|
||||
/**
|
||||
* Generates PKCE codes used in Authorization Code Flow.
|
||||
*/
|
||||
generatePkceCodes(): Promise<PkceCodes>;
|
||||
/**
|
||||
* Generates a keypair, stores it and returns a thumbprint - not yet implemented for node
|
||||
*/
|
||||
getPublicKeyThumbprint(): Promise<string>;
|
||||
/**
|
||||
* Signs the given object as a jwt payload with private key retrieved by given kid - currently not implemented for node
|
||||
*/
|
||||
signJwt(): Promise<string>;
|
||||
}
|
||||
//# sourceMappingURL=CryptoProvider.d.ts.map
|
1
node_modules/@azure/msal-node/dist/crypto/CryptoProvider.d.ts.map
generated
vendored
Normal file
1
node_modules/@azure/msal-node/dist/crypto/CryptoProvider.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"CryptoProvider.d.ts","sourceRoot":"","sources":["../src/crypto/CryptoProvider.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAKxD;;;;GAIG;AACH,qBAAa,cAAe,YAAW,OAAO;IAC1C,OAAO,CAAC,aAAa,CAAgB;;IAOrC;;;OAGG;IACH,aAAa,IAAI,MAAM;IAIvB;;;OAGG;IACH,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM;IAInC;;;OAGG;IACH,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM;IAInC;;OAEG;IACH,iBAAiB,IAAI,OAAO,CAAC,SAAS,CAAC;IAIvC;;OAEG;IACH,sBAAsB,IAAI,OAAO,CAAC,MAAM,CAAC;IAIzC;;OAEG;IACH,OAAO,IAAI,OAAO,CAAC,MAAM,CAAC;CAG7B"}
|
14
node_modules/@azure/msal-node/dist/crypto/GuidGenerator.d.ts
generated
vendored
Normal file
14
node_modules/@azure/msal-node/dist/crypto/GuidGenerator.d.ts
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
export declare class GuidGenerator {
|
||||
/**
|
||||
*
|
||||
* RFC4122: The version 4 UUID is meant for generating UUIDs from truly-random or pseudo-random numbers.
|
||||
* uuidv4 generates guids from cryprtographically-string random
|
||||
*/
|
||||
static generateGuid(): string;
|
||||
/**
|
||||
* verifies if a string is GUID
|
||||
* @param guid
|
||||
*/
|
||||
static isGuid(guid: string): boolean;
|
||||
}
|
||||
//# sourceMappingURL=GuidGenerator.d.ts.map
|
1
node_modules/@azure/msal-node/dist/crypto/GuidGenerator.d.ts.map
generated
vendored
Normal file
1
node_modules/@azure/msal-node/dist/crypto/GuidGenerator.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"GuidGenerator.d.ts","sourceRoot":"","sources":["../src/crypto/GuidGenerator.ts"],"names":[],"mappings":"AAOA,qBAAa,aAAa;IACtB;;;;OAIG;IACH,MAAM,CAAC,YAAY,IAAI,MAAM;IAI7B;;;OAGG;IACH,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM;CAI7B"}
|
31
node_modules/@azure/msal-node/dist/crypto/PkceGenerator.d.ts
generated
vendored
Normal file
31
node_modules/@azure/msal-node/dist/crypto/PkceGenerator.d.ts
generated
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
import { PkceCodes } from "@azure/msal-common";
|
||||
/**
|
||||
* https://tools.ietf.org/html/rfc7636#page-8
|
||||
*/
|
||||
export declare class PkceGenerator {
|
||||
/**
|
||||
* generates the codeVerfier and the challenge from the codeVerfier
|
||||
* reference: https://tools.ietf.org/html/rfc7636#section-4.1 and https://tools.ietf.org/html/rfc7636#section-4.2
|
||||
*/
|
||||
generatePkceCodes(): Promise<PkceCodes>;
|
||||
/**
|
||||
* generates the codeVerfier; reference: https://tools.ietf.org/html/rfc7636#section-4.1
|
||||
*/
|
||||
private generateCodeVerifier;
|
||||
/**
|
||||
* generate the challenge from the codeVerfier; reference: https://tools.ietf.org/html/rfc7636#section-4.2
|
||||
* @param codeVerifier
|
||||
*/
|
||||
private generateCodeChallengeFromVerifier;
|
||||
/**
|
||||
* generate 'SHA256' hash
|
||||
* @param buffer
|
||||
*/
|
||||
private sha256;
|
||||
/**
|
||||
* Accepted characters; reference: https://tools.ietf.org/html/rfc7636#section-4.1
|
||||
* @param buffer
|
||||
*/
|
||||
private bufferToCVString;
|
||||
}
|
||||
//# sourceMappingURL=PkceGenerator.d.ts.map
|
1
node_modules/@azure/msal-node/dist/crypto/PkceGenerator.d.ts.map
generated
vendored
Normal file
1
node_modules/@azure/msal-node/dist/crypto/PkceGenerator.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"PkceGenerator.d.ts","sourceRoot":"","sources":["../src/crypto/PkceGenerator.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAK/C;;GAEG;AACH,qBAAa,aAAa;IACtB;;;OAGG;IACG,iBAAiB,IAAI,OAAO,CAAC,SAAS,CAAC;IAM7C;;OAEG;IACH,OAAO,CAAC,oBAAoB;IAM5B;;;OAGG;IACH,OAAO,CAAC,iCAAiC;IAOzC;;;OAGG;IACH,OAAO,CAAC,MAAM;IAOd;;;OAGG;IACH,OAAO,CAAC,gBAAgB;CAQ3B"}
|
Reference in New Issue
Block a user