Skip to content

Add support for access token authorization

Hamish Smith requested to merge feature/access-token-provider into main

The 10Duke Enterprise APIs are accessed using Bearer token authorization with the OIDC access token as the bearer token.

To use a similar pattern as the 10Duke Scale SDK, the API client in the 10Duke Enterprise SDK should be configured to use an HttpClient that has a DelegatingMessageHandler that adds the bearer token authorization.

To faciliate initializing the API client, the supporting methods to set up for dependency injection or using the fluent client builder also need to be added.

Some code has been adapted to make it possible to reuse logic between IDToken authorization and access token authorization.

The refactoring of the IdTokenAuthorizationBuilder to OidcTokenAuthorizationBuilder is a breaking change that will require some change in the 10Duke Scale SDK.

Merge request reports

Loading