File tree Expand file tree Collapse file tree 2 files changed +1
-3
lines changed
deviceCodeSample/src/main/java
interactiveBrowserSample/src/main/java Expand file tree Collapse file tree 2 files changed +1
-3
lines changed Original file line number Diff line number Diff line change 11import com .azure .identity .DeviceCodeCredential ;
22import com .azure .identity .DeviceCodeCredentialBuilder ;
33import com .microsoft .graph .authentication .TokenCredentialAuthProvider ;
4- import com .microsoft .graph .exceptions .AuthenticationException ;
54import com .microsoft .graph .httpcore .HttpClients ;
65import 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 ());})
Original file line number Diff line number Diff line change 66import com .microsoft .graph .authentication .*;
77import okhttp3 .*;
88import com .microsoft .graph .httpcore .HttpClients ;
9- import com .microsoft .graph .exceptions .*;
109
1110public class interactiveBrowserMain {
1211
You can’t perform that action at this time.
0 commit comments