Skip to content

Commit 3f63dbc

Browse files
committed
dev
2 parents 23c5fb6 + 4458ad5 commit 3f63dbc

File tree

48 files changed

+1819
-129
lines changed

Some content is hidden

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

48 files changed

+1819
-129
lines changed
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
##
2+
# Workflow: release-fix auto PR
3+
# Purpose: When a `release-fix/*` branch is created, automatically
4+
# open a pull request targeting the corresponding `release/<version>` branch.
5+
# Maintainer: Android Team - Release Engineering
6+
# Docs: See repository CONTRIBUTING.md for release process guidance
7+
##
8+
name: Auto PR to merge release-fix branches into release
9+
10+
permissions:
11+
contents: read
12+
pull-requests: write
13+
14+
on:
15+
create:
16+
17+
jobs:
18+
create-pr:
19+
if: >
20+
github.event.ref_type == 'branch' &&
21+
startsWith(github.event.ref, 'release-fix/') &&
22+
vars.ENABLE_RELEASE_AUTOMATION == 'true'
23+
runs-on: ubuntu-latest
24+
25+
steps:
26+
- name: Checkout repository
27+
uses: actions/checkout@v4
28+
29+
- name: Compute target release version
30+
id: compute_version
31+
run: |
32+
BRANCH_NAME="${{ github.event.ref }}"
33+
if [[ "$BRANCH_NAME" =~ ^release-fix/(.+)$ ]]; then
34+
VERSION="${BASH_REMATCH[1]}"
35+
echo "version=$VERSION" >> $GITHUB_OUTPUT
36+
echo "Computed version: $VERSION"
37+
else
38+
echo "Failed to compute version from branch: $BRANCH_NAME"
39+
exit 1
40+
fi
41+
42+
- name: Create Pull Request
43+
env:
44+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
45+
run: |
46+
gh pr create \
47+
--base "release/${{ steps.compute_version.outputs.version }}" \
48+
--head "${{ github.event.ref }}" \
49+
--title "Auto PR: ${{ github.event.ref }} → release/${{ steps.compute_version.outputs.version }}" \
50+
--body "This is an automated pull request created to integrate release changes into release/${{ steps.compute_version.outputs.version }}. Triggered when the branch ${{ github.event.ref }} was published."
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
##
2+
# Workflow: release-integration auto PR
3+
# Purpose: When a `release-integration/*` branch is created, automatically
4+
# open a pull request targeting `dev` to integrate release changes.
5+
##
6+
name: Auto PR to dev for release-integration branches
7+
8+
permissions:
9+
contents: read
10+
pull-requests: write
11+
12+
on:
13+
create:
14+
15+
concurrency:
16+
group: auto-pr-release-integration-${{ github.event.ref }}
17+
cancel-in-progress: false
18+
19+
jobs:
20+
create-pr:
21+
if: >
22+
github.event.ref_type == 'branch' &&
23+
startsWith(github.event.ref, 'release-integration/') &&
24+
vars.ENABLE_RELEASE_AUTOMATION == 'true'
25+
runs-on: ubuntu-latest
26+
27+
steps:
28+
- name: Checkout repository
29+
uses: actions/checkout@v4
30+
- name: Create Pull Request
31+
env:
32+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
33+
run: |
34+
gh pr create \
35+
--base dev \
36+
--head "${{ github.event.ref }}" \
37+
--title "Auto PR: ${{ github.event.ref }} → dev" \
38+
--body "This is an automated pull request created to integrate release changes into **dev**. Triggered when the branch **${{ github.event.ref }}** was published."

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] Fix for SDL violation in device pop scenarios, Fixes AB#3284510 (#2744)
1010
- [MINOR] Adds Authentication Constants to be used for broker latency timestamp in response (#2831)
1111
- [MINOR] ExtraTokenBodyParameters (#2825)
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
@@ -85,6 +85,8 @@ private static final class SerializedNames {
8585
final static String SIGN_IN_WITH_GOOGLE_CREDENTIAL = "sign_in_with_google_credential";
8686

8787
final static String TENANT_ID = "tenant_id";
88+
final static String REQUEST_TYPE = "request_type";
89+
final static String WEB_APPS_STATE = "web_apps_state";
8890
}
8991

9092
/**
@@ -289,4 +291,15 @@ private static final class SerializedNames {
289291
@Nullable
290292
@SerializedName(SerializedNames.TENANT_ID)
291293
private String mTenantId;
294+
295+
@Nullable
296+
@SerializedName(SerializedNames.REQUEST_TYPE)
297+
private String mRequestType;
298+
299+
/**
300+
* State for web apps requests. Make sure not to log this.
301+
*/
302+
@Nullable
303+
@SerializedName(SerializedNames.WEB_APPS_STATE)
304+
private String mWebAppsState;
292305
}

0 commit comments

Comments
 (0)