Skip to main content
Nintex Community Menu Bar
Question

OAuth integration with REST API returns : One or more errors message


Forum|alt.badge.img+1

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`1[System.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 , Object[] , Object[] )
   at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& 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...).

Translate
Did this topic help you find an answer to your question?

2 replies

Deon
Forum|alt.badge.img+10
  • Rookie
  • 125 replies
  • January 16, 2024

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.

Translate

MillaZ
Nintex Employee
Forum|alt.badge.img+21
  • Nintex Employee
  • 662 replies
  • January 22, 2024

Hi @PrakritiJain 

Have you managed to resolve this?

Translate

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie Settings