You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Today, we are the biggest consumers of our own APIs. Tomorrow, this may change.
Concretely, this means that we cannot keep relying on clients calling our back-ends to be clients written with the Arc4u framework. This is normally not a problem since we work with http/rest or grpc. There are two instances for which interoperability is problematic:
language support
exception support
This issue deals with language support. A separate issue has been filed for exception support (#37)
Currently, Arc4u has its own way of propagating culture information to API calls. This is done by clients injecting a custom header called "culture" in th request, and parsing it in the back-end middleware.
See the following code for handlers:
it ignores the standard protocol for transferring culture in http (and grpc as well, since it's really http2): Content-Language.
the culture information is only passed in the context of authentication. However, authentication and culture information are orthogonal issues: one has nothing to do with another. It is not currently possible to pass culture information to anonymous calls. This might not be a use case today, but there might be one tomorrow.
There is built-in support for Content-Language in .NET, see Content-Language HTTP header. The Arc4u framework should switch to that support. For compatibility reasons, one may decide to keep the current mechanism, but the time should be as short as possible.
The text was updated successfully, but these errors were encountered:
Today, we are the biggest consumers of our own APIs. Tomorrow, this may change.
Concretely, this means that we cannot keep relying on clients calling our back-ends to be clients written with the Arc4u framework. This is normally not a problem since we work with http/rest or grpc. There are two instances for which interoperability is problematic:
This issue deals with language support. A separate issue has been filed for exception support (#37)
Currently, Arc4u has its own way of propagating culture information to API calls. This is done by clients injecting a custom header called "culture" in th request, and parsing it in the back-end middleware.
See the following code for handlers:
... for grpc interceptors:
... and for middleware:
This is problematic for two reasons:
There is built-in support for Content-Language in .NET, see Content-Language HTTP header. The Arc4u framework should switch to that support. For compatibility reasons, one may decide to keep the current mechanism, but the time should be as short as possible.
The text was updated successfully, but these errors were encountered: