Commit 760b740
Handling https scheme for device enrollment link, Fixes AB#3344894 (#2732)
Issue : In my testing, I noticed that OneAuth team started sending a
config for a confidential client and that there is a corner case for
device enrollment url's scheme on eSTS side. Our contract with eSTS has
been to send "browser://" scheme for device enrollment url redirect and
we enable webcp flow once we notice the url is of browser scheme and has
device enrollment parameters.
But eSTS's corner case is that when the calling app is a web app, they
pass https:// scheme instead. My logic to handle webcp flow is not
triggered in this case and breaks the user's sign in.
Although this is a corner case scenario, we may start seeing issues if
consumers of OneAuth or MSAL register themselves as webapp/confidential
clients unknowingly.
Link to ests code where they replace browser scheme with https in
specific cases :
https://msazure.visualstudio.com/One/_git/ESTS-Main?path=/src/Product/Microsoft.AzureAD.ESTS/Sts/ConditionalAccess/DevicePolicyError.cs&version=GBmaster&_a=contents&line=497&lineStyle=plain&lineEnd=503&lineStartColumn=1&lineEndColumn=10
My fix : Is a small change to start supporting webcp flow with https://
scheme as well.
Fixes
[AB#3344894](https://identitydivision.visualstudio.com/fac9d424-53d2-45c0-91b5-ef6ba7a6bf26/_workitems/edit/3344894)
---------
Co-authored-by: Copilot <[email protected]>1 parent 53fb015 commit 760b740
File tree
3 files changed
+47
-17
lines changed- common/src
- main/java/com/microsoft/identity/common
- adal/internal
- internal/ui/webview
- test/java/com/microsoft/identity/common/internal/ui/webview
3 files changed
+47
-17
lines changedLines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1282 | 1282 | | |
1283 | 1283 | | |
1284 | 1284 | | |
| 1285 | + | |
| 1286 | + | |
| 1287 | + | |
| 1288 | + | |
| 1289 | + | |
1285 | 1290 | | |
1286 | 1291 | | |
1287 | 1292 | | |
| |||
Lines changed: 35 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
343 | 343 | | |
344 | 344 | | |
345 | 345 | | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
346 | 349 | | |
347 | 350 | | |
348 | 351 | | |
| |||
575 | 578 | | |
576 | 579 | | |
577 | 580 | | |
578 | | - | |
579 | | - | |
580 | | - | |
581 | | - | |
582 | | - | |
583 | | - | |
584 | | - | |
585 | | - | |
586 | | - | |
587 | | - | |
588 | | - | |
589 | | - | |
590 | | - | |
591 | | - | |
592 | | - | |
593 | | - | |
| 581 | + | |
594 | 582 | | |
595 | 583 | | |
596 | 584 | | |
597 | 585 | | |
598 | 586 | | |
599 | 587 | | |
600 | 588 | | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
601 | 614 | | |
602 | 615 | | |
603 | 616 | | |
604 | 617 | | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
605 | 622 | | |
606 | 623 | | |
607 | 624 | | |
| |||
647 | 664 | | |
648 | 665 | | |
649 | 666 | | |
| 667 | + | |
650 | 668 | | |
651 | 669 | | |
652 | 670 | | |
| |||
662 | 680 | | |
663 | 681 | | |
664 | 682 | | |
665 | | - | |
| 683 | + | |
666 | 684 | | |
667 | 685 | | |
668 | 686 | | |
| |||
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
| 98 | + | |
| 99 | + | |
98 | 100 | | |
99 | 101 | | |
100 | 102 | | |
| |||
170 | 172 | | |
171 | 173 | | |
172 | 174 | | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
173 | 180 | | |
174 | 181 | | |
175 | 182 | | |
| |||
0 commit comments