@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.
Files changed (170) hide show
  1. package/dist/account/AccountInfo.mjs +1 -1
  2. package/dist/account/AuthToken.mjs +1 -1
  3. package/dist/account/CcsCredential.mjs +1 -1
  4. package/dist/account/ClientInfo.mjs +1 -1
  5. package/dist/account/TokenClaims.mjs +1 -1
  6. package/dist/authority/Authority.mjs +3 -3
  7. package/dist/authority/Authority.mjs.map +1 -1
  8. package/dist/authority/AuthorityFactory.mjs +1 -1
  9. package/dist/authority/AuthorityMetadata.mjs +1 -1
  10. package/dist/authority/AuthorityOptions.mjs +1 -1
  11. package/dist/authority/AuthorityType.mjs +1 -1
  12. package/dist/authority/CloudInstanceDiscoveryErrorResponse.mjs +1 -1
  13. package/dist/authority/CloudInstanceDiscoveryResponse.mjs +1 -1
  14. package/dist/authority/OpenIdConfigResponse.mjs +1 -1
  15. package/dist/authority/ProtocolMode.d.ts +11 -0
  16. package/dist/authority/ProtocolMode.d.ts.map +1 -1
  17. package/dist/authority/ProtocolMode.mjs +12 -1
  18. package/dist/authority/ProtocolMode.mjs.map +1 -1
  19. package/dist/authority/RegionDiscovery.mjs +1 -1
  20. package/dist/cache/CacheManager.mjs +1 -1
  21. package/dist/cache/entities/AccountEntity.mjs +4 -4
  22. package/dist/cache/entities/AccountEntity.mjs.map +1 -1
  23. package/dist/cache/persistence/TokenCacheContext.mjs +1 -1
  24. package/dist/cache/utils/CacheHelpers.mjs +1 -1
  25. package/dist/client/AuthorizationCodeClient.d.ts +0 -31
  26. package/dist/client/AuthorizationCodeClient.d.ts.map +1 -1
  27. package/dist/client/AuthorizationCodeClient.mjs +41 -246
  28. package/dist/client/AuthorizationCodeClient.mjs.map +1 -1
  29. package/dist/client/BaseClient.d.ts.map +1 -1
  30. package/dist/client/BaseClient.mjs +9 -10
  31. package/dist/client/BaseClient.mjs.map +1 -1
  32. package/dist/client/RefreshTokenClient.d.ts.map +1 -1
  33. package/dist/client/RefreshTokenClient.mjs +27 -29
  34. package/dist/client/RefreshTokenClient.mjs.map +1 -1
  35. package/dist/client/SilentFlowClient.mjs +1 -1
  36. package/dist/config/ClientConfiguration.mjs +1 -1
  37. package/dist/constants/AADServerParamKeys.d.ts +3 -0
  38. package/dist/constants/AADServerParamKeys.d.ts.map +1 -1
  39. package/dist/constants/AADServerParamKeys.mjs +6 -3
  40. package/dist/constants/AADServerParamKeys.mjs.map +1 -1
  41. package/dist/crypto/ICrypto.mjs +1 -1
  42. package/dist/crypto/JoseHeader.mjs +1 -1
  43. package/dist/crypto/PopTokenGenerator.mjs +1 -1
  44. package/dist/error/AuthError.mjs +1 -1
  45. package/dist/error/AuthErrorCodes.mjs +1 -1
  46. package/dist/error/CacheError.mjs +1 -1
  47. package/dist/error/CacheErrorCodes.mjs +1 -1
  48. package/dist/error/ClientAuthError.mjs +1 -1
  49. package/dist/error/ClientAuthErrorCodes.mjs +1 -1
  50. package/dist/error/ClientConfigurationError.mjs +1 -1
  51. package/dist/error/ClientConfigurationErrorCodes.mjs +1 -1
  52. package/dist/error/InteractionRequiredAuthError.mjs +1 -1
  53. package/dist/error/InteractionRequiredAuthErrorCodes.mjs +1 -1
  54. package/dist/error/JoseHeaderError.mjs +1 -1
  55. package/dist/error/JoseHeaderErrorCodes.mjs +1 -1
  56. package/dist/error/NetworkError.mjs +1 -1
  57. package/dist/error/ServerError.mjs +1 -1
  58. package/dist/exports-common.d.ts +4 -3
  59. package/dist/exports-common.d.ts.map +1 -1
  60. package/dist/index-browser.mjs +6 -3
  61. package/dist/index-browser.mjs.map +1 -1
  62. package/dist/index-node.mjs +6 -3
  63. package/dist/index-node.mjs.map +1 -1
  64. package/dist/index.mjs +6 -3
  65. package/dist/index.mjs.map +1 -1
  66. package/dist/logger/Logger.mjs +1 -1
  67. package/dist/network/INetworkModule.mjs +1 -1
  68. package/dist/network/RequestThumbprint.mjs +1 -1
  69. package/dist/network/ThrottlingUtils.mjs +1 -1
  70. package/dist/packageMetadata.d.ts +1 -1
  71. package/dist/packageMetadata.mjs +2 -2
  72. package/dist/protocol/Authorize.d.ts +37 -0
  73. package/dist/protocol/Authorize.d.ts.map +1 -0
  74. package/dist/protocol/Authorize.mjs +237 -0
  75. package/dist/protocol/Authorize.mjs.map +1 -0
  76. package/dist/request/AuthenticationHeaderParser.mjs +1 -1
  77. package/dist/request/CommonAuthorizationUrlRequest.d.ts +3 -2
  78. package/dist/request/CommonAuthorizationUrlRequest.d.ts.map +1 -1
  79. package/dist/request/RequestParameterBuilder.d.ts +211 -219
  80. package/dist/request/RequestParameterBuilder.d.ts.map +1 -1
  81. package/dist/request/RequestParameterBuilder.mjs +364 -370
  82. package/dist/request/RequestParameterBuilder.mjs.map +1 -1
  83. package/dist/request/RequestValidator.mjs +1 -1
  84. package/dist/request/ScopeSet.mjs +1 -1
  85. package/dist/response/AuthorizeResponse.d.ts +76 -0
  86. package/dist/response/AuthorizeResponse.d.ts.map +1 -0
  87. package/dist/response/ResponseHandler.d.ts +0 -8
  88. package/dist/response/ResponseHandler.d.ts.map +1 -1
  89. package/dist/response/ResponseHandler.mjs +2 -49
  90. package/dist/response/ResponseHandler.mjs.map +1 -1
  91. package/dist/telemetry/performance/PerformanceClient.mjs +1 -1
  92. package/dist/telemetry/performance/PerformanceEvent.d.ts +6 -2
  93. package/dist/telemetry/performance/PerformanceEvent.d.ts.map +1 -1
  94. package/dist/telemetry/performance/PerformanceEvent.mjs +15 -11
  95. package/dist/telemetry/performance/PerformanceEvent.mjs.map +1 -1
  96. package/dist/telemetry/performance/StubPerformanceClient.mjs +1 -1
  97. package/dist/telemetry/server/ServerTelemetryManager.mjs +1 -1
  98. package/dist/url/UrlString.mjs +1 -1
  99. package/dist/utils/ClientAssertionUtils.mjs +1 -1
  100. package/dist/utils/Constants.d.ts +11 -5
  101. package/dist/utils/Constants.d.ts.map +1 -1
  102. package/dist/utils/Constants.mjs +13 -8
  103. package/dist/utils/Constants.mjs.map +1 -1
  104. package/dist/utils/FunctionWrappers.mjs +1 -1
  105. package/dist/utils/ProtocolUtils.mjs +1 -1
  106. package/dist/utils/StringUtils.mjs +1 -1
  107. package/dist/utils/TimeUtils.mjs +1 -1
  108. package/dist/utils/UrlUtils.d.ts +6 -2
  109. package/dist/utils/UrlUtils.d.ts.map +1 -1
  110. package/dist/utils/UrlUtils.mjs +13 -2
  111. package/dist/utils/UrlUtils.mjs.map +1 -1
  112. package/lib/index-browser.cjs +4 -2
  113. package/lib/index-browser.cjs.map +1 -1
  114. package/lib/{index-node--LMD5Re1.js → index-node-C56U0Gkp.js} +833 -777
  115. package/lib/index-node-C56U0Gkp.js.map +1 -0
  116. package/lib/index-node.cjs +4 -2
  117. package/lib/index-node.cjs.map +1 -1
  118. package/lib/index.cjs +4 -2
  119. package/lib/index.cjs.map +1 -1
  120. package/lib/types/authority/ProtocolMode.d.ts +11 -0
  121. package/lib/types/authority/ProtocolMode.d.ts.map +1 -1
  122. package/lib/types/client/AuthorizationCodeClient.d.ts +0 -31
  123. package/lib/types/client/AuthorizationCodeClient.d.ts.map +1 -1
  124. package/lib/types/client/BaseClient.d.ts.map +1 -1
  125. package/lib/types/client/RefreshTokenClient.d.ts.map +1 -1
  126. package/lib/types/constants/AADServerParamKeys.d.ts +3 -0
  127. package/lib/types/constants/AADServerParamKeys.d.ts.map +1 -1
  128. package/lib/types/exports-common.d.ts +4 -3
  129. package/lib/types/exports-common.d.ts.map +1 -1
  130. package/lib/types/packageMetadata.d.ts +1 -1
  131. package/lib/types/protocol/Authorize.d.ts +37 -0
  132. package/lib/types/protocol/Authorize.d.ts.map +1 -0
  133. package/lib/types/request/CommonAuthorizationUrlRequest.d.ts +3 -2
  134. package/lib/types/request/CommonAuthorizationUrlRequest.d.ts.map +1 -1
  135. package/lib/types/request/RequestParameterBuilder.d.ts +211 -219
  136. package/lib/types/request/RequestParameterBuilder.d.ts.map +1 -1
  137. package/lib/types/response/AuthorizeResponse.d.ts +76 -0
  138. package/lib/types/response/AuthorizeResponse.d.ts.map +1 -0
  139. package/lib/types/response/ResponseHandler.d.ts +0 -8
  140. package/lib/types/response/ResponseHandler.d.ts.map +1 -1
  141. package/lib/types/telemetry/performance/PerformanceEvent.d.ts +6 -2
  142. package/lib/types/telemetry/performance/PerformanceEvent.d.ts.map +1 -1
  143. package/lib/types/utils/Constants.d.ts +11 -5
  144. package/lib/types/utils/Constants.d.ts.map +1 -1
  145. package/lib/types/utils/UrlUtils.d.ts +6 -2
  146. package/lib/types/utils/UrlUtils.d.ts.map +1 -1
  147. package/package.json +1 -1
  148. package/src/authority/Authority.ts +2 -2
  149. package/src/authority/ProtocolMode.ts +11 -0
  150. package/src/cache/entities/AccountEntity.ts +3 -3
  151. package/src/client/AuthorizationCodeClient.ts +84 -395
  152. package/src/client/BaseClient.ts +20 -12
  153. package/src/client/RefreshTokenClient.ts +60 -30
  154. package/src/constants/AADServerParamKeys.ts +3 -0
  155. package/src/exports-common.ts +5 -2
  156. package/src/packageMetadata.ts +1 -1
  157. package/src/protocol/Authorize.ts +409 -0
  158. package/src/request/CommonAuthorizationUrlRequest.ts +3 -2
  159. package/src/request/RequestParameterBuilder.ts +516 -545
  160. package/src/response/AuthorizeResponse.ts +80 -0
  161. package/src/response/ResponseHandler.ts +0 -98
  162. package/src/telemetry/performance/PerformanceEvent.ts +14 -11
  163. package/src/utils/Constants.ts +14 -6
  164. package/src/utils/UrlUtils.ts +19 -4
  165. package/dist/response/ServerAuthorizationCodeResponse.d.ts +0 -27
  166. package/dist/response/ServerAuthorizationCodeResponse.d.ts.map +0 -1
  167. package/lib/index-node--LMD5Re1.js.map +0 -1
  168. package/lib/types/response/ServerAuthorizationCodeResponse.d.ts +0 -27
  169. package/lib/types/response/ServerAuthorizationCodeResponse.d.ts.map +0 -1
  170. 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
