Skip to content

Commit ddd6b89

Browse files
author
sgonzalezMSFT
committed
Remove telemetry sample. Update MsalServiceExceptionFactory
1 parent f0f154d commit ddd6b89

File tree

3 files changed

+1
-57
lines changed

3 files changed

+1
-57
lines changed

src/main/java/com/microsoft/aad/msal4j/MsalServiceExceptionFactory.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,11 @@ static MsalServiceException fromHttpResponse(HTTPResponse httpResponse){
3030
errorResponse.statusCode(httpResponse.getStatusCode());
3131
errorResponse.statusMessage(httpResponse.getStatusMessage());
3232

33-
34-
boolean bool = errorResponse.error().equalsIgnoreCase(AuthenticationErrorCode.INVALID_GRANT);
35-
3633
if(errorResponse.error() != null &&
3734
errorResponse.error().equalsIgnoreCase(AuthenticationErrorCode.INVALID_GRANT)) {
3835

3936
if(isInteractionRequired(errorResponse.subError)){
40-
throw new MsalInteractionRequiredException(errorResponse, httpResponse.getHeaderMap());
37+
return new MsalInteractionRequiredException(errorResponse, httpResponse.getHeaderMap());
4138
}
4239
}
4340

src/samples/public-client/IntegratedWindowsAuthFlow.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ public static void main(String args[]) throws Exception {
2020
private static IAuthenticationResult getAccessTokenByIntegratedAuth() throws Exception {
2121
PublicClientApplication app = PublicClientApplication.builder(TestData.PUBLIC_CLIENT_ID)
2222
.authority(TestData.AUTHORITY_ORGANIZATION)
23-
.telemetryConsumer(new Telemetry.MyTelemetryConsumer().telemetryConsumer)
2423
.build();
2524

2625
IntegratedWindowsAuthenticationParameters parameters =

src/samples/public-client/Telemetry.java

Lines changed: 0 additions & 52 deletions
This file was deleted.

0 commit comments

Comments
 (0)