Skip to main content

We are running K2 5.6 FP29 and have followed the Manually Setting AAD for login and also the identity sync article.  Logging into using AAD works but the identity synch fails with the below error.  We followed the same steps in our dev and qa environment and the sync works.  Does anyone know how to fix a missing or malformed token?
 

Error - {"odata.error":{"code":"Authentication_MissingOrMalformed","codeForMetrics":"Authentication_MissingOrMalformed","message":{"lang":"en","value":"Access Token missing or malformed."},"values":null}}
   at SourceCode.Sync.Providers.AAD.Net.AadHttpClient.<ValidateResponseAsync>d__21.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at SourceCode.Sync.Providers.AAD.Net.AadHttpClient.<GetStreamAsync>d__20.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at SourceCode.Sync.Providers.AAD.Net.AadHttpClient.<>c__DisplayClass19_0.<<QueryAsync>b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at SourceCode.Sync.Providers.AAD.Elephant.RetryPrimitive.<ExecuteActionAsync>d__9`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at SourceCode.Sync.Providers.AAD.Net.AadHttpClient.<QueryAsync>d__19.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at SourceCode.Sync.Providers.AAD.AadSyncClient.<ExecuteDifferentialQueryAsync>d__7.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at SourceCode.Sync.Providers.AAD.AadIdentityProvider.<SyncAsync>d__7.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at SourceCode.Sync.SyncEngine.<InvokeAsync>d__9.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at SourceCode.Sync.SyncEngine.<StartProviderSyncAsync>d__8.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at SourceCode.Sync.Runtime.SyncLocalClient.<>c__DisplayClass20_0.<RunSyncJob>b__0()
   at SourceCode.Sync.Runtime.Extensions.<>c__DisplayClass2_0.<LogMethodExecution>b__0()
   at SourceCode.Sync.Runtime.Extensions.LogMethodExecution>T](ILogger logger, Func`1 methodFunc, String source, Boolean throwException, String methodName)
Inner - 

Be the first to reply!

Reply