- /** @internal */
8
- export declare class RequestParameterBuilder {
9
- private parameters;
10
- private readonly performanceClient?;
11
- private readonly correlationId?;
12
- constructor(correlationId?: string, performanceClient?: IPerformanceClient);
13
- /**
14
- * add response_type = code
15
- */
16
- addResponseTypeCode(): void;
17
- /**
18
- * add response_type = token id_token
19
- */
20
- addResponseTypeForTokenAndIdToken(): void;
21
- /**
22
- * add response_mode. defaults to query.
23
- * @param responseMode
24
- */
25
- addResponseMode(responseMode?: ResponseMode): void;
26
- /**
27
- * Add flag to indicate STS should attempt to use WAM if available
28
- */
29
- addNativeBroker(): void;
30
- /**
31
- * add scopes. set addOidcScopes to false to prevent default scopes in non-user scenarios
32
- * @param scopeSet
33
- * @param addOidcScopes
34
- */
35
- addScopes(scopes: string[], addOidcScopes?: boolean, defaultScopes?: Array<string>): void;
36
- /**
37
- * add clientId
38
- * @param clientId
39
- */
40
- addClientId(clientId: string): void;
41
- /**
42
- * add redirect_uri
43
- * @param redirectUri
44
- */
45
- addRedirectUri(redirectUri: string): void;
46
- /**
47
- * add post logout redirectUri
48
- * @param redirectUri
49
- */
50
- addPostLogoutRedirectUri(redirectUri: string): void;
51
- /**
52
- * add id_token_hint to logout request
53
- * @param idTokenHint
54
- */
55
- addIdTokenHint(idTokenHint: string): void;
56
- /**
57
- * add domain_hint
58
- * @param domainHint
59
- */
60
- addDomainHint(domainHint: string): void;
61
- /**
62
- * add login_hint
63
- * @param loginHint
64
- */
65
- addLoginHint(loginHint: string): void;
66
- /**
67
- * Adds the CCS (Cache Credential Service) query parameter for login_hint
68
- * @param loginHint
69
- */
70
- addCcsUpn(loginHint: string): void;
71
- /**
72
- * Adds the CCS (Cache Credential Service) query parameter for account object
73
- * @param loginHint
74
- */
75
- addCcsOid(clientInfo: ClientInfo): void;
76
- /**
77
- * add sid
78
- * @param sid
79
- */
80
- addSid(sid: string): void;
81
- /**
82
- * add claims
83
- * @param claims
84
- */
85
- addClaims(claims?: string, clientCapabilities?: Array<string>): void;
86
- /**
87
- * add correlationId
88
- * @param correlationId
89
- */
90
- addCorrelationId(correlationId: string): void;
91
- /**
92
- * add library info query params
93
- * @param libraryInfo
94
- */
95
- addLibraryInfo(libraryInfo: LibraryInfo): void;
96
- /**
97
- * Add client telemetry parameters
98
- * @param appTelemetry
99
- */
100
- addApplicationTelemetry(appTelemetry: ApplicationTelemetry): void;
101
- /**
102
- * add prompt
103
- * @param prompt
104
- */
105
- addPrompt(prompt: string): void;
106
- /**
107
- * add state
108
- * @param state
109
- */
110
- addState(state: string): void;
111
- /**
112
- * add nonce
113
- * @param nonce
114
- */
115
- addNonce(nonce: string): void;
116
- /**
117
- * add code_challenge and code_challenge_method
118
- * - throw if either of them are not passed
119
- * @param codeChallenge
120
- * @param codeChallengeMethod
121
- */
122
- addCodeChallengeParams(codeChallenge: string, codeChallengeMethod: string): void;
123
- /**
124
- * add the `authorization_code` passed by the user to exchange for a token
125
- * @param code
126
- */
127
- addAuthorizationCode(code: string): void;
128
- /**
129
- * add the `authorization_code` passed by the user to exchange for a token
130
- * @param code
131
- */
132
- addDeviceCode(code: string): void;
133
- /**
134
- * add the `refreshToken` passed by the user
135
- * @param refreshToken
136
- */
137
- addRefreshToken(refreshToken: string): void;
138
- /**
139
- * add the `code_verifier` passed by the user to exchange for a token
140
- * @param codeVerifier
141
- */
142
- addCodeVerifier(codeVerifier: string): void;
143
- /**
144
- * add client_secret
145
- * @param clientSecret
146
- */
147
- addClientSecret(clientSecret: string): void;
148
- /**
149
- * add clientAssertion for confidential client flows
150
- * @param clientAssertion
151
- */
152
- addClientAssertion(clientAssertion: string): void;
153
- /**
154
- * add clientAssertionType for confidential client flows
155
- * @param clientAssertionType
156
- */
157
- addClientAssertionType(clientAssertionType: string): void;
158
- /**
159
- * add OBO assertion for confidential client flows
160
- * @param clientAssertion
161
- */
162
- addOboAssertion(oboAssertion: string): void;
163
- /**
164
- * add grant type
165
- * @param grantType
166
- */
167
- addRequestTokenUse(tokenUse: string): void;
168
- /**
169
- * add grant type
170
- * @param grantType
171
- */
172
- addGrantType(grantType: string): void;
173
- /**
174
- * add client info
175
- *
176
- */
177
- addClientInfo(): void;
178
- /**
179
- * add extraQueryParams
180
- * @param eQParams
181
- */
182
- addExtraQueryParameters(eQParams: StringDict): void;
183
- addClientCapabilitiesToClaims(claims?: string, clientCapabilities?: Array<string>): string;
184
- /**
185
- * adds `username` for Password Grant flow
186
- * @param username
187
- */
188
- addUsername(username: string): void;
189
- /**
190
- * adds `password` for Password Grant flow
191
- * @param password
192
- */
193
- addPassword(password: string): void;
194
- /**
195
- * add pop_jwk to query params
196
- * @param cnfString
197
- */
198
- addPopToken(cnfString: string): void;
199
- /**
200
- * add SSH JWK and key ID to query params
201
- */
202
- addSshJwk(sshJwkString: string): void;
203
- /**
204
- * add server telemetry fields
205
- * @param serverTelemetryManager
206
- */
207
- addServerTelemetry(serverTelemetryManager: ServerTelemetryManager): void;
208
- /**
209
- * Adds parameter that indicates to the server that throttling is supported
210
- */
211
- addThrottling(): void;
212
- /**
213
- * Adds logout_hint parameter for "silent" logout which prevent server account picker
214
- */
215
- addLogoutHint(logoutHint: string): void;
216
- addBrokerParameters(params: {
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,EAEH,YAAY,EAQf,MAAM,uBAAuB,CAAC;AAO/B,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAEnD,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;AAyBpF,gBAAgB;AAChB,qBAAa,uBAAuB;IAChC,OAAO,CAAC,UAAU,CAAsB;IACxC,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAAC,CAAqB;IACxD,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAS;gBAGpC,aAAa,CAAC,EAAE,MAAM,EACtB,iBAAiB,CAAC,EAAE,kBAAkB;IAO1C;;OAEG;IACH,mBAAmB,IAAI,IAAI;IAO3B;;OAEG;IACH,iCAAiC,IAAI,IAAI;IASzC;;;OAGG;I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YAAY,EAAE,MAAM,GAAG,IAAI;IAarC;;;OAGG;IACH,kBAAkB,CAAC,sBAAsB,EAAE,sBAAsB,GAAG,IAAI;IAWxE;;OAEG;IACH,aAAa,IAAI,IAAI;IAOrB;;OAEG;IACH,aAAa,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI;IAOvC,mBAAmB,CAAC,MAAM,EAAE;QACxB,cAAc,EAAE,MAAM,CAAC;QACvB,iBAAiB,EAAE,MAAM,CAAC;KAC7B,GAAG,IAAI;IAUR;;OAEG;IACH,iBAAiB,IAAI,MAAM;CAe9B"}
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;;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GAGG;AACH,wBAAgB,kBAAkB,CAC9B,UAAU,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,EAC/B,sBAAsB,EAAE,sBAAsB,GAC/C,IAAI,CASN;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,UAAU,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI,CAKnE;AAED;;GAEG;AACH,wBAAgB,aAAa,CACzB,UAAU,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,EAC/B,UAAU,EAAE,MAAM,GACnB,IAAI,CAEN;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,+BAA+B,EAAE,MAAM,sCAAsC,CAAC;AACvF,OAAO,EAAE,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C9B,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>;