SEVERE: CoreHttpProvider - 207Authorization : SEVERE: CoreHttpProvider - 207SdkVersion : graph-java/v2.2.0 SEVERE: CoreHttpProvider - 207Error message: CompactToken parsing failed with error code: 80049217 SEVERE: CoreHttpProvider - 207Graph service exception Error code: InvalidAuthenticationToken INFO: Deserializing type GraphErrorResponseĦ:13:54 PM .DefaultLogger logError Java code producing the exception void authError() Īt 2.(OAuthProblemException.java:63)Īt 2.(OAuthJSONAccessTokenResponse.java:76)Īt 2.(OAuthClientResponse.java:92)Īt 2.(OAuthAccessTokenResponse.java:65)Īt 2.(OAuthClientResponse.java:101)Īt 2.(OAuthAccessTokenResponse.java:60)Īt 2.(OAuthClientResponse.java:120)Īt 2.(OAuthClientResponseFactory.java:82)Īt 2.(URLConnectionClient.java:111)Īt 2.(OAuthClient.java:65)Īt 2.(OAuthClient.java:55)Īt 2.(OAuthClient.java:71)Īt .(UsernamePasswordProvider.java:98)Īt .(UsernamePasswordProvider.java:71)Īt .(UsernamePasswordProvider.java:62)Īt .ndRequestInternal(CoreHttpProvider.java:382)Īt .nd(CoreHttpProvider.java:207)Īt .nd(CoreHttpProvider.java:187)Īt .nd(BaseRequest.java:345)Īt .(DriveItemRequest.java:84)Īt .thError(GraphConnectionTest.java:73)Īt 0(Native Method)Īt (NativeMethodAccessorImpl.java:62)Īt (DelegatingMethodAccessorImpl.java:43)Īt .invoke(Method.java:498)Īt .FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)Īt .(ReflectiveCallable.java:12)Īt .FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)Īt .(InvokeMethod.java:17)Īt .(RunBefores.java:26)Īt .runLeaf(ParentRunner.java:325)Īt nChild(BlockJUnit4ClassRunner.java:78)Īt nChild(BlockJUnit4ClassRunner.java:57)Īt $3.run(ParentRunner.java:290)Īt $1.schedule(ParentRunner.java:71)Īt .runChildren(ParentRunner.java:288)Īt .access$000(ParentRunner.java:58)Īt $2.evaluate(ParentRunner.java:268)Īt .run(ParentRunner.java:363)Īt .run(JUnitCore.java:137)Īt 4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:69)Īt .junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:33)Īt .(JUnitStarter.java:220)Īt .(JUnitStarter.java:53)Ħ:13:54 PM .DefaultLogger logDebug I raised this as an issue with the msgraph-sdk-java-auth library, as it seems likely this might be a bug in the SDK, but I'm also curious for someone else to look at my Java code and let me know if I'm doing anything wrong, which is more likely. I'm using v0.2.0 of the Auth library and v2.2.0 of the main SDK. WithUsernamePassword(email, password) method (probably since the Java SDK gives the username and password directly to the constructor of UsernamePasswordProvider). I got the Java code as close as possible, but I didn't see an equivalent of the. Net Core equivalent, and lastly the whole debug-level log output from a run of the Java code. I pasted the Java code I'm trying to run, its. Net Core's Graph SDK (working a-ok) that I'm porting to Java for a different application, and I can't get it to authenticate. I'm trying to use Username/Password authentication for a Microsoft Graph files request (in conjunction with an AD account created for this purpose, since we want to limit access to only specific directories within SharePoint).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |