Skip to content

Commit 69b5475

Browse files
authored
update to sharepoint resource for Token , Fixes AB#3654871 (#2528)
[AB#3654871](https://identitydivision.visualstudio.com/fac9d424-53d2-45c0-91b5-ef6ba7a6bf26/_workitems/edit/3654871) Due to an ongoing CA change [Enforcement for baseline scopes in Conditional Access - Microsoft Entra ID | Microsoft Learn](https://learn.microsoft.com/en-us/entra/identity/conditional-access/concept-enforcement-resource-exclusions) User.read is no longer triggered by TB-CA. (This was intermittent since the CA-side change was being rolled out.) Switched to Sharepoint since that's the direct TB-CA scope. (Also made a change on the portal to make the test app supports sharepoint scopes) Run: https://identitydivision.visualstudio.com/Engineering/_build/results?buildId=1649620&view=results https://console.firebase.google.com/u/1/project/msal-automation-app-764c7/testlab/histories/bh.8ea0f850e176ede8/matrices/5652255611600854094/details?stepId=bs.5728d347d675a2e4&testCaseId=1&tabId=video
1 parent 2f7851a commit 69b5475

4 files changed

Lines changed: 7 additions & 7 deletions

File tree

common

Submodule common updated 16 files

msalautomationapp/src/androidTest/java/com/microsoft/identity/client/msal/automationapp/testpass/broker/strongkey/TestCase3321136.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ class TestCase3321136 : AbstractMsalBrokerTest() {
6464
val authTestParams: MsalAuthTestParams = MsalAuthTestParams.builder()
6565
.activity(mActivity)
6666
.loginHint(username)
67-
.scopes(listOf(*mScopes))
67+
.resource("00000003-0000-0ff1-ce00-000000000000") // Office 365 SharePoint Online
6868
.promptParameter(Prompt.SELECT_ACCOUNT)
6969
.msalConfigResourceId(configFileResourceId)
7070
.build()
@@ -100,7 +100,7 @@ class TestCase3321136 : AbstractMsalBrokerTest() {
100100
}
101101

102102
override fun getScopes(): Array<String> {
103-
return arrayOf("user.read")
103+
return arrayOf()
104104
}
105105

106106
override fun getAuthority(): String {

msalautomationapp/src/androidTest/java/com/microsoft/identity/client/msal/automationapp/testpass/broker/strongkey/TestCase3321139.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ class TestCase3321139 : AbstractMsalBrokerTest() {
5454
val authTestParams: MsalAuthTestParams = MsalAuthTestParams.builder()
5555
.activity(mActivity)
5656
.loginHint(username)
57-
.scopes(listOf(*mScopes))
57+
.resource("00000003-0000-0ff1-ce00-000000000000") // Office 365 SharePoint Online
5858
.promptParameter(Prompt.SELECT_ACCOUNT)
5959
.msalConfigResourceId(configFileResourceId)
6060
.build()
@@ -91,7 +91,7 @@ class TestCase3321139 : AbstractMsalBrokerTest() {
9191
}
9292

9393
override fun getScopes(): Array<String> {
94-
return arrayOf("user.read")
94+
return arrayOf()
9595
}
9696

9797
override fun getAuthority(): String {

msalautomationapp/src/androidTest/java/com/microsoft/identity/client/msal/automationapp/testpass/broker/strongkey/TestCase3522687.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ class TestCase3522687 : AbstractMsalBrokerTest() {
5959
val authTestParams: MsalAuthTestParams = MsalAuthTestParams.builder()
6060
.activity(mActivity)
6161
.loginHint(username)
62-
.scopes(listOf(*mScopes))
62+
.resource("00000003-0000-0ff1-ce00-000000000000") // Office 365 SharePoint Online
6363
.promptParameter(Prompt.SELECT_ACCOUNT)
6464
.msalConfigResourceId(configFileResourceId)
6565
.build()
@@ -81,7 +81,7 @@ class TestCase3522687 : AbstractMsalBrokerTest() {
8181
}
8282

8383
override fun getScopes(): Array<String> {
84-
return arrayOf("user.read")
84+
return arrayOf()
8585
}
8686

8787
override fun getAuthority(): String {

0 commit comments

Comments
 (0)