@azure/msal-common 15.2.1 → 15.4.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/account/AccountInfo.mjs +1 -1
- package/dist/account/AuthToken.mjs +1 -1
- package/dist/account/CcsCredential.mjs +1 -1
- package/dist/account/ClientInfo.mjs +1 -1
- package/dist/account/TokenClaims.mjs +1 -1
- package/dist/authority/Authority.mjs +3 -3
- package/dist/authority/Authority.mjs.map +1 -1
- package/dist/authority/AuthorityFactory.mjs +1 -1
- package/dist/authority/AuthorityMetadata.mjs +1 -1
- package/dist/authority/AuthorityOptions.mjs +1 -1
- package/dist/authority/AuthorityType.mjs +1 -1
- package/dist/authority/CloudInstanceDiscoveryErrorResponse.mjs +1 -1
- package/dist/authority/CloudInstanceDiscoveryResponse.mjs +1 -1
- package/dist/authority/OpenIdConfigResponse.mjs +1 -1
- package/dist/authority/ProtocolMode.d.ts +11 -0
- package/dist/authority/ProtocolMode.d.ts.map +1 -1
- package/dist/authority/ProtocolMode.mjs +12 -1
- package/dist/authority/ProtocolMode.mjs.map +1 -1
- package/dist/authority/RegionDiscovery.mjs +1 -1
- package/dist/cache/CacheManager.mjs +1 -1
- package/dist/cache/entities/AccountEntity.mjs +4 -4
- package/dist/cache/entities/AccountEntity.mjs.map +1 -1
- package/dist/cache/persistence/TokenCacheContext.mjs +1 -1
- package/dist/cache/utils/CacheHelpers.mjs +1 -1
- package/dist/client/AuthorizationCodeClient.d.ts +0 -31
- package/dist/client/AuthorizationCodeClient.d.ts.map +1 -1
- package/dist/client/AuthorizationCodeClient.mjs +41 -246
- package/dist/client/AuthorizationCodeClient.mjs.map +1 -1
- package/dist/client/BaseClient.d.ts.map +1 -1
- package/dist/client/BaseClient.mjs +9 -10
- package/dist/client/BaseClient.mjs.map +1 -1
- package/dist/client/RefreshTokenClient.d.ts.map +1 -1
- package/dist/client/RefreshTokenClient.mjs +27 -29
- package/dist/client/RefreshTokenClient.mjs.map +1 -1
- package/dist/client/SilentFlowClient.mjs +1 -1
- package/dist/config/ClientConfiguration.mjs +1 -1
- package/dist/constants/AADServerParamKeys.d.ts +3 -0
- package/dist/constants/AADServerParamKeys.d.ts.map +1 -1
- package/dist/constants/AADServerParamKeys.mjs +6 -3
- package/dist/constants/AADServerParamKeys.mjs.map +1 -1
- package/dist/crypto/ICrypto.mjs +1 -1
- package/dist/crypto/JoseHeader.mjs +1 -1
- package/dist/crypto/PopTokenGenerator.mjs +1 -1
- package/dist/error/AuthError.mjs +1 -1
- package/dist/error/AuthErrorCodes.mjs +1 -1
- package/dist/error/CacheError.mjs +1 -1
- package/dist/error/CacheErrorCodes.mjs +1 -1
- package/dist/error/ClientAuthError.mjs +1 -1
- package/dist/error/ClientAuthErrorCodes.mjs +1 -1
- package/dist/error/ClientConfigurationError.mjs +1 -1
- package/dist/error/ClientConfigurationErrorCodes.mjs +1 -1
- package/dist/error/InteractionRequiredAuthError.mjs +1 -1
- package/dist/error/InteractionRequiredAuthErrorCodes.mjs +1 -1
- package/dist/error/JoseHeaderError.mjs +1 -1
- package/dist/error/JoseHeaderErrorCodes.mjs +1 -1
- package/dist/error/NetworkError.mjs +1 -1
- package/dist/error/ServerError.mjs +1 -1
- package/dist/exports-common.d.ts +4 -3
- package/dist/exports-common.d.ts.map +1 -1
- package/dist/index-browser.mjs +6 -3
- package/dist/index-browser.mjs.map +1 -1
- package/dist/index-node.mjs +6 -3
- package/dist/index-node.mjs.map +1 -1
- package/dist/index.mjs +6 -3
- package/dist/index.mjs.map +1 -1
- package/dist/logger/Logger.mjs +1 -1
- package/dist/network/INetworkModule.mjs +1 -1
- package/dist/network/RequestThumbprint.mjs +1 -1
- package/dist/network/ThrottlingUtils.mjs +1 -1
- package/dist/packageMetadata.d.ts +1 -1
- package/dist/packageMetadata.mjs +2 -2
- package/dist/protocol/Authorize.d.ts +37 -0
- package/dist/protocol/Authorize.d.ts.map +1 -0
- package/dist/protocol/Authorize.mjs +237 -0
- package/dist/protocol/Authorize.mjs.map +1 -0
- package/dist/request/AuthenticationHeaderParser.mjs +1 -1
- package/dist/request/CommonAuthorizationUrlRequest.d.ts +3 -2
- package/dist/request/CommonAuthorizationUrlRequest.d.ts.map +1 -1
- package/dist/request/RequestParameterBuilder.d.ts +211 -219
- package/dist/request/RequestParameterBuilder.d.ts.map +1 -1
- package/dist/request/RequestParameterBuilder.mjs +364 -370
- package/dist/request/RequestParameterBuilder.mjs.map +1 -1
- package/dist/request/RequestValidator.mjs +1 -1
- package/dist/request/ScopeSet.mjs +1 -1
- package/dist/response/AuthorizeResponse.d.ts +76 -0
- package/dist/response/AuthorizeResponse.d.ts.map +1 -0
- package/dist/response/ResponseHandler.d.ts +0 -8
- package/dist/response/ResponseHandler.d.ts.map +1 -1
- package/dist/response/ResponseHandler.mjs +2 -49
- package/dist/response/ResponseHandler.mjs.map +1 -1
- package/dist/telemetry/performance/PerformanceClient.mjs +1 -1
- package/dist/telemetry/performance/PerformanceEvent.d.ts +6 -2
- package/dist/telemetry/performance/PerformanceEvent.d.ts.map +1 -1
- package/dist/telemetry/performance/PerformanceEvent.mjs +15 -11
- package/dist/telemetry/performance/PerformanceEvent.mjs.map +1 -1
- package/dist/telemetry/performance/StubPerformanceClient.mjs +1 -1
- package/dist/telemetry/server/ServerTelemetryManager.mjs +1 -1
- package/dist/url/UrlString.mjs +1 -1
- package/dist/utils/ClientAssertionUtils.mjs +1 -1
- package/dist/utils/Constants.d.ts +11 -5
- package/dist/utils/Constants.d.ts.map +1 -1
- package/dist/utils/Constants.mjs +13 -8
- package/dist/utils/Constants.mjs.map +1 -1
- package/dist/utils/FunctionWrappers.mjs +1 -1
- package/dist/utils/ProtocolUtils.mjs +1 -1
- package/dist/utils/StringUtils.mjs +1 -1
- package/dist/utils/TimeUtils.mjs +1 -1
- package/dist/utils/UrlUtils.d.ts +6 -2
- package/dist/utils/UrlUtils.d.ts.map +1 -1
- package/dist/utils/UrlUtils.mjs +13 -2
- package/dist/utils/UrlUtils.mjs.map +1 -1
- package/lib/index-browser.cjs +4 -2
- package/lib/index-browser.cjs.map +1 -1
- package/lib/{index-node--LMD5Re1.js → index-node-C56U0Gkp.js} +833 -777
- package/lib/index-node-C56U0Gkp.js.map +1 -0
- package/lib/index-node.cjs +4 -2
- package/lib/index-node.cjs.map +1 -1
- package/lib/index.cjs +4 -2
- package/lib/index.cjs.map +1 -1
- package/lib/types/authority/ProtocolMode.d.ts +11 -0
- package/lib/types/authority/ProtocolMode.d.ts.map +1 -1
- package/lib/types/client/AuthorizationCodeClient.d.ts +0 -31
- package/lib/types/client/AuthorizationCodeClient.d.ts.map +1 -1
- package/lib/types/client/BaseClient.d.ts.map +1 -1
- package/lib/types/client/RefreshTokenClient.d.ts.map +1 -1
- package/lib/types/constants/AADServerParamKeys.d.ts +3 -0
- package/lib/types/constants/AADServerParamKeys.d.ts.map +1 -1
- package/lib/types/exports-common.d.ts +4 -3
- package/lib/types/exports-common.d.ts.map +1 -1
- package/lib/types/packageMetadata.d.ts +1 -1
- package/lib/types/protocol/Authorize.d.ts +37 -0
- package/lib/types/protocol/Authorize.d.ts.map +1 -0
- package/lib/types/request/CommonAuthorizationUrlRequest.d.ts +3 -2
- package/lib/types/request/CommonAuthorizationUrlRequest.d.ts.map +1 -1
- package/lib/types/request/RequestParameterBuilder.d.ts +211 -219
- package/lib/types/request/RequestParameterBuilder.d.ts.map +1 -1
- package/lib/types/response/AuthorizeResponse.d.ts +76 -0
- package/lib/types/response/AuthorizeResponse.d.ts.map +1 -0
- package/lib/types/response/ResponseHandler.d.ts +0 -8
- package/lib/types/response/ResponseHandler.d.ts.map +1 -1
- package/lib/types/telemetry/performance/PerformanceEvent.d.ts +6 -2
- package/lib/types/telemetry/performance/PerformanceEvent.d.ts.map +1 -1
- package/lib/types/utils/Constants.d.ts +11 -5
- package/lib/types/utils/Constants.d.ts.map +1 -1
- package/lib/types/utils/UrlUtils.d.ts +6 -2
- package/lib/types/utils/UrlUtils.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/authority/Authority.ts +2 -2
- package/src/authority/ProtocolMode.ts +11 -0
- package/src/cache/entities/AccountEntity.ts +3 -3
- package/src/client/AuthorizationCodeClient.ts +84 -395
- package/src/client/BaseClient.ts +20 -12
- package/src/client/RefreshTokenClient.ts +60 -30
- package/src/constants/AADServerParamKeys.ts +3 -0
- package/src/exports-common.ts +5 -2
- package/src/packageMetadata.ts +1 -1
- package/src/protocol/Authorize.ts +409 -0
- package/src/request/CommonAuthorizationUrlRequest.ts +3 -2
- package/src/request/RequestParameterBuilder.ts +516 -545
- package/src/response/AuthorizeResponse.ts +80 -0
- package/src/response/ResponseHandler.ts +0 -98
- package/src/telemetry/performance/PerformanceEvent.ts +14 -11
- package/src/utils/Constants.ts +14 -6
- package/src/utils/UrlUtils.ts +19 -4
- package/dist/response/ServerAuthorizationCodeResponse.d.ts +0 -27
- package/dist/response/ServerAuthorizationCodeResponse.d.ts.map +0 -1
- package/lib/index-node--LMD5Re1.js.map +0 -1
- package/lib/types/response/ServerAuthorizationCodeResponse.d.ts +0 -27
- package/lib/types/response/ServerAuthorizationCodeResponse.d.ts.map +0 -1
- package/src/response/ServerAuthorizationCodeResponse.ts +0 -34
|
@@ -1,225 +1,217 @@
|
|
|
1
|
-
import { ResponseMode } from "../utils/Constants.js";
|
|
1
|
+
import { ResponseMode, OAuthResponseType } from "../utils/Constants.js";
|
|
2
2
|
import { StringDict } from "../utils/MsalTypes.js";
|
|
3
3
|
import { ApplicationTelemetry, LibraryInfo } from "../config/ClientConfiguration.js";
|
|
4
4
|
import { ServerTelemetryManager } from "../telemetry/server/ServerTelemetryManager.js";
|
|
5
5
|
import { ClientInfo } from "../account/ClientInfo.js";
|
|
6
6
|
import { IPerformanceClient } from "../telemetry/performance/IPerformanceClient.js";
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
brokerClientId: string;
|
|
218
|
-
brokerRedirectUri: string;
|
|
219
|
-
}): void;
|
|
220
|
-
/**
|
|
221
|
-
* Utility to create a URL from the params map
|
|
222
|
-
*/
|
|
223
|
-
createQueryString(): string;
|
|
224
|
-
}
|
|
7
|
+
export declare function instrumentBrokerParams(parameters: Map<string, string>, correlationId?: string, performanceClient?: IPerformanceClient): void;
|
|
8
|
+
/**
|
|
9
|
+
* Add the given response_type
|
|
10
|
+
* @param parameters
|
|
11
|
+
* @param responseType
|
|
12
|
+
*/
|
|
13
|
+
export declare function addResponseType(parameters: Map<string, string>, responseType: OAuthResponseType): void;
|
|
14
|
+
/**
|
|
15
|
+
* add response_mode. defaults to query.
|
|
16
|
+
* @param responseMode
|
|
17
|
+
*/
|
|
18
|
+
export declare function addResponseMode(parameters: Map<string, string>, responseMode?: ResponseMode): void;
|
|
19
|
+
/**
|
|
20
|
+
* Add flag to indicate STS should attempt to use WAM if available
|
|
21
|
+
*/
|
|
22
|
+
export declare function addNativeBroker(parameters: Map<string, string>): void;
|
|
23
|
+
/**
|
|
24
|
+
* add scopes. set addOidcScopes to false to prevent default scopes in non-user scenarios
|
|
25
|
+
* @param scopeSet
|
|
26
|
+
* @param addOidcScopes
|
|
27
|
+
*/
|
|
28
|
+
export declare function addScopes(parameters: Map<string, string>, scopes: string[], addOidcScopes?: boolean, defaultScopes?: Array<string>): void;
|
|
29
|
+
/**
|
|
30
|
+
* add clientId
|
|
31
|
+
* @param clientId
|
|
32
|
+
*/
|
|
33
|
+
export declare function addClientId(parameters: Map<string, string>, clientId: string): void;
|
|
34
|
+
/**
|
|
35
|
+
* add redirect_uri
|
|
36
|
+
* @param redirectUri
|
|
37
|
+
*/
|
|
38
|
+
export declare function addRedirectUri(parameters: Map<string, string>, redirectUri: string): void;
|
|
39
|
+
/**
|
|
40
|
+
* add post logout redirectUri
|
|
41
|
+
* @param redirectUri
|
|
42
|
+
*/
|
|
43
|
+
export declare function addPostLogoutRedirectUri(parameters: Map<string, string>, redirectUri: string): void;
|
|
44
|
+
/**
|
|
45
|
+
* add id_token_hint to logout request
|
|
46
|
+
* @param idTokenHint
|
|
47
|
+
*/
|
|
48
|
+
export declare function addIdTokenHint(parameters: Map<string, string>, idTokenHint: string): void;
|
|
49
|
+
/**
|
|
50
|
+
* add domain_hint
|
|
51
|
+
* @param domainHint
|
|
52
|
+
*/
|
|
53
|
+
export declare function addDomainHint(parameters: Map<string, string>, domainHint: string): void;
|
|
54
|
+
/**
|
|
55
|
+
* add login_hint
|
|
56
|
+
* @param loginHint
|
|
57
|
+
*/
|
|
58
|
+
export declare function addLoginHint(parameters: Map<string, string>, loginHint: string): void;
|
|
59
|
+
/**
|
|
60
|
+
* Adds the CCS (Cache Credential Service) query parameter for login_hint
|
|
61
|
+
* @param loginHint
|
|
62
|
+
*/
|
|
63
|
+
export declare function addCcsUpn(parameters: Map<string, string>, loginHint: string): void;
|
|
64
|
+
/**
|
|
65
|
+
* Adds the CCS (Cache Credential Service) query parameter for account object
|
|
66
|
+
* @param loginHint
|
|
67
|
+
*/
|
|
68
|
+
export declare function addCcsOid(parameters: Map<string, string>, clientInfo: ClientInfo): void;
|
|
69
|
+
/**
|
|
70
|
+
* add sid
|
|
71
|
+
* @param sid
|
|
72
|
+
*/
|
|
73
|
+
export declare function addSid(parameters: Map<string, string>, sid: string): void;
|
|
74
|
+
/**
|
|
75
|
+
* add claims
|
|
76
|
+
* @param claims
|
|
77
|
+
*/
|
|
78
|
+
export declare function addClaims(parameters: Map<string, string>, claims?: string, clientCapabilities?: Array<string>): void;
|
|
79
|
+
/**
|
|
80
|
+
* add correlationId
|
|
81
|
+
* @param correlationId
|
|
82
|
+
*/
|
|
83
|
+
export declare function addCorrelationId(parameters: Map<string, string>, correlationId: string): void;
|
|
84
|
+
/**
|
|
85
|
+
* add library info query params
|
|
86
|
+
* @param libraryInfo
|
|
87
|
+
*/
|
|
88
|
+
export declare function addLibraryInfo(parameters: Map<string, string>, libraryInfo: LibraryInfo): void;
|
|
89
|
+
/**
|
|
90
|
+
* Add client telemetry parameters
|
|
91
|
+
* @param appTelemetry
|
|
92
|
+
*/
|
|
93
|
+
export declare function addApplicationTelemetry(parameters: Map<string, string>, appTelemetry: ApplicationTelemetry): void;
|
|
94
|
+
/**
|
|
95
|
+
* add prompt
|
|
96
|
+
* @param prompt
|
|
97
|
+
*/
|
|
98
|
+
export declare function addPrompt(parameters: Map<string, string>, prompt: string): void;
|
|
99
|
+
/**
|
|
100
|
+
* add state
|
|
101
|
+
* @param state
|
|
102
|
+
*/
|
|
103
|
+
export declare function addState(parameters: Map<string, string>, state: string): void;
|
|
104
|
+
/**
|
|
105
|
+
* add nonce
|
|
106
|
+
* @param nonce
|
|
107
|
+
*/
|
|
108
|
+
export declare function addNonce(parameters: Map<string, string>, nonce: string): void;
|
|
109
|
+
/**
|
|
110
|
+
* add code_challenge and code_challenge_method
|
|
111
|
+
* - throw if either of them are not passed
|
|
112
|
+
* @param codeChallenge
|
|
113
|
+
* @param codeChallengeMethod
|
|
114
|
+
*/
|
|
115
|
+
export declare function addCodeChallengeParams(parameters: Map<string, string>, codeChallenge?: string, codeChallengeMethod?: string): void;
|
|
116
|
+
/**
|
|
117
|
+
* add the `authorization_code` passed by the user to exchange for a token
|
|
118
|
+
* @param code
|
|
119
|
+
*/
|
|
120
|
+
export declare function addAuthorizationCode(parameters: Map<string, string>, code: string): void;
|
|
121
|
+
/**
|
|
122
|
+
* add the `authorization_code` passed by the user to exchange for a token
|
|
123
|
+
* @param code
|
|
124
|
+
*/
|
|
125
|
+
export declare function addDeviceCode(parameters: Map<string, string>, code: string): void;
|
|
126
|
+
/**
|
|
127
|
+
* add the `refreshToken` passed by the user
|
|
128
|
+
* @param refreshToken
|
|
129
|
+
*/
|
|
130
|
+
export declare function addRefreshToken(parameters: Map<string, string>, refreshToken: string): void;
|
|
131
|
+
/**
|
|
132
|
+
* add the `code_verifier` passed by the user to exchange for a token
|
|
133
|
+
* @param codeVerifier
|
|
134
|
+
*/
|
|
135
|
+
export declare function addCodeVerifier(parameters: Map<string, string>, codeVerifier: string): void;
|
|
136
|
+
/**
|
|
137
|
+
* add client_secret
|
|
138
|
+
* @param clientSecret
|
|
139
|
+
*/
|
|
140
|
+
export declare function addClientSecret(parameters: Map<string, string>, clientSecret: string): void;
|
|
141
|
+
/**
|
|
142
|
+
* add clientAssertion for confidential client flows
|
|
143
|
+
* @param clientAssertion
|
|
144
|
+
*/
|
|
145
|
+
export declare function addClientAssertion(parameters: Map<string, string>, clientAssertion: string): void;
|
|
146
|
+
/**
|
|
147
|
+
* add clientAssertionType for confidential client flows
|
|
148
|
+
* @param clientAssertionType
|
|
149
|
+
*/
|
|
150
|
+
export declare function addClientAssertionType(parameters: Map<string, string>, clientAssertionType: string): void;
|
|
151
|
+
/**
|
|
152
|
+
* add OBO assertion for confidential client flows
|
|
153
|
+
* @param clientAssertion
|
|
154
|
+
*/
|
|
155
|
+
export declare function addOboAssertion(parameters: Map<string, string>, oboAssertion: string): void;
|
|
156
|
+
/**
|
|
157
|
+
* add grant type
|
|
158
|
+
* @param grantType
|
|
159
|
+
*/
|
|
160
|
+
export declare function addRequestTokenUse(parameters: Map<string, string>, tokenUse: string): void;
|
|
161
|
+
/**
|
|
162
|
+
* add grant type
|
|
163
|
+
* @param grantType
|
|
164
|
+
*/
|
|
165
|
+
export declare function addGrantType(parameters: Map<string, string>, grantType: string): void;
|
|
166
|
+
/**
|
|
167
|
+
* add client info
|
|
168
|
+
*
|
|
169
|
+
*/
|
|
170
|
+
export declare function addClientInfo(parameters: Map<string, string>): void;
|
|
171
|
+
export declare function addInstanceAware(parameters: Map<string, string>): void;
|
|
172
|
+
/**
|
|
173
|
+
* add extraQueryParams
|
|
174
|
+
* @param eQParams
|
|
175
|
+
*/
|
|
176
|
+
export declare function addExtraQueryParameters(parameters: Map<string, string>, eQParams: StringDict): void;
|
|
177
|
+
export declare function addClientCapabilitiesToClaims(claims?: string, clientCapabilities?: Array<string>): string;
|
|
178
|
+
/**
|
|
179
|
+
* adds `username` for Password Grant flow
|
|
180
|
+
* @param username
|
|
181
|
+
*/
|
|
182
|
+
export declare function addUsername(parameters: Map<string, string>, username: string): void;
|
|
183
|
+
/**
|
|
184
|
+
* adds `password` for Password Grant flow
|
|
185
|
+
* @param password
|
|
186
|
+
*/
|
|
187
|
+
export declare function addPassword(parameters: Map<string, string>, password: string): void;
|
|
188
|
+
/**
|
|
189
|
+
* add pop_jwk to query params
|
|
190
|
+
* @param cnfString
|
|
191
|
+
*/
|
|
192
|
+
export declare function addPopToken(parameters: Map<string, string>, cnfString: string): void;
|
|
193
|
+
/**
|
|
194
|
+
* add SSH JWK and key ID to query params
|
|
195
|
+
*/
|
|
196
|
+
export declare function addSshJwk(parameters: Map<string, string>, sshJwkString: string): void;
|
|
197
|
+
/**
|
|
198
|
+
* add server telemetry fields
|
|
199
|
+
* @param serverTelemetryManager
|
|
200
|
+
*/
|
|
201
|
+
export declare function addServerTelemetry(parameters: Map<string, string>, serverTelemetryManager: ServerTelemetryManager): void;
|
|
202
|
+
/**
|
|
203
|
+
* Adds parameter that indicates to the server that throttling is supported
|
|
204
|
+
*/
|
|
205
|
+
export declare function addThrottling(parameters: Map<string, string>): void;
|
|
206
|
+
/**
|
|
207
|
+
* Adds logout_hint parameter for "silent" logout which prevent server account picker
|
|
208
|
+
*/
|
|
209
|
+
export declare function addLogoutHint(parameters: Map<string, string>, logoutHint: string): void;
|
|
210
|
+
export declare function addBrokerParameters(parameters: Map<string, string>, brokerClientId: string, brokerRedirectUri: string): void;
|
|
211
|
+
/**
|
|
212
|
+
* Add EAR (Encrypted Authorize Response) request parameters
|
|
213
|
+
* @param parameters
|
|
214
|
+
* @param jwk
|
|
215
|
+
*/
|
|
216
|
+
export declare function addEARParameters(parameters: Map<string, string>, jwk: string): void;
|
|
225
217
|
//# sourceMappingURL=RequestParameterBuilder.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestParameterBuilder.d.ts","sourceRoot":"","sources":["../../../src/request/RequestParameterBuilder.ts"],"names":[],"mappings":"AAKA,OAAO,
|
|
1
|
+
{"version":3,"file":"RequestParameterBuilder.d.ts","sourceRoot":"","sources":["../../../src/request/RequestParameterBuilder.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,YAAY,EAQZ,iBAAiB,EACpB,MAAM,uBAAuB,CAAC;AAO/B,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,EACH,oBAAoB,EACpB,WAAW,EACd,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,sBAAsB,EAAE,MAAM,+CAA+C,CAAC;AACvF,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,EAAE,kBAAkB,EAAE,MAAM,gDAAgD,CAAC;AAEpF,wBAAgB,sBAAsB,CAClC,UAAU,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,EAC/B,aAAa,CAAC,EAAE,MAAM,EACtB,iBAAiB,CAAC,EAAE,kBAAkB,GACvC,IAAI,CAiBN;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAC3B,UAAU,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,EAC/B,YAAY,EAAE,iBAAiB,GAChC,IAAI,CAEN;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAC3B,UAAU,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,EAC/B,YAAY,CAAC,EAAE,YAAY,GAC5B,IAAI,CAKN;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,UAAU,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI,CAErE;AAED;;;;GAIG;AACH,wBAAgB,SAAS,CACrB,UAAU,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,EAC/B,MAAM,EAAE,MAAM,EAAE,EAChB,aAAa,GAAE,OAAc,EAC7B,aAAa,GAAE,KAAK,CAAC,MAAM,CAAuB,GACnD,IAAI,CAcN;AAED;;;GAGG;AACH,wBAAgB,WAAW,CACvB,UAAU,EAAE,GAAG,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AEN;AAED,wBAAgB,mBAAmB,CAC/B,UAAU,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,EAC/B,cAAc,EAAE,MAAM,EACtB,iBAAiB,EAAE,MAAM,GAC1B,IAAI,CAUN;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAC5B,UAAU,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,EAC/B,GAAG,EAAE,MAAM,GACZ,IAAI,CAMN"}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Response properties that may be returned by the /authorize endpoint
|
|
3
|
+
*/
|
|
4
|
+
export type AuthorizeResponse = {
|
|
5
|
+
/**
|
|
6
|
+
* Authorization Code to be exchanged for tokens
|
|
7
|
+
*/
|
|
8
|
+
code?: string;
|
|
9
|
+
/**
|
|
10
|
+
* Encrypted Authorize Response (EAR) JWE
|
|
11
|
+
*/
|
|
12
|
+
ear_jwe?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Client info object containing UserId and TenantId
|
|
15
|
+
*/
|
|
16
|
+
client_info?: string;
|
|
17
|
+
/**
|
|
18
|
+
* State string, should match what was sent on request
|
|
19
|
+
*/
|
|
20
|
+
state?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Cloud instance returned when application is instance aware
|
|
23
|
+
*/
|
|
24
|
+
cloud_instance_name?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Cloud instance hostname returned when application is instance aware
|
|
27
|
+
*/
|
|
28
|
+
cloud_instance_host_name?: string;
|
|
29
|
+
/**
|
|
30
|
+
* AAD Graph hostname returned when application is instance aware
|
|
31
|
+
* https://docs.microsoft.com/en-us/azure/active-directory/develop/active-directory-graph-api
|
|
32
|
+
*/
|
|
33
|
+
cloud_graph_host_name?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Microsoft Graph hostname returned when application is instance aware
|
|
36
|
+
* https://docs.microsoft.com/en-us/graph/overview
|
|
37
|
+
*/
|
|
38
|
+
msgraph_host?: string;
|
|
39
|
+
/**
|
|
40
|
+
* Server error code
|
|
41
|
+
*/
|
|
42
|
+
error?: string;
|
|
43
|
+
/**
|
|
44
|
+
* Server error URI
|
|
45
|
+
*/
|
|
46
|
+
error_uri?: string;
|
|
47
|
+
/**
|
|
48
|
+
* Server error description
|
|
49
|
+
*/
|
|
50
|
+
error_description?: string;
|
|
51
|
+
/**
|
|
52
|
+
* Server Sub-Error
|
|
53
|
+
*/
|
|
54
|
+
suberror?: string;
|
|
55
|
+
/**
|
|
56
|
+
* Timestamp of request
|
|
57
|
+
*/
|
|
58
|
+
timestamp?: string;
|
|
59
|
+
/**
|
|
60
|
+
* Trace Id used to look up request in logs
|
|
61
|
+
*/
|
|
62
|
+
trace_id?: string;
|
|
63
|
+
/**
|
|
64
|
+
* Correlation ID use to look up request in logs
|
|
65
|
+
*/
|
|
66
|
+
correlation_id?: string;
|
|
67
|
+
/**
|
|
68
|
+
* Claims
|
|
69
|
+
*/
|
|
70
|
+
claims?: string;
|
|
71
|
+
/**
|
|
72
|
+
* AccountId for the user, returned when platform broker is available to use
|
|
73
|
+
*/
|
|
74
|
+
accountId?: string;
|
|
75
|
+
};
|
|
76
|
+
//# sourceMappingURL=AuthorizeResponse.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AuthorizeResponse.d.ts","sourceRoot":"","sources":["../../../src/response/AuthorizeResponse.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC5B;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B;;OAEG;IACH,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC;;;OAGG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ServerAuthorizationTokenResponse } from "./ServerAuthorizationTokenResponse.js";
|
|
2
2
|
import { ICrypto } from "../crypto/ICrypto.js";
|
|
3
|
-
import { ServerAuthorizationCodeResponse } from "./ServerAuthorizationCodeResponse.js";
|
|
4
3
|
import { Logger } from "../logger/Logger.js";
|
|
5
4
|
import { AuthenticationResult } from "./AuthenticationResult.js";
|
|
6
5
|
import { AccountEntity } from "../cache/entities/AccountEntity.js";
|
|
@@ -28,13 +27,6 @@ export declare class ResponseHandler {
|
|
|
28
27
|
private persistencePlugin;
|
|
29
28
|
private performanceClient?;
|
|
30
29
|
constructor(clientId: string, cacheStorage: CacheManager, cryptoObj: ICrypto, logger: Logger, serializableCache: ISerializableTokenCache | null, persistencePlugin: ICachePlugin | null, performanceClient?: IPerformanceClient);
|
|
31
|
-
/**
|
|
32
|
-
* Function which validates server authorization code response.
|
|
33
|
-
* @param serverResponseHash
|
|
34
|
-
* @param requestState
|
|
35
|
-
* @param cryptoObj
|
|
36
|
-
*/
|
|
37
|
-
validateServerAuthorizationCodeResponse(serverResponse: ServerAuthorizationCodeResponse, requestState: string): void;
|
|
38
30
|
/**
|
|
39
31
|
* Function which validates server authorization token response.
|
|
40
32
|
* @param serverResponse
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ResponseHandler.d.ts","sourceRoot":"","sources":["../../../src/response/ResponseHandler.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,gCAAgC,EAAE,MAAM,uCAAuC,CAAC;AACzF,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAK/C,OAAO,EAAE
|
|
1
|
+
{"version":3,"file":"ResponseHandler.d.ts","sourceRoot":"","sources":["../../../src/response/ResponseHandler.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,gCAAgC,EAAE,MAAM,uCAAuC,CAAC;AACzF,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAK/C,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAG7C,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACnE,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAQtD,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAiB,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAS9E,OAAO,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAC;AAElE,OAAO,EAAE,uBAAuB,EAAE,MAAM,+CAA+C,CAAC;AACxF,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,EAAE,kBAAkB,EAAE,MAAM,gDAAgD,CAAC;AAGpF,OAAO,EACH,WAAW,EAEd,MAAM,2BAA2B,CAAC;AASnC;;;GAGG;AAC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AS,CAAC,EAAE,MAAM,GACnB,OAAO,CAAC,oBAAoB,CAAC;CA2GnC;AAED,wBAAgB,mBAAmB,CAC/B,YAAY,EAAE,YAAY,EAC1B,SAAS,EAAE,SAAS,EACpB,aAAa,EAAE,MAAM,EACrB,YAAY,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,EACvC,aAAa,CAAC,EAAE,WAAW,EAC3B,UAAU,CAAC,EAAE,MAAM,EACnB,WAAW,CAAC,EAAE,MAAM,EACpB,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,EAC9B,eAAe,CAAC,EAAE,wBAAwB,EAC1C,eAAe,CAAC,EAAE,MAAM,EACxB,MAAM,CAAC,EAAE,MAAM,GAChB,aAAa,CAiDf"}
|
|
@@ -169,16 +169,19 @@ export declare const PerformanceEvents: {
|
|
|
169
169
|
readonly StandardInteractionClientCreateAuthCodeClient: "standardInteractionClientCreateAuthCodeClient";
|
|
170
170
|
readonly StandardInteractionClientGetClientConfiguration: "standardInteractionClientGetClientConfiguration";
|
|
171
171
|
readonly StandardInteractionClientInitializeAuthorizationRequest: "standardInteractionClientInitializeAuthorizationRequest";
|
|
172
|
-
readonly StandardInteractionClientInitializeAuthorizationCodeRequest: "standardInteractionClientInitializeAuthorizationCodeRequest";
|
|
173
172
|
/**
|
|
174
173
|
* getAuthCodeUrl API (msal-browser and msal-node).
|
|
175
174
|
*/
|
|
176
175
|
readonly GetAuthCodeUrl: "getAuthCodeUrl";
|
|
176
|
+
readonly GetStandardParams: "getStandardParams";
|
|
177
177
|
/**
|
|
178
178
|
* Functions from InteractionHandler (msal-browser)
|
|
179
179
|
*/
|
|
180
180
|
readonly HandleCodeResponseFromServer: "handleCodeResponseFromServer";
|
|
181
181
|
readonly HandleCodeResponse: "handleCodeResponse";
|
|
182
|
+
readonly HandleResponseEar: "handleResponseEar";
|
|
183
|
+
readonly HandleResponsePlatformBroker: "handleResponsePlatformBroker";
|
|
184
|
+
readonly HandleResponseCode: "handleResponseCode";
|
|
182
185
|
readonly UpdateTokenEndpointAuthority: "updateTokenEndpointAuthority";
|
|
183
186
|
/**
|
|
184
187
|
* APIs in Authorization Code Client (msal-common)
|
|
@@ -186,7 +189,6 @@ export declare const PerformanceEvents: {
|
|
|
186
189
|
readonly AuthClientAcquireToken: "authClientAcquireToken";
|
|
187
190
|
readonly AuthClientExecuteTokenRequest: "authClientExecuteTokenRequest";
|
|
188
191
|
readonly AuthClientCreateTokenRequestBody: "authClientCreateTokenRequestBody";
|
|
189
|
-
readonly AuthClientCreateQueryString: "authClientCreateQueryString";
|
|
190
192
|
/**
|
|
191
193
|
* Generate functions in PopTokenGenerator (msal-common)
|
|
192
194
|
*/
|
|
@@ -246,6 +248,8 @@ export declare const PerformanceEvents: {
|
|
|
246
248
|
readonly UrlEncodeArr: "urlEncodeArr";
|
|
247
249
|
readonly Encrypt: "encrypt";
|
|
248
250
|
readonly Decrypt: "decrypt";
|
|
251
|
+
readonly GenerateEarKey: "generateEarKey";
|
|
252
|
+
readonly DecryptEarResponse: "decryptEarResponse";
|
|
249
253
|
};
|
|
250
254
|
export type PerformanceEvents = (typeof PerformanceEvents)[keyof typeof PerformanceEvents];
|
|
251
255
|
export declare const PerformanceEventAbbreviations: ReadonlyMap<string, string>;
|