Skip to content

Commit ea9dfa2

Browse files
authored
Merge branch 'dev' into pedroro/passkey-reg-endpoints
2 parents c44b5f8 + 4458ad5 commit ea9dfa2

File tree

43 files changed

+1706
-127
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+1706
-127
lines changed

azure-pipelines/pull-request-validation/common4j.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ jobs:
2525
clean: true
2626
submodules: recursive
2727
persistCredentials: True
28+
- bash: |
29+
echo "##vso[task.setvariable variable=ENV_VSTS_MVN_CRED_USERNAME]VSTS"
30+
echo "##vso[task.setvariable variable=ENV_VSTS_MVN_CRED_ACCESSTOKEN]$(System.AccessToken)"
31+
displayName: 'Set VSTS Fields in Environment'
2832
- template: ../templates/steps/automation-cert.yml
2933
- task: Gradle@1
3034
name: Gradle1

azure-pipelines/pull-request-validation/lab-utilities.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ jobs:
2424
clean: true
2525
submodules: recursive
2626
persistCredentials: True
27+
- bash: |
28+
echo "##vso[task.setvariable variable=ENV_VSTS_MVN_CRED_USERNAME]VSTS"
29+
echo "##vso[task.setvariable variable=ENV_VSTS_MVN_CRED_ACCESSTOKEN]$(System.AccessToken)"
30+
displayName: 'Set VSTS Fields in Environment'
2731
- template: ../templates/steps/automation-cert.yml
2832
- task: Gradle@1
2933
name: Gradle1

build.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
project.ext.vstsUsername = System.getenv("ENV_VSTS_MVN_CRED_USERNAME") != null ? System.getenv("ENV_VSTS_MVN_CRED_USERNAME") : project.findProperty("vstsUsername")
33
project.ext.vstsMavenAccessToken = System.getenv("ENV_VSTS_MVN_CRED_ACCESSTOKEN") != null ? System.getenv("ENV_VSTS_MVN_CRED_ACCESSTOKEN") : project.findProperty("vstsMavenAccessToken")
44

