Skip to content
Open
Show file tree
Hide file tree
Changes from 40 commits
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
21c3ed2
start
melissaahn Oct 17, 2025
1276de7
cleaning up
melissaahn Oct 17, 2025
cf872e1
changelog
melissaahn Oct 17, 2025
1378c50
suggestion
melissaahn Oct 17, 2025
8f04dd0
exposing api
melissaahn Oct 21, 2025
addd84a
reentrant readwrite lock
melissaahn Oct 22, 2025
3672ba1
removing cache
melissaahn Oct 22, 2025
075440c
changed structure
melissaahn Oct 22, 2025
f813536
unused imports
melissaahn Oct 22, 2025
6e5b3c3
renames
melissaahn Oct 22, 2025
456e0d5
Merge branch 'melissaahn/WebAppsAccountIdRegistry' into melissaahn/Ex…
melissaahn Oct 22, 2025
c7cb41d
Merge remote-tracking branch 'origin/dev' into melissaahn/ExposeWebApis
melissaahn Oct 23, 2025
935091d
min version
melissaahn Oct 23, 2025
3eae88b
addressing comments
melissaahn Oct 25, 2025
b53404d
changelog
melissaahn Oct 25, 2025
6fbaa31
changelog
melissaahn Oct 28, 2025
34d9d6f
Merge remote-tracking branch 'origin/dev' into melissaahn/ExposeWebApis
melissaahn Oct 28, 2025
7b2876d
dev
melissaahn Oct 28, 2025
84ea614
dev
melissaahn Oct 28, 2025
17b851a
Merge branch 'dev' into melissaahn/ExposeWebApis
melissaahn Oct 28, 2025
262e689
Merge remote-tracking branch 'origin/dev' into melissaahn/ExposeWebApis
melissaahn Oct 28, 2025
a763095
saving progress
melissaahn Oct 28, 2025
19e573f
saving progress
melissaahn Oct 31, 2025
8a1d9ff
saving progress again
melissaahn Nov 3, 2025
27f6cf2
clean up
melissaahn Nov 3, 2025
827d081
Merge remote-tracking branch 'origin/dev' into melissaahn/GetTokenHel…
melissaahn Nov 3, 2025
7f0003d
removed
melissaahn Nov 3, 2025
94338cd
more
melissaahn Nov 4, 2025
5ac74ca
changelog
melissaahn Nov 4, 2025
bfc8ed3
comments
melissaahn Nov 4, 2025
699c860
comments
melissaahn Nov 4, 2025
14ae0ea
more constants
melissaahn Nov 4, 2025
3669d6d
updated error handling
melissaahn Nov 5, 2025
0eebf03
failures
melissaahn Nov 5, 2025
65ad998
cleaned up some moree
melissaahn Nov 5, 2025
4f6a4e6
some unit tests
melissaahn Nov 5, 2025
5309bb5
refactoring
melissaahn Nov 6, 2025
d8f7af8
Merge remote-tracking branch 'origin/dev' into melissaahn/GetTokenHel…
melissaahn Nov 6, 2025
938d27e
spotbug
melissaahn Nov 6, 2025
a53b257
edits
melissaahn Nov 6, 2025
7f362b5
moving files around
melissaahn Nov 7, 2025
a98544a
dev
melissaahn Nov 7, 2025
391eab5
big refactor
melissaahn Nov 11, 2025
3c3b36d
Merge remote-tracking branch 'origin/dev' into melissaahn/GetTokenHel…
melissaahn Nov 11, 2025
191ad5b
edits
melissaahn Nov 12, 2025
629b232
testing
melissaahn Nov 15, 2025
1a6dfba
edits
melissaahn Nov 18, 2025
dc07634
comments
melissaahn Nov 18, 2025
5c2484b
dev
melissaahn Nov 18, 2025
42061ce
comments
melissaahn Nov 18, 2025
a212d9f
updated test
melissaahn Nov 18, 2025
1f42ada
catch
melissaahn Nov 19, 2025
e3c2f5a
two more tests
melissaahn Nov 19, 2025
3c88be3
Merge remote-tracking branch 'origin/dev' into melissaahn/GetTokenHel…
melissaahn Dec 3, 2025
f8fbdf8
addressing some comments
melissaahn Dec 3, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ vNext
- [MINOR] WebApps AccountId Registry (#2787)
- [MINOR] Expose WebApps APIs (#2793)
- [MINOR] Add domainHint support to authorization request (#2792)
- [MINOR] Add support for WebApps getToken API (#2803)

Version 23.0.2
----------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1396,6 +1396,34 @@ public static String computeMaxHostBrokerProtocol() {
*/
public static final String BROKER_WEB_APPS_RESPONSE = "response";

/**
* String for broker webapps additional required params.
*/
public static final String BROKER_WEB_APPS_ADDITIONAL_REQUIRED_PARAMS = "additional_required_params";

/**
* String for broker webapps extra args.
*/
public static final String BROKER_WEB_APPS_EXTRA_ARGS = "extra_args";

/**
* String for broker webapps interactive request;
* when this field is present, the executeRequest operation will launch an interactive request.
*/
public static final String BROKER_WEB_APPS_INTERACTIVE_REQUEST = "interactive_request";

/**
* String for broker webapps successful result after an interactive request;
* when this field is present, the getToken suboperation will repackage the result and return it to the caller.
*/
public static final String BROKER_WEB_APPS_INTERACTIVE_SUCCESS_RESULT = "interactive_success_result";

/**
* String for broker webapps error result either after an interactive request or due to some early validation;
* when this field is present, the execute operation will repackage the result and return it to the caller.
*/
public static final String BROKER_WEB_APPS_VALIDATION_OR_INTERACTIVE_ERROR_RESULT = "validation_or_interactive_error_result";

/**
* String for generate shr result.
*/
Expand Down Expand Up @@ -2141,5 +2169,28 @@ public static final class SdkPlatformFields {
@Deprecated
public static final String VERSION = com.microsoft.identity.common.java.AuthenticationConstants.SdkPlatformFields.VERSION;
}

public static final class PoPConstants {
/**
* Indicates caller requests a PoP token instead of bearer.
*/
public static final String SIGN_POP_TOKEN = "signPopToken";

/**
* Resource request components used to build the PoP SHR.
*/
public static final String RESOURCE_REQUEST_URI = "resourceRequestUri";
public static final String RESOURCE_REQUEST_METHOD = "resourceRequestMethod";

/**
* Optional PoP supplemental values.
*/
public static final String SHR_NONCE = "shrNonce";
public static final String SHR_CLAIMS = "shrClaims";
/**
* Key identifier for the PoP key used to sign the token.
*/
public static final String KEY_ID = "keyId";
}
}

Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ private static final class SerializedNames {
final static String SIGN_IN_WITH_GOOGLE_CREDENTIAL = "sign_in_with_google_credential";

final static String TENANT_ID = "tenant_id";
final static String REQUEST_TYPE = "request_type";
}

/**
Expand Down Expand Up @@ -281,4 +282,8 @@ private static final class SerializedNames {
@Nullable
@SerializedName(SerializedNames.TENANT_ID)
private String mTenantId;

@Nullable
@SerializedName(SerializedNames.REQUEST_TYPE)
private String mRequestType;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
// Copyright (c) Microsoft Corporation.
// All rights reserved.
//
// This code is licensed under the MIT License.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files(the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions :
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
package com.microsoft.identity.common.internal.broker.ipc

import com.google.gson.annotations.SerializedName
import com.microsoft.identity.common.java.request.SdkType

/**
* Additional required parameters for WebApps operations.
*/
data class WebAppsAdditionalRequiredParameters(
// A parameter from Edge which indicates whether the calling application can show UI.
@SerializedName(FIELD_CAN_SHOW_UI)
val canShowUi: Boolean = false,

@SerializedName(FIELD_CALLING_PACKAGE_NAME)
val callingPackageName: String,

@SerializedName(FIELD_CALLING_APPLICATION_NAME)
val callingApplicationName: String,

@SerializedName(FIELD_CALLING_APPLICATION_VERSION)
val callingApplicationVersion: String,

@SerializedName(FIELD_SDK_TYPE)
val sdkType: SdkType,

@SerializedName(FIELD_SDK_VERSION)
val sdkVersion: String
) {
companion object {
const val FIELD_CAN_SHOW_UI = "canShowUi"
const val FIELD_CALLING_PACKAGE_NAME = "callingPackageName"
const val FIELD_CALLING_APPLICATION_NAME = "callingApplicationName"
const val FIELD_CALLING_APPLICATION_VERSION = "callingApplicationVersion"
const val FIELD_SDK_TYPE = "sdkType"
const val FIELD_SDK_VERSION = "sdkVersion"
}
}
Loading
Loading