Commit 76f578a
authored
Add domainHint support to acquireTokenParameters, Fixes AB#3385486 (#2392)
[AB#3385486](https://identitydivision.visualstudio.com/Engineering/_workitems/edit/3385486)
This PR adds the domainHint parameters into acquireTokenParameters and
has a dependency on
AzureAD/microsoft-authentication-library-common-for-android#2792
DomainHint is added the SDK to streamline developer experience for
Social IdP/Custom OIDC scenarios with MSAL SDK. Today developer can use
extraQueryParameters as a alternative which required developer to type
in "domain_hint".1 parent e8ee2d0 commit 76f578a
File tree
3 files changed
+32
-2
lines changed- msal/src/main/java/com/microsoft/identity/client
- internal
3 files changed
+32
-2
lines changed- LabApiUtilities/build.gradle+15
- changelog.txt+12-2
- common/build.gradle+16-2
- common/src/main/java/com/microsoft/identity/common/adal/internal/AuthenticationConstants.java+15-1
- common/src/main/java/com/microsoft/identity/common/internal/broker/ipc/BrokerOperationBundle.java+1
- common/src/main/java/com/microsoft/identity/common/internal/cache/WebAppsAccountIdRegistry.kt+187
- common/src/main/java/com/microsoft/identity/common/internal/controllers/BrokerMsalController.java+63
- common/src/main/java/com/microsoft/identity/common/internal/providers/oauth2/AuthorizationActivityFactory.kt+4
- common/src/main/java/com/microsoft/identity/common/internal/providers/oauth2/AuthorizationActivityParameters.kt+3-1
- common/src/main/java/com/microsoft/identity/common/internal/providers/oauth2/WebViewAuthorizationFragment.java+7-1
- common/src/main/java/com/microsoft/identity/common/internal/request/MsalBrokerRequestAdapter.java+18
- common/src/main/java/com/microsoft/identity/common/internal/result/AdalBrokerResultAdapter.java+7
- common/src/main/java/com/microsoft/identity/common/internal/result/IBrokerResultAdapter.java+4
- common/src/main/java/com/microsoft/identity/common/internal/result/MsalBrokerResultAdapter.java+8
- common/src/main/java/com/microsoft/identity/common/internal/ui/webview/AzureActiveDirectoryWebViewClient.java+10-4
- common/src/test/java/com/microsoft/identity/common/internal/cache/WebAppsAccountIdRegistryTest.kt+145
- common/src/test/java/com/microsoft/identity/common/internal/ui/webview/AzureActiveDirectoryWebViewClientTest.java+56-8
- common4j/build.gradle+21
- common4j/src/main/com/microsoft/identity/common/java/cache/AbstractAccountCredentialCache.java+31-55
- common4j/src/main/com/microsoft/identity/common/java/cache/MsalOAuth2TokenCache.java+41-15
- common4j/src/main/com/microsoft/identity/common/java/commands/AcquirePrtSsoTokenBatchResult.java+74
- common4j/src/main/com/microsoft/identity/common/java/commands/AcquirePrtSsoTokenResult.java+6
- common4j/src/main/com/microsoft/identity/common/java/commands/SilentTokenCommand.java+6
- common4j/src/main/com/microsoft/identity/common/java/commands/parameters/TokenCommandParameters.java+2
- common4j/src/main/com/microsoft/identity/common/java/controllers/BaseController.java+1
- common4j/src/main/com/microsoft/identity/common/java/controllers/CommandDispatcher.java+9
- common4j/src/main/com/microsoft/identity/common/java/opentelemetry/BenchmarkSpan.kt+183
- common4j/src/main/com/microsoft/identity/common/java/opentelemetry/DefaultBenchmarkSpanPrinter.kt+423
- common4j/src/main/com/microsoft/identity/common/java/opentelemetry/DefaultOTelSpanFactory.kt+96
- common4j/src/main/com/microsoft/identity/common/java/opentelemetry/IBenchmarkSpanPrinter.kt+36
- common4j/src/main/com/microsoft/identity/common/java/opentelemetry/IOTelSpanFactory.kt+56
- common4j/src/main/com/microsoft/identity/common/java/opentelemetry/OTelBenchmarkSpanFactory.kt+119
- common4j/src/main/com/microsoft/identity/common/java/opentelemetry/OTelUtility.java-143
- common4j/src/main/com/microsoft/identity/common/java/opentelemetry/OTelUtility.kt+118
- common4j/src/main/com/microsoft/identity/common/java/opentelemetry/SpanName.java+1-1
- common4j/src/main/com/microsoft/identity/common/java/providers/microsoft/MicrosoftAuthorizationRequest.java+15
- common4j/src/test/com/microsoft/identity/common/java/providers/microsoft/MicrosoftAuthorizationRequestTest.java+7
Lines changed: 26 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
44 | 45 | | |
45 | 46 | | |
46 | 47 | | |
| |||
53 | 54 | | |
54 | 55 | | |
55 | 56 | | |
| 57 | + | |
56 | 58 | | |
57 | 59 | | |
58 | 60 | | |
| |||
92 | 94 | | |
93 | 95 | | |
94 | 96 | | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
95 | 115 | | |
96 | 116 | | |
97 | 117 | | |
| |||
152 | 172 | | |
153 | 173 | | |
154 | 174 | | |
155 | | - | |
| 175 | + | |
156 | 176 | | |
157 | 177 | | |
158 | 178 | | |
| |||
174 | 194 | | |
175 | 195 | | |
176 | 196 | | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
177 | 202 | | |
178 | 203 | | |
179 | 204 | | |
| |||
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
192 | 192 | | |
193 | 193 | | |
194 | 194 | | |
| 195 | + | |
195 | 196 | | |
196 | 197 | | |
197 | 198 | | |
| |||
1284 | 1285 | | |
1285 | 1286 | | |
1286 | 1287 | | |
| 1288 | + | |
| 1289 | + | |
| 1290 | + | |
| 1291 | + | |
1287 | 1292 | | |
1288 | 1293 | | |
1289 | 1294 | | |
| |||
0 commit comments