Commit 3a84cbd5 authored by Ahmet Turan Koçak's avatar Ahmet Turan Koçak
Browse files

Initial commit

parents
{"version":3,"file":"packageMetadata.d.ts","sourceRoot":"","sources":["src/packageMetadata.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,IAAI,qBAAqB,CAAC;AACvC,eAAO,MAAM,OAAO,WAAW,CAAC"}
\ No newline at end of file
import { CommonAuthorizationCodeRequest } from "@azure/msal-common";
/**
* 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)
*
* - scopes - Array of scopes the application is requesting access to.
* - claims - A stringified claims request which will be added to all /authorize and /token calls
* - authority: - URL of the authority, the security token service (STS) from which MSAL will acquire tokens. If authority is set on client application object, this will override that value. Overriding the value will cause for authority validation to happen each time. If the same authority will be used for all request, set on the application object instead of the requests.
* - correlationId - Unique GUID set per request to trace a request end-to-end for telemetry purposes.
* - redirectUri - 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.
* - tokenQueryParameters - String to string map of custom query parameters added to the /token call
* - code - The authorization_code that the user acquired in the first leg of the flow.
* - codeVerifier - The same code_verifier that was used to obtain the authorization_code. Required if PKCE was used in the authorization code grant request.For more information, see the PKCE RFC: https://tools.ietf.org/html/rfc7636
* - state - 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.
* @public
*/
export declare type AuthorizationCodeRequest = Partial<Omit<CommonAuthorizationCodeRequest, "scopes" | "redirectUri" | "code" | "authenticationScheme" | "resourceRequestMethod" | "resourceRequestUri" | "requestedClaimsHash">> & {
scopes: Array<string>;
redirectUri: string;
code: string;
state?: string;
};
//# sourceMappingURL=AuthorizationCodeRequest.d.ts.map
\ No newline at end of file
{"version":3,"file":"AuthorizationCodeRequest.d.ts","sourceRoot":"","sources":["../src/request/AuthorizationCodeRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,8BAA8B,EAAE,MAAM,oBAAoB,CAAC;AAEpE;;;;;;;;;;;;;GAaG;AACH,oBAAY,wBAAwB,GAAG,OAAO,CAAC,IAAI,CAAC,8BAA8B,EAAE,QAAQ,GAAC,aAAa,GAAC,MAAM,GAAC,sBAAsB,GAAC,uBAAuB,GAAC,oBAAoB,GAAC,qBAAqB,CAAC,CAAC,GAAG;IAC5M,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC"}
\ No newline at end of file
import { CommonAuthorizationUrlRequest } from "@azure/msal-common";
/**
* Request object passed by user to retrieve a Code from the server (first leg of authorization code grant flow)
*
* - scopes - Array of scopes the application is requesting access to.
* - claims - A stringified claims request which will be added to all /authorize and /token calls
* - authority - Url of the authority which the application acquires tokens from.
* - correlationId - Unique GUID set per request to trace a request end-to-end for telemetry purposes.
* - redirectUri - 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.
* - extraScopesToConsent - Scopes for a different resource when the user needs consent upfront.
* - responseMode - Specifies the method that should be used to send the authentication result to your app. Can be query, form_post, or fragment. If no value is passed in, it defaults to query.
* - codeChallenge - Used to secure authorization code grant via Proof of Key for Code Exchange (PKCE). For more information, see the PKCE RCF:https://tools.ietf.org/html/rfc7636
* - codeChallengeMethod - The method used to encode the code verifier for the code challenge parameter. Can be "plain" or "S256". If excluded, code challenge is assumed to be plaintext. For more information, see the PKCE RCF: https://tools.ietf.org/html/rfc7636
* - state - A value included in the request that is also returned in the token response. A randomly generated unique value is typically used for preventing cross site request forgery attacks. The state is also used to encode information about the user's state in the app before the authentication request occurred.
* - prompt - Indicates the type of user interaction that is required.
* login: will force the user to enter their credentials on that request, negating single-sign on
* none: will ensure that the user isn't presented with any interactive prompt. if request can't be completed via single-sign on, the endpoint will return an interaction_required error
* consent: will the trigger the OAuth consent dialog after the user signs in, asking the user to grant permissions to the app
* select_account: will interrupt single sign-=on providing account selection experience listing all the accounts in session or any remembered accounts or an option to choose to use a different account
* create: will direct the user to the account creation experience instead of the log in experience
* - account - AccountInfo obtained from a getAccount API. Will be used in certain scenarios to generate login_hint if both loginHint and sid params are not provided.
* - loginHint - Can be used to pre-fill the username/email address field of the sign-in page for the user, if you know the username/email address ahead of time. Often apps use this parameter during re-authentication, having already extracted the username from a previous sign-in using the preferred_username claim.
* - sid - Session ID, unique identifier for the session. Available as an optional claim on ID tokens.
* - domainHint - Provides a hint about the tenant or domain that the user should use to sign in. The value of the domain hint is a registered domain for the tenant.
* - extraQueryParameters - String to string map of custom query parameters added to the /authorize call
* - tokenQueryParameters - String to string map of custom query parameters added to the /token call
* - nonce - A value included in the request that is returned in the id token. A randomly generated unique value is typically used to mitigate replay attacks.
* @public
*/
export declare type AuthorizationUrlRequest = Partial<Omit<CommonAuthorizationUrlRequest, "scopes" | "redirectUri" | "resourceRequestMethod" | "resourceRequestUri" | "authenticationScheme" | "requestedClaimsHash">> & {
scopes: Array<string>;
redirectUri: string;
};
//# sourceMappingURL=AuthorizationUrlRequest.d.ts.map
\ No newline at end of file
{"version":3,"file":"AuthorizationUrlRequest.d.ts","sourceRoot":"","sources":["../src/request/AuthorizationUrlRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,6BAA6B,EAAE,MAAM,oBAAoB,CAAC;AAEnE;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,oBAAY,uBAAuB,GAAG,OAAO,CAAC,IAAI,CAAC,6BAA6B,EAAE,QAAQ,GAAC,aAAa,GAAC,uBAAuB,GAAC,oBAAoB,GAAC,sBAAsB,GAAC,qBAAqB,CAAC,CAAC,GAAG;IACnM,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;CACvB,CAAC"}
\ No newline at end of file
import { CommonClientCredentialRequest } from "@azure/msal-common";
/**
* CommonClientCredentialRequest
* - scopes - Array of scopes the application is requesting access to.
* - authority - URL of the authority, the security token service (STS) from which MSAL will acquire tokens.
* - correlationId - Unique GUID set per request to trace a request end-to-end for telemetry purposes.
* - skipCache - Skip token cache lookup and force request to authority to get a a new token. Defaults to false.
* - clientAssertion - A Base64Url-encoded signed JWT assertion string used in the Client Credential flow
* @public
*/
export declare type ClientCredentialRequest = Partial<Omit<CommonClientCredentialRequest, "scopes" | "resourceRequestMethod" | "resourceRequestUri" | "requestedClaimsHash" | "clientAssertion">> & {
scopes: Array<string>;
clientAssertion?: string;
};
//# sourceMappingURL=ClientCredentialRequest.d.ts.map
\ No newline at end of file
{"version":3,"file":"ClientCredentialRequest.d.ts","sourceRoot":"","sources":["../src/request/ClientCredentialRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,6BAA6B,EAAE,MAAM,oBAAoB,CAAC;AAEnE;;;;;;;;GAQG;AACH,oBAAY,uBAAuB,GAAG,OAAO,CAAC,IAAI,CAAC,6BAA6B,EAAE,QAAQ,GAAC,uBAAuB,GAAC,oBAAoB,GAAC,qBAAqB,GAAC,iBAAiB,CAAC,CAAC,GAAG;IAChL,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACtB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC5B,CAAC"}
\ No newline at end of file
import { CommonDeviceCodeRequest, DeviceCodeResponse } from "@azure/msal-common";
/**
* Parameters for Oauth2 device code flow.
* - scopes - Array of scopes the application is requesting access to.
* - authority: - URL of the authority, the security token service (STS) from which MSAL will acquire tokens. If authority is set on client application object, this will override that value. Overriding the value will cause for authority validation to happen each time. If the same authority will be used for all request, set on the application object instead of the requests.
* - correlationId - Unique GUID set per request to trace a request end-to-end for telemetry purposes.
* - deviceCodeCallback - 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.
* - cancel - 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.
* @public
*/
export declare type DeviceCodeRequest = Partial<Omit<CommonDeviceCodeRequest, "scopes" | "deviceCodeCallback" | "resourceRequestMethod" | "resourceRequestUri" | "requestedClaimsHash">> & {
scopes: Array<string>;
deviceCodeCallback: (response: DeviceCodeResponse) => void;
};
//# sourceMappingURL=DeviceCodeRequest.d.ts.map
\ No newline at end of file
{"version":3,"file":"DeviceCodeRequest.d.ts","sourceRoot":"","sources":["../src/request/DeviceCodeRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,uBAAuB,EAAG,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAElF;;;;;;;;GAQG;AACH,oBAAY,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC,uBAAuB,EAAE,QAAQ,GAAC,oBAAoB,GAAC,uBAAuB,GAAC,oBAAoB,GAAC,qBAAqB,CAAC,CAAC,GAAG;IACvK,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACtB,kBAAkB,EAAE,CAAC,QAAQ,EAAE,kBAAkB,KAAK,IAAI,CAAC;CAC9D,CAAC"}
\ No newline at end of file
import { AuthorizationUrlRequest } from "./AuthorizationUrlRequest";
export declare type InteractiveRequest = Pick<AuthorizationUrlRequest, "authority" | "correlationId" | "claims" | "azureCloudOptions" | "account" | "extraQueryParameters" | "tokenQueryParameters" | "extraScopesToConsent" | "loginHint" | "prompt"> & {
openBrowser: (url: string) => Promise<void>;
scopes?: Array<string>;
successTemplate?: string;
errorTemplate?: string;
};
//# sourceMappingURL=InteractiveRequest.d.ts.map
\ No newline at end of file
{"version":3,"file":"InteractiveRequest.d.ts","sourceRoot":"","sources":["../src/request/InteractiveRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAEpE,oBAAY,kBAAkB,GAAG,IAAI,CAAC,uBAAuB,EAAE,WAAW,GAAC,eAAe,GAAC,QAAQ,GAAC,mBAAmB,GAAC,SAAS,GAAC,sBAAsB,GAAC,sBAAsB,GAAC,sBAAsB,GAAC,WAAW,GAAC,QAAQ,CAAC,GAAG;IAC3N,WAAW,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC5C,MAAM,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACvB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,aAAa,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC"}
\ No newline at end of file
import { CommonOnBehalfOfRequest } from "@azure/msal-common";
/**
* - scopes - Array of scopes the application is requesting access to.
* - authority - URL of the authority, the security token service (STS) from which MSAL will acquire tokens.
* - correlationId - Unique GUID set per request to trace a request end-to-end for telemetry purposes.
* - oboAssertion - The access token that was sent to the middle-tier API. This token must have an audience of the app making this OBO request.
* - skipCache - Skip token cache lookup and force request to authority to get a a new token. Defaults to false.
* @public
*/
export declare type OnBehalfOfRequest = Partial<Omit<CommonOnBehalfOfRequest, "oboAssertion" | "scopes" | "resourceRequestMethod" | "resourceRequestUri" | "requestedClaimsHash">> & {
oboAssertion: string;
scopes: Array<string>;
};
//# sourceMappingURL=OnBehalfOfRequest.d.ts.map
\ No newline at end of file
{"version":3,"file":"OnBehalfOfRequest.d.ts","sourceRoot":"","sources":["../src/request/OnBehalfOfRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAE7D;;;;;;;GAOG;AACH,oBAAY,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC,uBAAuB,EAAE,cAAc,GAAC,QAAQ,GAAC,uBAAuB,GAAC,oBAAoB,GAAC,qBAAqB,CAAC,CAAC,GAAG;IACjK,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACzB,CAAC"}
\ No newline at end of file
import { CommonRefreshTokenRequest } from "@azure/msal-common";
/**
* CommonRefreshTokenRequest
* - scopes - Array of scopes the application is requesting access to.
* - claims - A stringified claims request which will be added to all /authorize and /token calls
* - authority - URL of the authority, the security token service (STS) from which MSAL will acquire tokens.
* - correlationId - Unique GUID set per request to trace a request end-to-end for telemetry purposes.
* - refreshToken - A refresh token returned from a previous request to the Identity provider.
* - tokenQueryParameters - String to string map of custom query parameters added to the /token call
* - forceCache - Force MSAL to cache a refresh token flow response when there is no account in the cache. Used for migration scenarios.
* @public
*/
export declare type RefreshTokenRequest = Partial<Omit<CommonRefreshTokenRequest, "scopes" | "refreshToken" | "authenticationScheme" | "resourceRequestMethod" | "resourceRequestUri" | "requestedClaimsHash">> & {
scopes: Array<string>;
refreshToken: string;
forceCache?: boolean;
};
//# sourceMappingURL=RefreshTokenRequest.d.ts.map
\ No newline at end of file
{"version":3,"file":"RefreshTokenRequest.d.ts","sourceRoot":"","sources":["../src/request/RefreshTokenRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AAE/D;;;;;;;;;;GAUG;AACH,oBAAY,mBAAmB,GAAG,OAAO,CAAC,IAAI,CAAC,yBAAyB,EAAE,QAAQ,GAAC,cAAc,GAAC,sBAAsB,GAAC,uBAAuB,GAAC,oBAAoB,GAAC,qBAAqB,CAAC,CAAC,GAAG;IAC5L,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACtB,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;CACxB,CAAC"}
\ No newline at end of file
import { AccountInfo, CommonSilentFlowRequest } from "@azure/msal-common";
/**
* SilentFlow parameters passed by the user to retrieve credentials silently
* - scopes - Array of scopes the application is requesting access to.
* - claims - A stringified claims request which will be added to all /authorize and /token calls. When included on a silent request, cache lookup will be skipped and token will be refreshed.
* - authority - Url of the authority which the application acquires tokens from.
* - correlationId - Unique GUID set per request to trace a request end-to-end for telemetry purposes.
* - tokenQueryParameters - String to string map of custom query parameters added to the /token call
* - account - Account entity to lookup the credentials.
* - forceRefresh - Forces silent requests to make network calls if true.
* @public
*/
export declare type SilentFlowRequest = Partial<Omit<CommonSilentFlowRequest, "account" | "scopes" | "resourceRequestMethod" | "resourceRequestUri" | "requestedClaimsHash">> & {
account: AccountInfo;
scopes: Array<string>;
};
//# sourceMappingURL=SilentFlowRequest.d.ts.map
\ No newline at end of file
{"version":3,"file":"SilentFlowRequest.d.ts","sourceRoot":"","sources":["../src/request/SilentFlowRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAE1E;;;;;;;;;;GAUG;AACH,oBAAY,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC,uBAAuB,EAAE,SAAS,GAAC,QAAQ,GAAC,uBAAuB,GAAC,oBAAoB,GAAC,qBAAqB,CAAC,CAAC,GAAG;IAC5J,OAAO,EAAE,WAAW,CAAC;IACrB,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACzB,CAAC"}
\ No newline at end of file
import { CommonUsernamePasswordRequest } from "@azure/msal-common";
/**
* 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.
*
* - scopes - Array of scopes the application is requesting access to.
* - claims - A stringified claims request which will be added to all /authorize and /token calls. When included on a silent request, cache lookup will be skipped and token will be refreshed.
* - authority - Url of the authority which the application acquires tokens from.
* - correlationId - Unique GUID set per request to trace a request end-to-end for telemetry purposes.
* - username - username of the client
* - password - credentials
* @public
*/
export declare type UsernamePasswordRequest = Partial<Omit<CommonUsernamePasswordRequest, "scopes" | "resourceRequestMethod" | "resourceRequestUri" | "username" | "password" | "requestedClaimsHash">> & {
scopes: Array<string>;
username: string;
password: string;
};
//# sourceMappingURL=UsernamePasswordRequest.d.ts.map
\ No newline at end of file
{"version":3,"file":"UsernamePasswordRequest.d.ts","sourceRoot":"","sources":["../src/request/UsernamePasswordRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,6BAA6B,EAAE,MAAM,oBAAoB,CAAC;AAEnE;;;;;;;;;;;GAWG;AACH,oBAAY,uBAAuB,GAAG,OAAO,CAAC,IAAI,CAAC,6BAA6B,EAAE,QAAQ,GAAC,uBAAuB,GAAC,oBAAoB,GAAC,UAAU,GAAC,UAAU,GAAC,qBAAqB,CAAC,CAAC,GAAG;IACpL,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAA;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAA;CACnB,CAAC"}
\ No newline at end of file
/**
* http methods
*/
export declare enum HttpMethod {
GET = "get",
POST = "post"
}
export declare enum HttpStatus {
SUCCESS_RANGE_START = 200,
SUCCESS_RANGE_END = 299,
REDIRECT = 302,
CLIENT_ERROR_RANGE_START = 400,
CLIENT_ERROR_RANGE_END = 499,
SERVER_ERROR_RANGE_START = 500,
SERVER_ERROR_RANGE_END = 599
}
export declare enum ProxyStatus {
SUCCESS_RANGE_START = 200,
SUCCESS_RANGE_END = 299,
SERVER_ERROR = 500
}
/**
* Constants used for region discovery
*/
export declare const REGION_ENVIRONMENT_VARIABLE = "REGION_NAME";
/**
* Constant used for PKCE
*/
export declare const RANDOM_OCTET_SIZE = 32;
/**
* Constants used in PKCE
*/
export declare const Hash: {
SHA256: string;
};
/**
* Constants for encoding schemes
*/
export declare const CharSet: {
CV_CHARSET: string;
};
/**
* Cache Constants
*/
export declare const CACHE: {
FILE_CACHE: string;
EXTENSION_LIB: string;
};
/**
* Constants
*/
export declare const Constants: {
MSAL_SKU: string;
JWT_BEARER_ASSERTION_TYPE: string;
AUTHORIZATION_PENDING: string;
HTTP_PROTOCOL: string;
LOCALHOST: string;
};
/**
* API Codes for Telemetry purposes.
* Before adding a new code you must claim it in the MSAL Telemetry tracker as these number spaces are shared across all MSALs
* 0-99 Silent Flow
* 600-699 Device Code Flow
* 800-899 Auth Code Flow
*/
export declare enum ApiId {
acquireTokenSilent = 62,
acquireTokenByUsernamePassword = 371,
acquireTokenByDeviceCode = 671,
acquireTokenByClientCredential = 771,
acquireTokenByCode = 871,
acquireTokenByRefreshToken = 872
}
/**
* JWT constants
*/
export declare const JwtConstants: {
ALGORITHM: string;
RSA_256: string;
X5T: string;
X5C: string;
AUDIENCE: string;
EXPIRATION_TIME: string;
ISSUER: string;
SUBJECT: string;
NOT_BEFORE: string;
JWT_ID: string;
};
export declare const LOOPBACK_SERVER_CONSTANTS: {
INTERVAL_MS: number;
TIMEOUT_MS: number;
};
//# sourceMappingURL=Constants.d.ts.map
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment