- Issue created by @fmb
One possible source for external entities is a REST endpoint, hence the Rest external storage client embedded in the External Entities module. This plugin supports authentication via a header which can be statically specified in its configuration. However, services can be behind all kind of authentication mechanisms, quite often OAuth these days (as in #3040457: consuming external api gives authentication error → ) or some variants of it, which imply getting a token which will be added to the request. Although this could be implemented in a child plugin class in custom projects, being able to deal with authentication at this level would benefit anyone declaring REST external entities.
The Entity Share module → provides a generic authentication system relying on plugins. Such a mechanism could be implemented in External Entities as well.
Users will then be able to select an authentication plugin and to configure it. The existing static header configuration can remain this way, as it may not necessarily related to authentication in some cases.
Only changes in the configuration of the external storage plugin.
Active
2.0
Code