diff --git a/AutoRefreshTokenHttpMessageHandler/AutoRefreshTokenHttpMessageHandler.csproj b/AutoRefreshTokenHttpMessageHandler/AutoRefreshTokenHttpMessageHandler.csproj index 87d098d..eea4a72 100644 --- a/AutoRefreshTokenHttpMessageHandler/AutoRefreshTokenHttpMessageHandler.csproj +++ b/AutoRefreshTokenHttpMessageHandler/AutoRefreshTokenHttpMessageHandler.csproj @@ -7,8 +7,32 @@ latest true latest + True + AutoRefreshTokenHttpMessageHandler + RobIII + Devcorner.nl + A thread-safe implementation of a DelegatingHandler that automatically refreshes the access token when the access token expires whilst **not** serializing all requests. + (C) 2024 Devcorner.nl + https://github.com/RobThree/AutoRefreshTokenHttpMessageHandler + README.md + https://github.com/RobThree/AutoRefreshTokenHttpMessageHandler.git + git + accesstoken;refreshtoken;delegatinghandler + MIT + logo.png + + + True + \ + + + True + \ + + + diff --git a/README.md b/README.md index 4e191fb..03e53a7 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# AutoRefreshTokenHttpMessageHandler +# ![icon.png](icon.png) AutoRefreshTokenHttpMessageHandler This is a thread-safe implementation of a `DelegatingHandler` that automatically refreshes the access token when the access token expires whilst **not** serializing all requests. Most implementations use a lock internally which essentially makes all async actions synchronous again. This implementation only blocks during the actual refresh. Inspired by Bryan Helms' [Thread-Safe Auth Token Store Using ConcurrentDictionary and AsyncLazy](https://bryanhelms.com/2021/03/29/thread-safe-auth-token-store-using-concurrentdictionary-and-asynclazy.html). @@ -73,4 +73,8 @@ builder.Services.AddHttpClient() "TokenEndpoint": "http://auth.myservice.com/realms/myapi/protocol/openid-connect/token" } } -``` \ No newline at end of file +``` + +## Attribution + +Icon by [Freepik](https://www.freepik.com/icon/key_908229) \ No newline at end of file diff --git a/icon.png b/icon.png new file mode 100644 index 0000000..ccf17ef Binary files /dev/null and b/icon.png differ diff --git a/logo.png b/logo.png new file mode 100644 index 0000000..bfde4cf Binary files /dev/null and b/logo.png differ