@@ -26,6 +26,9 @@ package com.microsoft.identity.common.internal.apps
2626import com.microsoft.identity.common.adal.internal.AuthenticationConstants
2727import com.microsoft.identity.common.adal.internal.AuthenticationConstants.Broker.INTUNE_AOSP_AGENT_DEBUG_SIGNATURE
2828import com.microsoft.identity.common.adal.internal.AuthenticationConstants.Broker.INTUNE_AOSP_AGENT_RELEASE_SIGNATURE
29+ import com.microsoft.identity.common.adal.internal.AuthenticationConstants.Broker.INTUNE_APP_PACKAGE_NAME
30+ import com.microsoft.identity.common.adal.internal.AuthenticationConstants.Broker.INTUNE_APP_SHA512_DEBUG_SIGNATURE
31+ import com.microsoft.identity.common.adal.internal.AuthenticationConstants.Broker.INTUNE_APP_SHA512_RELEASE_SIGNATURE
2932import com.microsoft.identity.common.adal.internal.AuthenticationConstants.Broker.ONE_AUTH_TEST_APP_SIGNATURE
3033import com.microsoft.identity.common.adal.internal.AuthenticationConstants.Broker.SHARED_EDGE_SIGNATURE
3134import com.microsoft.identity.common.internal.broker.BrokerData
@@ -97,6 +100,18 @@ object AppRegistry {
97100 signingCertificateThumbprint = " QfTWFoLyXuOCZ7bMYlMN+la3J3rau5x8p+w2v7vf1gOPiTyIMgdbNDzLaLWhgiC2ioj/hFqk8oZyqdJbFG6G4g=="
98101 )
99102
103+ val INTUNE_CE_PROD = App (
104+ nickName = " Intune Company Portal (prod)" ,
105+ packageName = INTUNE_APP_PACKAGE_NAME ,
106+ signingCertificateThumbprint = INTUNE_APP_SHA512_RELEASE_SIGNATURE
107+ )
108+
109+ val INTUNE_CE_DEBUG = App (
110+ nickName = " Intune Company Portal (debug)" ,
111+ packageName = INTUNE_APP_PACKAGE_NAME ,
112+ signingCertificateThumbprint = INTUNE_APP_SHA512_DEBUG_SIGNATURE
113+ )
114+
100115 val MSAL_TEST_APP = App (
101116 nickName = " MSAL Test App" ,
102117 packageName = " com.msft.identity.client.sample.local" ,
@@ -128,14 +143,14 @@ object AppRegistry {
128143 val DEVICE_REGISTRATION_AUTHORIZED_APPS = buildSet {
129144 add(BrokerData .prodMicrosoftAuthenticator)
130145 add(BrokerData .prodCompanyPortal)
131- add(BrokerData .prodIntuneCE )
146+ add(INTUNE_CE_PROD )
132147 add(INTUNE_AOSP_AGENT_PROD )
133148 if (BrokerData .getShouldTrustDebugBrokers()) {
134149 add(INTUNE_AOSP_AGENT_DEBUG )
135150 add(BrokerData .debugBrokerHost)
136151 add(BrokerData .debugMicrosoftAuthenticator)
137152 add(BrokerData .debugCompanyPortal)
138- add(BrokerData .debugIntuneCE )
153+ add(INTUNE_CE_DEBUG )
139154 }
140155 }
141156
@@ -153,4 +168,20 @@ object AppRegistry {
153168 add(MSAL_TEST_APP )
154169 }
155170 }
171+
172+ /* *
173+ * Apps authorized to trigger force broker discovery.
174+ * Debug apps (mock brokers, broker host) are included when debug broker trust is enabled.
175+ */
176+ @JvmField
177+ val FORCE_BROKER_DISCOVERY_ALLOW_LIST = buildSet {
178+ add(INTUNE_CE_PROD )
179+ if (BrokerData .getShouldTrustDebugBrokers()) {
180+ add(INTUNE_CE_DEBUG )
181+ add(BrokerData .debugMockLtw)
182+ add(BrokerData .debugMockCp)
183+ add(BrokerData .debugMockAuthApp)
184+ add(BrokerData .debugBrokerHost)
185+ }
186+ }
156187}
0 commit comments