Estructura inicial del proyecto
This commit is contained in:
40
backend/node_modules/@azure/msal-node/src/request/AuthorizationCodeRequest.ts
generated
vendored
Normal file
40
backend/node_modules/@azure/msal-node/src/request/AuthorizationCodeRequest.ts
generated
vendored
Normal file
@ -0,0 +1,40 @@
|
||||
/*
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License.
|
||||
*/
|
||||
|
||||
import { CommonAuthorizationCodeRequest } from "@azure/msal-common/node";
|
||||
|
||||
/**
|
||||
* Request object passed by user to acquire a token from the server exchanging a valid authorization code (second leg of OAuth2.0 Authorization Code flow)
|
||||
* @public
|
||||
*/
|
||||
export type AuthorizationCodeRequest = Partial<
|
||||
Omit<
|
||||
CommonAuthorizationCodeRequest,
|
||||
| "scopes"
|
||||
| "redirectUri"
|
||||
| "code"
|
||||
| "authenticationScheme"
|
||||
| "resourceRequestMethod"
|
||||
| "resourceRequestUri"
|
||||
| "storeInCache"
|
||||
>
|
||||
> & {
|
||||
/**
|
||||
* Array of scopes the application is requesting access to.
|
||||
*/
|
||||
scopes: Array<string>;
|
||||
/**
|
||||
* The redirect URI of your app, where the authority will redirect to after the user inputs credentials and consents. It must exactly match one of the redirect URIs you registered in the portal.
|
||||
*/
|
||||
redirectUri: string;
|
||||
/**
|
||||
* The authorization_code that the user acquired in the first leg of the flow.
|
||||
*/
|
||||
code: string;
|
||||
/**
|
||||
* Unique GUID generated by the user that is cached by the user and sent to the server during the first leg of the flow. This string is sent back by the server with the authorization code. The user cached state is then compared with the state received from the server to mitigate the risk of CSRF attacks. See https://datatracker.ietf.org/doc/html/rfc6819#section-3.6.
|
||||
*/
|
||||
state?: string;
|
||||
};
|
||||
31
backend/node_modules/@azure/msal-node/src/request/AuthorizationUrlRequest.ts
generated
vendored
Normal file
31
backend/node_modules/@azure/msal-node/src/request/AuthorizationUrlRequest.ts
generated
vendored
Normal file
@ -0,0 +1,31 @@
|
||||
/*
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License.
|
||||
*/
|
||||
|
||||
import { CommonAuthorizationUrlRequest } from "@azure/msal-common/node";
|
||||
|
||||
/**
|
||||
* Request object passed by user to retrieve a Code from the server (first leg of authorization code grant flow)
|
||||
* @public
|
||||
*/
|
||||
export type AuthorizationUrlRequest = Partial<
|
||||
Omit<
|
||||
CommonAuthorizationUrlRequest,
|
||||
| "scopes"
|
||||
| "redirectUri"
|
||||
| "resourceRequestMethod"
|
||||
| "resourceRequestUri"
|
||||
| "authenticationScheme"
|
||||
| "storeInCache"
|
||||
>
|
||||
> & {
|
||||
/**
|
||||
* Array of scopes the application is requesting access to.
|
||||
*/
|
||||
scopes: Array<string>;
|
||||
/**
|
||||
* The redirect URI where authentication responses can be received by your application. It must exactly match one of the redirect URIs registered in the Azure portal.
|
||||
*/
|
||||
redirectUri: string;
|
||||
};
|
||||
26
backend/node_modules/@azure/msal-node/src/request/ClientCredentialRequest.ts
generated
vendored
Normal file
26
backend/node_modules/@azure/msal-node/src/request/ClientCredentialRequest.ts
generated
vendored
Normal file
@ -0,0 +1,26 @@
|
||||
/*
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License.
|
||||
*/
|
||||
|
||||
import { ClientAssertionCallback } from "@azure/msal-common/node";
|
||||
import { CommonClientCredentialRequest } from "./CommonClientCredentialRequest.js";
|
||||
|
||||
/**
|
||||
* ClientCredentialRequest
|
||||
* @public
|
||||
*/
|
||||
export type ClientCredentialRequest = Partial<
|
||||
Omit<
|
||||
CommonClientCredentialRequest,
|
||||
| "resourceRequestMethod"
|
||||
| "resourceRequestUri"
|
||||
| "clientAssertion"
|
||||
| "storeInCache"
|
||||
>
|
||||
> & {
|
||||
/**
|
||||
* An assertion string or a callback function that returns an assertion string (both are Base64Url-encoded signed JWTs) used in the Client Credential flow
|
||||
*/
|
||||
clientAssertion?: string | ClientAssertionCallback;
|
||||
};
|
||||
31
backend/node_modules/@azure/msal-node/src/request/CommonClientCredentialRequest.ts
generated
vendored
Normal file
31
backend/node_modules/@azure/msal-node/src/request/CommonClientCredentialRequest.ts
generated
vendored
Normal file
@ -0,0 +1,31 @@
|
||||
/*
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License.
|
||||
*/
|
||||
|
||||
import {
|
||||
BaseAuthRequest,
|
||||
AzureRegion,
|
||||
ClientAssertion,
|
||||
} from "@azure/msal-common/node";
|
||||
|
||||
/**
|
||||
* CommonClientCredentialRequest
|
||||
*/
|
||||
export type CommonClientCredentialRequest = Omit<
|
||||
BaseAuthRequest,
|
||||
"extraQueryParameters" | "extraParameters"
|
||||
> & {
|
||||
/**
|
||||
* Skip token cache lookup and force request to authority to get a a new token. Defaults to false.
|
||||
*/
|
||||
skipCache?: boolean;
|
||||
/**
|
||||
* Azure region to be used for regional authentication.
|
||||
*/
|
||||
azureRegion?: AzureRegion;
|
||||
/**
|
||||
* An assertion string or a callback function that returns an assertion string (both are Base64Url-encoded signed JWTs) used in the Client Credential flow.
|
||||
*/
|
||||
clientAssertion?: ClientAssertion;
|
||||
};
|
||||
32
backend/node_modules/@azure/msal-node/src/request/CommonDeviceCodeRequest.ts
generated
vendored
Normal file
32
backend/node_modules/@azure/msal-node/src/request/CommonDeviceCodeRequest.ts
generated
vendored
Normal file
@ -0,0 +1,32 @@
|
||||
/*
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License.
|
||||
*/
|
||||
|
||||
import {
|
||||
DeviceCodeResponse,
|
||||
StringDict,
|
||||
BaseAuthRequest,
|
||||
} from "@azure/msal-common/node";
|
||||
|
||||
/**
|
||||
* Parameters for Oauth2 device code flow.
|
||||
*/
|
||||
export type CommonDeviceCodeRequest = BaseAuthRequest & {
|
||||
/**
|
||||
* Callback containing device code response. Message should be shown to end user. End user can then navigate to the verification_uri, input the user_code, and input credentials.
|
||||
*/
|
||||
deviceCodeCallback: (response: DeviceCodeResponse) => void;
|
||||
/**
|
||||
* Boolean to cancel polling of device code endpoint. While the user authenticates on a separate device, MSAL polls the the token endpoint of security token service for the interval specified in the device code response (usually 15 minutes). To stop polling and cancel the request, set cancel=true.
|
||||
*/
|
||||
cancel?: boolean;
|
||||
/**
|
||||
* Timeout period in seconds which the user explicitly configures for the polling of the device code endpoint. At the end of this period; assuming the device code has not expired yet; the device code polling is stopped and the request cancelled. The device code expiration window will always take precedence over this set period.
|
||||
*/
|
||||
timeout?: number;
|
||||
/**
|
||||
* String to string map of custom query parameters added to outgoing token service requests.
|
||||
*/
|
||||
extraQueryParameters?: StringDict;
|
||||
};
|
||||
23
backend/node_modules/@azure/msal-node/src/request/CommonOnBehalfOfRequest.ts
generated
vendored
Normal file
23
backend/node_modules/@azure/msal-node/src/request/CommonOnBehalfOfRequest.ts
generated
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
/*
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License.
|
||||
*/
|
||||
|
||||
import { BaseAuthRequest } from "@azure/msal-common/node";
|
||||
|
||||
/**
|
||||
* CommonOnBehalfOfRequest
|
||||
*/
|
||||
export type CommonOnBehalfOfRequest = Omit<
|
||||
BaseAuthRequest,
|
||||
"extraQueryParameters" | "extraParameters"
|
||||
> & {
|
||||
/**
|
||||
* The access token that was sent to the middle-tier API. This token must have an audience of the app making this OBO request.
|
||||
*/
|
||||
oboAssertion: string;
|
||||
/**
|
||||
* Skip token cache lookup and force request to authority to get a a new token. Defaults to false.
|
||||
*/
|
||||
skipCache?: boolean;
|
||||
};
|
||||
21
backend/node_modules/@azure/msal-node/src/request/CommonUsernamePasswordRequest.ts
generated
vendored
Normal file
21
backend/node_modules/@azure/msal-node/src/request/CommonUsernamePasswordRequest.ts
generated
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
/*
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License.
|
||||
*/
|
||||
|
||||
import { BaseAuthRequest } from "@azure/msal-common/node";
|
||||
|
||||
/**
|
||||
* CommonUsernamePassword parameters passed by the user to retrieve credentials
|
||||
* Note: The latest OAuth 2.0 Security Best Current Practice disallows the password grant entirely. This flow is added for internal testing.
|
||||
*/
|
||||
export type CommonUsernamePasswordRequest = BaseAuthRequest & {
|
||||
/**
|
||||
* Username of the client
|
||||
*/
|
||||
username: string;
|
||||
/**
|
||||
* Credentials
|
||||
*/
|
||||
password: string;
|
||||
};
|
||||
31
backend/node_modules/@azure/msal-node/src/request/DeviceCodeRequest.ts
generated
vendored
Normal file
31
backend/node_modules/@azure/msal-node/src/request/DeviceCodeRequest.ts
generated
vendored
Normal file
@ -0,0 +1,31 @@
|
||||
/*
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License.
|
||||
*/
|
||||
|
||||
import { DeviceCodeResponse } from "@azure/msal-common/node";
|
||||
import { CommonDeviceCodeRequest } from "./CommonDeviceCodeRequest.js";
|
||||
|
||||
/**
|
||||
* Parameters for Oauth2 device code flow.
|
||||
* @public
|
||||
*/
|
||||
export type DeviceCodeRequest = Partial<
|
||||
Omit<
|
||||
CommonDeviceCodeRequest,
|
||||
| "scopes"
|
||||
| "deviceCodeCallback"
|
||||
| "resourceRequestMethod"
|
||||
| "resourceRequestUri"
|
||||
| "storeInCache"
|
||||
>
|
||||
> & {
|
||||
/**
|
||||
* Array of scopes the application is requesting access to.
|
||||
*/
|
||||
scopes: Array<string>;
|
||||
/**
|
||||
* Callback containing device code response. Message should be shown to end user. End user can then navigate to the verification_uri, input the user_code, and input credentials.
|
||||
*/
|
||||
deviceCodeCallback: (response: DeviceCodeResponse) => void;
|
||||
};
|
||||
40
backend/node_modules/@azure/msal-node/src/request/InteractiveRequest.ts
generated
vendored
Normal file
40
backend/node_modules/@azure/msal-node/src/request/InteractiveRequest.ts
generated
vendored
Normal file
@ -0,0 +1,40 @@
|
||||
/*
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License.
|
||||
*/
|
||||
|
||||
import { CommonAuthorizationUrlRequest } from "@azure/msal-common/node";
|
||||
import { ILoopbackClient } from "../network/ILoopbackClient.js";
|
||||
|
||||
/**
|
||||
* Request object passed by user to configure acquireTokenInteractive API
|
||||
* @public
|
||||
*/
|
||||
export type InteractiveRequest = Partial<
|
||||
Omit<CommonAuthorizationUrlRequest, "scopes" | "storeInCache">
|
||||
> & {
|
||||
/**
|
||||
* Function to open a browser instance on user's system.
|
||||
*/
|
||||
openBrowser: (url: string) => Promise<void>;
|
||||
/**
|
||||
* Array of scopes the application is requesting access to.
|
||||
*/
|
||||
scopes?: Array<string>;
|
||||
/**
|
||||
* Template to be displayed on the opened browser instance upon successful token acquisition.
|
||||
*/
|
||||
successTemplate?: string;
|
||||
/**
|
||||
* Template to be displayed on the opened browser instance upon token acquisition failure.
|
||||
*/
|
||||
errorTemplate?: string;
|
||||
/**
|
||||
* Used in native broker flows to properly parent the native broker window
|
||||
*/
|
||||
windowHandle?: Buffer; // Relevant only to brokered requests
|
||||
/**
|
||||
* Custom implementation for a loopback server to listen for authorization code response.
|
||||
*/
|
||||
loopbackClient?: ILoopbackClient;
|
||||
};
|
||||
22
backend/node_modules/@azure/msal-node/src/request/ManagedIdentityRequest.ts
generated
vendored
Normal file
22
backend/node_modules/@azure/msal-node/src/request/ManagedIdentityRequest.ts
generated
vendored
Normal file
@ -0,0 +1,22 @@
|
||||
/*
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License.
|
||||
*/
|
||||
|
||||
import { CommonClientCredentialRequest } from "./CommonClientCredentialRequest.js";
|
||||
import { ManagedIdentityRequestParams } from "./ManagedIdentityRequestParams.js";
|
||||
|
||||
/**
|
||||
* ManagedIdentityRequest
|
||||
*/
|
||||
export type ManagedIdentityRequest = ManagedIdentityRequestParams &
|
||||
CommonClientCredentialRequest & {
|
||||
/**
|
||||
* An array of capabilities to be added to all network requests as part of the `xms_cc` claim
|
||||
*/
|
||||
clientCapabilities?: Array<string>;
|
||||
/**
|
||||
* A SHA256 hash of the token that was revoked. The managed identity will revoke the token based on the SHA256 hash of the token, not the token itself. This is to prevent the token from being leaked in transit.
|
||||
*/
|
||||
revokedTokenSha256Hash?: string;
|
||||
};
|
||||
23
backend/node_modules/@azure/msal-node/src/request/ManagedIdentityRequestParams.ts
generated
vendored
Normal file
23
backend/node_modules/@azure/msal-node/src/request/ManagedIdentityRequestParams.ts
generated
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
/*
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License.
|
||||
*/
|
||||
|
||||
/**
|
||||
* ManagedIdentityRequest
|
||||
* @public
|
||||
*/
|
||||
export type ManagedIdentityRequestParams = {
|
||||
/**
|
||||
* A stringified claims request which will be used to determine whether or not the cache should be skipped
|
||||
*/
|
||||
claims?: string;
|
||||
/**
|
||||
* Forces managed identity requests to skip the cache and make network calls if true
|
||||
*/
|
||||
forceRefresh?: boolean;
|
||||
/**
|
||||
* Resource requested to access the protected API. It should be of the form "ResourceIdUri" or "ResourceIdUri/.default". For instance https://management.azure.net or, for Microsoft Graph, https://graph.microsoft.com/.default
|
||||
*/
|
||||
resource: string;
|
||||
};
|
||||
30
backend/node_modules/@azure/msal-node/src/request/OnBehalfOfRequest.ts
generated
vendored
Normal file
30
backend/node_modules/@azure/msal-node/src/request/OnBehalfOfRequest.ts
generated
vendored
Normal file
@ -0,0 +1,30 @@
|
||||
/*
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License.
|
||||
*/
|
||||
|
||||
import { CommonOnBehalfOfRequest } from "./CommonOnBehalfOfRequest.js";
|
||||
|
||||
/**
|
||||
* OnBehalfOfRequest
|
||||
* @public
|
||||
*/
|
||||
export type OnBehalfOfRequest = Partial<
|
||||
Omit<
|
||||
CommonOnBehalfOfRequest,
|
||||
| "oboAssertion"
|
||||
| "scopes"
|
||||
| "resourceRequestMethod"
|
||||
| "resourceRequestUri"
|
||||
| "storeInCache"
|
||||
>
|
||||
> & {
|
||||
/**
|
||||
* The access token that was sent to the middle-tier API. This token must have an audience of the app making this OBO request.
|
||||
*/
|
||||
oboAssertion: string;
|
||||
/**
|
||||
* Array of scopes the application is requesting access to.
|
||||
*/
|
||||
scopes: Array<string>;
|
||||
};
|
||||
35
backend/node_modules/@azure/msal-node/src/request/RefreshTokenRequest.ts
generated
vendored
Normal file
35
backend/node_modules/@azure/msal-node/src/request/RefreshTokenRequest.ts
generated
vendored
Normal file
@ -0,0 +1,35 @@
|
||||
/*
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License.
|
||||
*/
|
||||
|
||||
import { CommonRefreshTokenRequest } from "@azure/msal-common/node";
|
||||
|
||||
/**
|
||||
* CommonRefreshTokenRequest
|
||||
* @public
|
||||
*/
|
||||
export type RefreshTokenRequest = Partial<
|
||||
Omit<
|
||||
CommonRefreshTokenRequest,
|
||||
| "scopes"
|
||||
| "refreshToken"
|
||||
| "authenticationScheme"
|
||||
| "resourceRequestMethod"
|
||||
| "resourceRequestUri"
|
||||
| "storeInCache"
|
||||
>
|
||||
> & {
|
||||
/**
|
||||
* Array of scopes the application is requesting access to.
|
||||
*/
|
||||
scopes: Array<string>;
|
||||
/**
|
||||
* A refresh token returned from a previous request to the Identity provider.
|
||||
*/
|
||||
refreshToken: string;
|
||||
/**
|
||||
* Force MSAL to cache a refresh token flow response when there is no account in the cache. Used for migration scenarios.
|
||||
*/
|
||||
forceCache?: boolean;
|
||||
};
|
||||
12
backend/node_modules/@azure/msal-node/src/request/SignOutRequest.ts
generated
vendored
Normal file
12
backend/node_modules/@azure/msal-node/src/request/SignOutRequest.ts
generated
vendored
Normal file
@ -0,0 +1,12 @@
|
||||
/*
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License.
|
||||
*/
|
||||
|
||||
import { AccountInfo } from "@azure/msal-common/node";
|
||||
|
||||
/** @public */
|
||||
export type SignOutRequest = {
|
||||
account: AccountInfo;
|
||||
correlationId?: string;
|
||||
};
|
||||
23
backend/node_modules/@azure/msal-node/src/request/SilentFlowRequest.ts
generated
vendored
Normal file
23
backend/node_modules/@azure/msal-node/src/request/SilentFlowRequest.ts
generated
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
/*
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License.
|
||||
*/
|
||||
|
||||
import { AccountInfo, CommonSilentFlowRequest } from "@azure/msal-common/node";
|
||||
|
||||
/**
|
||||
* SilentFlow parameters passed by the user to retrieve credentials silently
|
||||
* @public
|
||||
*/
|
||||
export type SilentFlowRequest = Partial<
|
||||
Omit<CommonSilentFlowRequest, "account" | "scopes" | "storeInCache">
|
||||
> & {
|
||||
/**
|
||||
* Account entity to lookup the credentials.
|
||||
*/
|
||||
account: AccountInfo;
|
||||
/**
|
||||
* Array of scopes the application is requesting access to.
|
||||
*/
|
||||
scopes: Array<string>;
|
||||
};
|
||||
36
backend/node_modules/@azure/msal-node/src/request/UsernamePasswordRequest.ts
generated
vendored
Normal file
36
backend/node_modules/@azure/msal-node/src/request/UsernamePasswordRequest.ts
generated
vendored
Normal file
@ -0,0 +1,36 @@
|
||||
/*
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License.
|
||||
*/
|
||||
|
||||
import { CommonUsernamePasswordRequest } from "./CommonUsernamePasswordRequest.js";
|
||||
|
||||
/**
|
||||
* UsernamePassword parameters passed by the user to retrieve credentials
|
||||
* Note: The latest OAuth 2.0 Security Best Current Practice disallows the password grant entirely. This flow is added for internal testing.
|
||||
* @public
|
||||
*/
|
||||
export type UsernamePasswordRequest = Partial<
|
||||
Omit<
|
||||
CommonUsernamePasswordRequest,
|
||||
| "scopes"
|
||||
| "resourceRequestMethod"
|
||||
| "resourceRequestUri"
|
||||
| "username"
|
||||
| "password"
|
||||
| "storeInCache"
|
||||
>
|
||||
> & {
|
||||
/**
|
||||
* Array of scopes the application is requesting access to.
|
||||
*/
|
||||
scopes: Array<string>;
|
||||
/**
|
||||
* Username of the client
|
||||
*/
|
||||
username: string;
|
||||
/**
|
||||
* Credentials
|
||||
*/
|
||||
password: string;
|
||||
};
|
||||
Reference in New Issue
Block a user