@azure/msal-node 1.13.0 → 1.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/ClientApplication.d.ts +10 -0
- package/dist/client/ClientApplication.d.ts.map +1 -1
- package/dist/error/NodeAuthError.d.ts +8 -0
- package/dist/error/NodeAuthError.d.ts.map +1 -1
- package/dist/msal-node.cjs.development.js +134 -92
- package/dist/msal-node.cjs.development.js.map +1 -1
- package/dist/msal-node.cjs.production.min.js +1 -1
- package/dist/msal-node.cjs.production.min.js.map +1 -1
- package/dist/msal-node.esm.js +135 -93
- package/dist/msal-node.esm.js.map +1 -1
- package/dist/packageMetadata.d.ts +1 -1
- package/dist/request/AuthorizationCodeRequest.d.ts +2 -0
- package/dist/request/AuthorizationCodeRequest.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -91,6 +91,16 @@ export declare abstract class ClientApplication {
|
|
|
91
91
|
* Gets the token cache for the application.
|
|
92
92
|
*/
|
|
93
93
|
getTokenCache(): TokenCache;
|
|
94
|
+
/**
|
|
95
|
+
* Validates OIDC state by comparing the user cached state with the state received from the server.
|
|
96
|
+
*
|
|
97
|
+
* This API is provided for scenarios where you would use OAuth2.0 state parameter to mitigate against
|
|
98
|
+
* CSRF attacks.
|
|
99
|
+
* For more information about state, visit https://datatracker.ietf.org/doc/html/rfc6819#section-3.6.
|
|
100
|
+
* @param state
|
|
101
|
+
* @param cachedState
|
|
102
|
+
*/
|
|
103
|
+
protected validateState(state: string, cachedState: string): void;
|
|
94
104
|
/**
|
|
95
105
|
* Returns the logger instance
|
|
96
106
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ClientApplication.d.ts","sourceRoot":"","sources":["../src/client/ClientApplication.ts"],"names":[],"mappings":"AAKA,OAAO,EAEH,mBAAmB,EAEnB,oBAAoB,EAGpB,eAAe,EAEf,MAAM,EACN,sBAAsB,EAYtB,wBAAwB,EAExB,iBAAiB,EACj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,EAAE,YAAY,CAAC,EAAE,OAAO,GAAG,sBAAsB;IAWhI;;;;OAIG;YACW,eAAe;IAkB7B;;OAEG;IACH,UAAU,IAAI,IAAI;CAGrB"}
|
|
@@ -27,6 +27,10 @@ export declare const NodeAuthErrorMessage: {
|
|
|
27
27
|
code: string;
|
|
28
28
|
desc: string;
|
|
29
29
|
};
|
|
30
|
+
stateNotFoundError: {
|
|
31
|
+
code: string;
|
|
32
|
+
desc: string;
|
|
33
|
+
};
|
|
30
34
|
};
|
|
31
35
|
export declare class NodeAuthError extends AuthError {
|
|
32
36
|
constructor(errorCode: string, errorMessage?: string);
|
|
@@ -54,5 +58,9 @@ export declare class NodeAuthError extends AuthError {
|
|
|
54
58
|
* Creates an error thrown if the loopback server times out registering the auth code listener.
|
|
55
59
|
*/
|
|
56
60
|
static createLoopbackServerTimeoutError(): NodeAuthError;
|
|
61
|
+
/**
|
|
62
|
+
* Creates an error thrown when the state is not present.
|
|
63
|
+
*/
|
|
64
|
+
static createStateNotFoundError(): NodeAuthError;
|
|
57
65
|
}
|
|
58
66
|
//# sourceMappingURL=NodeAuthError.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NodeAuthError.d.ts","sourceRoot":"","sources":["../src/error/NodeAuthError.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAE/C;;GAEG;AACH,eAAO,MAAM,oBAAoB
|
|
1
|
+
{"version":3,"file":"NodeAuthError.d.ts","sourceRoot":"","sources":["../src/error/NodeAuthError.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAE/C;;GAEG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6BhC,CAAC;AAEF,qBAAa,aAAc,SAAQ,SAAS;gBAC5B,SAAS,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,MAAM;IAKpD;;OAEG;IACH,MAAM,CAAC,qCAAqC,IAAI,aAAa;IAK7D;;OAEG;IACH,MAAM,CAAC,kCAAkC,IAAI,aAAa;IAK1D;;OAEG;IACH,MAAM,CAAC,+BAA+B,IAAI,aAAa;IAKvD;;OAEG;IACH,MAAM,CAAC,iCAAiC,IAAI,aAAa;IAKzD;;OAEG;IACH,MAAM,CAAC,sCAAsC,IAAI,aAAa;IAK9D;;OAEG;IACH,MAAM,CAAC,gCAAgC,IAAI,aAAa;IAKxD;;OAEG;IACH,MAAM,CAAC,wBAAwB,IAAI,aAAa;CAGnD"}
|
|
@@ -1772,7 +1772,109 @@ class TokenCache {
|
|
|
1772
1772
|
|
|
1773
1773
|
/* eslint-disable header/header */
|
|
1774
1774
|
const name = "@azure/msal-node";
|
|
1775
|
-
const version = "1.
|
|
1775
|
+
const version = "1.14.0";
|
|
1776
|
+
|
|
1777
|
+
/*
|
|
1778
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1779
|
+
* Licensed under the MIT License.
|
|
1780
|
+
*/
|
|
1781
|
+
/**
|
|
1782
|
+
* NodeAuthErrorMessage class containing string constants used by error codes and messages.
|
|
1783
|
+
*/
|
|
1784
|
+
|
|
1785
|
+
const NodeAuthErrorMessage = {
|
|
1786
|
+
invalidLoopbackAddressType: {
|
|
1787
|
+
code: "invalid_loopback_server_address_type",
|
|
1788
|
+
desc: "Loopback server address is not type string. This is unexpected."
|
|
1789
|
+
},
|
|
1790
|
+
unableToLoadRedirectUri: {
|
|
1791
|
+
code: "unable_to_load_redirectUrl",
|
|
1792
|
+
desc: "Loopback server callback was invoked without a url. This is unexpected."
|
|
1793
|
+
},
|
|
1794
|
+
noAuthCodeInResponse: {
|
|
1795
|
+
code: "no_auth_code_in_response",
|
|
1796
|
+
desc: "No auth code found in the server response. Please check your network trace to determine what happened."
|
|
1797
|
+
},
|
|
1798
|
+
noLoopbackServerExists: {
|
|
1799
|
+
code: "no_loopback_server_exists",
|
|
1800
|
+
desc: "No loopback server exists yet."
|
|
1801
|
+
},
|
|
1802
|
+
loopbackServerAlreadyExists: {
|
|
1803
|
+
code: "loopback_server_already_exists",
|
|
1804
|
+
desc: "Loopback server already exists. Cannot create another."
|
|
1805
|
+
},
|
|
1806
|
+
loopbackServerTimeout: {
|
|
1807
|
+
code: "loopback_server_timeout",
|
|
1808
|
+
desc: "Timed out waiting for auth code listener to be registered."
|
|
1809
|
+
},
|
|
1810
|
+
stateNotFoundError: {
|
|
1811
|
+
code: "state_not_found",
|
|
1812
|
+
desc: "State not found. Please verify that the request originated from msal."
|
|
1813
|
+
}
|
|
1814
|
+
};
|
|
1815
|
+
class NodeAuthError extends msalCommon.AuthError {
|
|
1816
|
+
constructor(errorCode, errorMessage) {
|
|
1817
|
+
super(errorCode, errorMessage);
|
|
1818
|
+
this.name = "NodeAuthError";
|
|
1819
|
+
}
|
|
1820
|
+
/**
|
|
1821
|
+
* Creates an error thrown if loopback server address is of type string.
|
|
1822
|
+
*/
|
|
1823
|
+
|
|
1824
|
+
|
|
1825
|
+
static createInvalidLoopbackAddressTypeError() {
|
|
1826
|
+
return new NodeAuthError(NodeAuthErrorMessage.invalidLoopbackAddressType.code, `${NodeAuthErrorMessage.invalidLoopbackAddressType.desc}`);
|
|
1827
|
+
}
|
|
1828
|
+
/**
|
|
1829
|
+
* Creates an error thrown if the loopback server is unable to get a url.
|
|
1830
|
+
*/
|
|
1831
|
+
|
|
1832
|
+
|
|
1833
|
+
static createUnableToLoadRedirectUrlError() {
|
|
1834
|
+
return new NodeAuthError(NodeAuthErrorMessage.unableToLoadRedirectUri.code, `${NodeAuthErrorMessage.unableToLoadRedirectUri.desc}`);
|
|
1835
|
+
}
|
|
1836
|
+
/**
|
|
1837
|
+
* Creates an error thrown if the server response does not contain an auth code.
|
|
1838
|
+
*/
|
|
1839
|
+
|
|
1840
|
+
|
|
1841
|
+
static createNoAuthCodeInResponseError() {
|
|
1842
|
+
return new NodeAuthError(NodeAuthErrorMessage.noAuthCodeInResponse.code, `${NodeAuthErrorMessage.noAuthCodeInResponse.desc}`);
|
|
1843
|
+
}
|
|
1844
|
+
/**
|
|
1845
|
+
* Creates an error thrown if the loopback server has not been spun up yet.
|
|
1846
|
+
*/
|
|
1847
|
+
|
|
1848
|
+
|
|
1849
|
+
static createNoLoopbackServerExistsError() {
|
|
1850
|
+
return new NodeAuthError(NodeAuthErrorMessage.noLoopbackServerExists.code, `${NodeAuthErrorMessage.noLoopbackServerExists.desc}`);
|
|
1851
|
+
}
|
|
1852
|
+
/**
|
|
1853
|
+
* Creates an error thrown if a loopback server already exists when attempting to create another one.
|
|
1854
|
+
*/
|
|
1855
|
+
|
|
1856
|
+
|
|
1857
|
+
static createLoopbackServerAlreadyExistsError() {
|
|
1858
|
+
return new NodeAuthError(NodeAuthErrorMessage.loopbackServerAlreadyExists.code, `${NodeAuthErrorMessage.loopbackServerAlreadyExists.desc}`);
|
|
1859
|
+
}
|
|
1860
|
+
/**
|
|
1861
|
+
* Creates an error thrown if the loopback server times out registering the auth code listener.
|
|
1862
|
+
*/
|
|
1863
|
+
|
|
1864
|
+
|
|
1865
|
+
static createLoopbackServerTimeoutError() {
|
|
1866
|
+
return new NodeAuthError(NodeAuthErrorMessage.loopbackServerTimeout.code, `${NodeAuthErrorMessage.loopbackServerTimeout.desc}`);
|
|
1867
|
+
}
|
|
1868
|
+
/**
|
|
1869
|
+
* Creates an error thrown when the state is not present.
|
|
1870
|
+
*/
|
|
1871
|
+
|
|
1872
|
+
|
|
1873
|
+
static createStateNotFoundError() {
|
|
1874
|
+
return new NodeAuthError(NodeAuthErrorMessage.stateNotFoundError.code, NodeAuthErrorMessage.stateNotFoundError.desc);
|
|
1875
|
+
}
|
|
1876
|
+
|
|
1877
|
+
}
|
|
1776
1878
|
|
|
1777
1879
|
/*
|
|
1778
1880
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1828,7 +1930,17 @@ class ClientApplication {
|
|
|
1828
1930
|
|
|
1829
1931
|
|
|
1830
1932
|
async acquireTokenByCode(request, authCodePayLoad) {
|
|
1831
|
-
this.logger.info("acquireTokenByCode called"
|
|
1933
|
+
this.logger.info("acquireTokenByCode called");
|
|
1934
|
+
|
|
1935
|
+
if (request.state && authCodePayLoad) {
|
|
1936
|
+
this.logger.info("acquireTokenByCode - validating state");
|
|
1937
|
+
this.validateState(request.state, authCodePayLoad.state || ""); // eslint-disable-next-line no-param-reassign
|
|
1938
|
+
|
|
1939
|
+
authCodePayLoad = { ...authCodePayLoad,
|
|
1940
|
+
state: ""
|
|
1941
|
+
};
|
|
1942
|
+
}
|
|
1943
|
+
|
|
1832
1944
|
const validRequest = { ...request,
|
|
1833
1945
|
...(await this.initializeBaseRequest(request)),
|
|
1834
1946
|
authenticationScheme: msalCommon.AuthenticationScheme.BEARER
|
|
@@ -1953,6 +2065,26 @@ class ClientApplication {
|
|
|
1953
2065
|
this.logger.info("getTokenCache called");
|
|
1954
2066
|
return this.tokenCache;
|
|
1955
2067
|
}
|
|
2068
|
+
/**
|
|
2069
|
+
* Validates OIDC state by comparing the user cached state with the state received from the server.
|
|
2070
|
+
*
|
|
2071
|
+
* This API is provided for scenarios where you would use OAuth2.0 state parameter to mitigate against
|
|
2072
|
+
* CSRF attacks.
|
|
2073
|
+
* For more information about state, visit https://datatracker.ietf.org/doc/html/rfc6819#section-3.6.
|
|
2074
|
+
* @param state
|
|
2075
|
+
* @param cachedState
|
|
2076
|
+
*/
|
|
2077
|
+
|
|
2078
|
+
|
|
2079
|
+
validateState(state, cachedState) {
|
|
2080
|
+
if (!state) {
|
|
2081
|
+
throw NodeAuthError.createStateNotFoundError();
|
|
2082
|
+
}
|
|
2083
|
+
|
|
2084
|
+
if (state !== cachedState) {
|
|
2085
|
+
throw msalCommon.ClientAuthError.createStateMismatchError();
|
|
2086
|
+
}
|
|
2087
|
+
}
|
|
1956
2088
|
/**
|
|
1957
2089
|
* Returns the logger instance
|
|
1958
2090
|
*/
|
|
@@ -2101,96 +2233,6 @@ class ClientApplication {
|
|
|
2101
2233
|
|
|
2102
2234
|
}
|
|
2103
2235
|
|
|
2104
|
-
/*
|
|
2105
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2106
|
-
* Licensed under the MIT License.
|
|
2107
|
-
*/
|
|
2108
|
-
/**
|
|
2109
|
-
* NodeAuthErrorMessage class containing string constants used by error codes and messages.
|
|
2110
|
-
*/
|
|
2111
|
-
|
|
2112
|
-
const NodeAuthErrorMessage = {
|
|
2113
|
-
invalidLoopbackAddressType: {
|
|
2114
|
-
code: "invalid_loopback_server_address_type",
|
|
2115
|
-
desc: "Loopback server address is not type string. This is unexpected."
|
|
2116
|
-
},
|
|
2117
|
-
unableToLoadRedirectUri: {
|
|
2118
|
-
code: "unable_to_load_redirectUrl",
|
|
2119
|
-
desc: "Loopback server callback was invoked without a url. This is unexpected."
|
|
2120
|
-
},
|
|
2121
|
-
noAuthCodeInResponse: {
|
|
2122
|
-
code: "no_auth_code_in_response",
|
|
2123
|
-
desc: "No auth code found in the server response. Please check your network trace to determine what happened."
|
|
2124
|
-
},
|
|
2125
|
-
noLoopbackServerExists: {
|
|
2126
|
-
code: "no_loopback_server_exists",
|
|
2127
|
-
desc: "No loopback server exists yet."
|
|
2128
|
-
},
|
|
2129
|
-
loopbackServerAlreadyExists: {
|
|
2130
|
-
code: "loopback_server_already_exists",
|
|
2131
|
-
desc: "Loopback server already exists. Cannot create another."
|
|
2132
|
-
},
|
|
2133
|
-
loopbackServerTimeout: {
|
|
2134
|
-
code: "loopback_server_timeout",
|
|
2135
|
-
desc: "Timed out waiting for auth code listener to be registered."
|
|
2136
|
-
}
|
|
2137
|
-
};
|
|
2138
|
-
class NodeAuthError extends msalCommon.AuthError {
|
|
2139
|
-
constructor(errorCode, errorMessage) {
|
|
2140
|
-
super(errorCode, errorMessage);
|
|
2141
|
-
this.name = "NodeAuthError";
|
|
2142
|
-
}
|
|
2143
|
-
/**
|
|
2144
|
-
* Creates an error thrown if loopback server address is of type string.
|
|
2145
|
-
*/
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
static createInvalidLoopbackAddressTypeError() {
|
|
2149
|
-
return new NodeAuthError(NodeAuthErrorMessage.invalidLoopbackAddressType.code, `${NodeAuthErrorMessage.invalidLoopbackAddressType.desc}`);
|
|
2150
|
-
}
|
|
2151
|
-
/**
|
|
2152
|
-
* Creates an error thrown if the loopback server is unable to get a url.
|
|
2153
|
-
*/
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
static createUnableToLoadRedirectUrlError() {
|
|
2157
|
-
return new NodeAuthError(NodeAuthErrorMessage.unableToLoadRedirectUri.code, `${NodeAuthErrorMessage.unableToLoadRedirectUri.desc}`);
|
|
2158
|
-
}
|
|
2159
|
-
/**
|
|
2160
|
-
* Creates an error thrown if the server response does not contain an auth code.
|
|
2161
|
-
*/
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
static createNoAuthCodeInResponseError() {
|
|
2165
|
-
return new NodeAuthError(NodeAuthErrorMessage.noAuthCodeInResponse.code, `${NodeAuthErrorMessage.noAuthCodeInResponse.desc}`);
|
|
2166
|
-
}
|
|
2167
|
-
/**
|
|
2168
|
-
* Creates an error thrown if the loopback server has not been spun up yet.
|
|
2169
|
-
*/
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
static createNoLoopbackServerExistsError() {
|
|
2173
|
-
return new NodeAuthError(NodeAuthErrorMessage.noLoopbackServerExists.code, `${NodeAuthErrorMessage.noLoopbackServerExists.desc}`);
|
|
2174
|
-
}
|
|
2175
|
-
/**
|
|
2176
|
-
* Creates an error thrown if a loopback server already exists when attempting to create another one.
|
|
2177
|
-
*/
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
static createLoopbackServerAlreadyExistsError() {
|
|
2181
|
-
return new NodeAuthError(NodeAuthErrorMessage.loopbackServerAlreadyExists.code, `${NodeAuthErrorMessage.loopbackServerAlreadyExists.desc}`);
|
|
2182
|
-
}
|
|
2183
|
-
/**
|
|
2184
|
-
* Creates an error thrown if the loopback server times out registering the auth code listener.
|
|
2185
|
-
*/
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
static createLoopbackServerTimeoutError() {
|
|
2189
|
-
return new NodeAuthError(NodeAuthErrorMessage.loopbackServerTimeout.code, `${NodeAuthErrorMessage.loopbackServerTimeout.desc}`);
|
|
2190
|
-
}
|
|
2191
|
-
|
|
2192
|
-
}
|
|
2193
|
-
|
|
2194
2236
|
/*
|
|
2195
2237
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2196
2238
|
* Licensed under the MIT License.
|