5-
65
buildscript {
76
apply from: rootProject.file("gradle/versions.gradle")
87

changelog.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ vNext
99
- [MINOR] Enable Broker Discovery by default in MSAL/Broker API (#2818)
1010
- [MINOR] Fix for SDL violation in device pop scenarios, Fixes AB#3284510 (#2744)
1111
- [MINOR] Adds Authentication Constants to be used for broker latency timestamp in response (#2831)
12+
- [MINOR] Add support for WebApps getToken API (#2803)
1213

1314
Version 23.1.1
1415
-----------

common-java-root/build.gradle

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,18 @@ buildscript {
77

88
repositories {
99
google()
10-
mavenCentral()
10+
// If you don't have access to the package feed uncomment these repositories
11+
// mavenCentral()
12+
maven {
13+
name "vsts-maven-adal-android"
14+
url "https://identitydivision.pkgs.visualstudio.com/_packaging/NewAndroid/maven/v1"
15+
credentials {
16+
credentials {
17+
username System.getenv("ENV_VSTS_MVN_CRED_USERNAME") != null ? System.getenv("ENV_VSTS_MVN_CRED_USERNAME") : project.findProperty("vstsUsername")
18+
password System.getenv("ENV_VSTS_MVN_CRED_ACCESSTOKEN") != null ? System.getenv("ENV_VSTS_MVN_CRED_ACCESSTOKEN") : project.findProperty("vstsMavenAccessToken")
19+
}
20+
}
21+
}
1122
}
1223
dependencies {
1324
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${rootProject.ext.kotlinVersion}"

common-java-root/settings.gradle

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,17 @@ pluginManagement {
22
repositories {
33
// If you don't have access to the package feed uncomment these repositories
44
// mavenCentral()
5+
mavenLocal()
56
google()
67
gradlePluginPortal()
8+
maven {
9+
name "vsts-maven-adal-android"
10+
url "https://identitydivision.pkgs.visualstudio.com/_packaging/NewAndroid/maven/v1"
11+
credentials {
12+
username System.getenv("ENV_VSTS_MVN_CRED_USERNAME") != null ? System.getenv("ENV_VSTS_MVN_CRED_USERNAME") : project.findProperty("vstsUsername")
13+
password System.getenv("ENV_VSTS_MVN_CRED_ACCESSTOKEN") != null ? System.getenv("ENV_VSTS_MVN_CRED_ACCESSTOKEN") : project.findProperty("vstsMavenAccessToken")
14+
}
15+
}
716
}
817
}
918

common/src/main/java/com/microsoft/identity/common/adal/internal/AuthenticationConstants.java

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1379,22 +1379,37 @@ public static String computeMaxHostBrokerProtocol() {
13791379
/**
13801380
* String for broker webapps get contracts result.
13811381
*/
1382-
public static final String BROKER_WEBAPPS_GET_CONTRACTS_RESULT = "contracts";
1382+
public static final String BROKER_WEBAPPS_GET_CONTRACTS_RESULT = "web_apps_contracts";
13831383

13841384
/**
1385-
* String for broker webapps error result.
1385+
* String for broker webapps request.
13861386
*/
1387-
public static final String BROKER_WEB_APPS_ERROR = "error";
1387+
public static final String BROKER_WEB_APPS_EXECUTE_REQUEST = "web_apps_execute_request";
13881388

13891389
/**
1390-
* String for broker webapps request.
1390+
* String for broker webapps additional required params.
13911391
*/
1392-
public static final String BROKER_WEB_APPS_REQUEST = "request";
1392+
public static final String BROKER_WEB_APPS_ADDITIONAL_REQUIRED_PARAMS = "additional_required_params";
13931393

13941394
/**
13951395
* String for broker webapps response.
13961396
*/
1397-
public static final String BROKER_WEB_APPS_RESPONSE = "response";
1397+
public static final String BROKER_WEB_APPS_SUCCESSFUL_RESULT = "web_app_successful_result";
1398+
1399+
/**
1400+
* String for compressed broker webapps response.
1401+
*/
1402+
public static final String BROKER_WEB_APPS_SUCCESSFUL_RESULT_COMPRESSED = "web_app_successful_result_compressed";
1403+
1404+
/**
1405+
* String for broker webapps interactive intent.
1406+
*/
1407+
public static final String BROKER_WEB_APPS_INTERACTIVE_INTENT = "web_apps_interactive_intent";
1408+
1409+
/**
1410+
* String for broker webapps error result.
1411+
*/
1412+
public static final String BROKER_WEB_APPS_ERROR_RESULT = "web_apps_error_result";
13981413

13991414
/**
14001415
* String for generate shr result.
@@ -2142,4 +2157,3 @@ public static final class SdkPlatformFields {
21422157
public static final String VERSION = com.microsoft.identity.common.java.AuthenticationConstants.SdkPlatformFields.VERSION;
21432158
}
21442159
}
2145-

common/src/main/java/com/microsoft/identity/common/internal/broker/BrokerRequest.java

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,8 @@ private static final class SerializedNames {
8484
final static String SIGN_IN_WITH_GOOGLE_CREDENTIAL = "sign_in_with_google_credential";
8585

8686
final static String TENANT_ID = "tenant_id";
87+
final static String REQUEST_TYPE = "request_type";
88+
final static String WEB_APPS_STATE = "web_apps_state";
8789
}
8890

8991
/**
@@ -281,4 +283,15 @@ private static final class SerializedNames {
281283
@Nullable
282284
@SerializedName(SerializedNames.TENANT_ID)
283285
private String mTenantId;
286+
287+
@Nullable
288+
@SerializedName(SerializedNames.REQUEST_TYPE)
289+
private String mRequestType;
290+
291+
/**
292+
* State for web apps requests. Make sure not to log this.
293+
*/
294+
@Nullable
295+
@SerializedName(SerializedNames.WEB_APPS_STATE)
296+
private String mWebAppsState;
284297
}

common/src/main/java/com/microsoft/identity/common/internal/cache/WebAppsAccountIdRegistry.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ class WebAppsAccountIdRegistry private constructor(
5050
* @param supplier The storage supplier.
5151
* @return A new instance of [WebAppsAccountIdRegistry].
5252
*/
53+
@JvmStatic
5354
fun create(supplier: IStorageSupplier): WebAppsAccountIdRegistry {
5455
val store = supplier.getEncryptedFileStore(WEBAPPS_ACCOUNT_ID_REGISTRY_STORAGE_KEY)
5556
return WebAppsAccountIdRegistry(store)

0 commit comments

Comments
 (0)