Skip to content

Commit fb6e1f1

Browse files
committed
- fixes samples after removal of auth exception
1 parent 6f6098d commit fb6e1f1

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

samples/deviceCodeSample/src/main/java/deviceCodeFlowMain.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import com.azure.identity.DeviceCodeCredential;
22
import com.azure.identity.DeviceCodeCredentialBuilder;
33
import com.microsoft.graph.authentication.TokenCredentialAuthProvider;
4-
import com.microsoft.graph.exceptions.AuthenticationException;
54
import com.microsoft.graph.httpcore.HttpClients;
65
import okhttp3.*;
76

@@ -20,7 +19,7 @@ public class deviceCodeFlowMain {
2019
//Set the scopes for your ms-graph request
2120
private final static List<String> SCOPES = Arrays.asList("User.ReadBasic.All", "User.Read");
2221

23-
public static void main(String[] args) throws AuthenticationException {
22+
public static void main(String[] args) throws Exception {
2423
final DeviceCodeCredential deviceCodeCred = new DeviceCodeCredentialBuilder()
2524
.clientId(CLIENT_ID)
2625
.challengeConsumer(challenge -> {System.out.println(challenge.getMessage());})

samples/interactiveBrowserSample/src/main/java/interactiveBrowserMain.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
import com.microsoft.graph.authentication.*;
77
import okhttp3.*;
88
import com.microsoft.graph.httpcore.HttpClients;
9-
import com.microsoft.graph.exceptions.*;
109

1110
public class interactiveBrowserMain {
1211

0 commit comments

Comments
 (0)