Umbraco Authorized Services is an open-source package designed to reduce the effort needed to integrate third party services that require authentication and authorization via an OAuth flow.
MIT License
14
stars
7
forks
source link
Refresh token with client credentials flow and use async for data access. #43
This PR was initiated with the request in issue https://github.com/umbraco/Umbraco.AuthorizedServices/issues/42, where it looks like we missed a step with refreshing the token with the client credentials flow.
Hence the main part that needs review is the
EnsureAccessToken
method.Then I also realised we weren't making use of async in the data access calls, so I added that too. Hence most of the PR is changes related to that.
To Test: