orchestrator-core icon indicating copy to clipboard operation
orchestrator-core copied to clipboard

[Bug]: The orchestrator only responds with `Not Authorized` in the graphql response when handling an invalid access token

Open pboers1988 opened this issue 1 year ago • 1 comments

Contact Details

No response

What happened?

Please introduce code to distinguish between not authenticated and not authorized to improve the error handling in the frontend applications.

Version

2.2.0

What python version are you seeing the problem on?

All

Relevant log output

No response

pboers1988 avatar May 14 '24 08:05 pboers1988

I suggest to use not_authenticated as an error type.

Add this to the errorhandlerextension in nwa-stdlib, and then this PR should be updated to actually use it in orchestrator-core https://github.com/workfloworchestrator/orchestrator-core/pull/500

Mark90 avatar May 14 '24 11:05 Mark90

fixed

pboers1988 avatar Jul 02 '24 09:07 pboers1988

Where/how was this fixed?

Mark90 avatar Jul 04 '24 13:07 Mark90