Skip to main content
Nintex Community Menu Bar

Hello Everyone,

 

I am trying to integrate with REST API enabling OAuth authorization I am getting below errors :-

One or more errors occurred.

at SourceCode.Security.OAuth.Extensions.ClientCredentials.<RequestClientCredentialsAsync>d__9.MoveNext()

------------------------------------------------------------------------------------ 

Error Marshalling SourceCode.SmartObjects.Runtime.SmartObjectManagementServer.GetServiceInstanceSchemaDoc, One or more errors occurred.

   at SourceCode.SmartObjects.Runtime.SmartObjectManagementServer.GetServiceInstanceSchemaDoc(String fileName, String className, String completedConfig, Guid serviceInstanceGuid, String serviceInstanceName, String serviceInstanceDisplayName, String serviceInstanceDescription)

    InnerException: {'error_description':'Access denied by resource owner or authorization server Client is not allowed one or more scopes','error':'access_denied'}

   at SourceCode.Security.OAuth.Extensions.ClientCredentials.<RequestClientCredentialsAsync>d__9.MoveNext()

MapToWindows: Failed to map to windows: System.ServiceModel.FaultException`1ESystem.ServiceModel.ExceptionDetail]: WTS0003: The caller is not authorized to access the service. (Fault Detail is equal to An ExceptionDetail, likely created by IncludeExceptionDetailInFaults=true, whose value is:
System.UnauthorizedAccessException: WTS0003: The caller is not authorized to access the service.
   at Microsoft.IdentityModel.WindowsTokenService.CallerSecurity.CheckCaller(WindowsIdentity callerIdentity)
   at Microsoft.IdentityModel.WindowsTokenService.S4UServiceContract.PerformLogon(Func`1 logonOperation, Int32 pid)
   at Microsoft.IdentityModel.WindowsTokenService.S4UServiceContract.UpnLogon(String upn, Int32 pid)
   at SyncInvokeUpnLogon(Object , Objectg] , Object,] )
   at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Objectj] inputs, Objectj]& outputs)
   at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc& rpc)
   at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc& rpc)
   at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage41(MessageRpc& rpc)
   at System.ServiceModel.Dispatcher.Immutable...).

Hello @PrakritiJain ,

it seems like there is a mismatch between the scope parameter you have defined on the OAUTH resource in K2 and the scopes expected by the API.


Hi @PrakritiJain 

Have you managed to resolve this?


Reply