Elffuss BraidHub

kikocis/EDC public

main · 2.3 KiBSourceRawPermalink

Data-Plane Http OAuth2

This extension can be used when there's a data endpoint that requires OAuth2 authentication through the client credentials flow It applies on both on source and sink side of the data transfer, when the data address containes the oauth2 related properties, the extension will request a token and add it as a Bearer in the Authorization header.

Please note that this extension doesn't currently support neither expiration nor refresh tokens, as they are not mandatory specifications that are up to the OAuth2 server implementation used.

How to use it

The extension works for all the HttpData addresses that contain the "oauth2" properties (defined in Oauth2DataAddressSchema). It supports both types of client credential: shared secret and private-key based.

Common properties

Private-key based client credential

This type of client credential is used when the HttpData address contains the oauth2:privateKeyName property. This type of client credential is considered as more secured as described here. The mandatory for working with type of client credentials are:

Shared secret client credential

This type of client credential is used when the HttpData address DOES not contain the oauth2:privateKeyName property. The mandatory for working with type of client credentials are: