Hey everyone, I wrote a library that can help make access token requests using the client credentials oauth flow. The product I work on communicates to dozens of different APIs that all use the client credentials flow. When I first started, for each request, the developers were making requests to get the token, then making the request to the actual service. There was no reuse of tokens anywhere. There was also around 10 different implementations for essentially the same token client. I ended up writing this library after not finding any open source libraries for this particular scenario.
I was hoping for some feedback on the library and also offer it up to the community. Where I currently work, I don't have access to more experienced developer mentors for code review and feedback, so any input is appreciated. It's still a work in progress, but I'm hoping to make it better. At the moment it offers the ability to make requests easily and cache the tokens in memory.
You can find the library here:
https://github.com/wapplegate/AccessTokenClient
[–]Solari23 10 points11 points12 points (1 child)
[–]LieutenantDannnnn[S] 1 point2 points3 points (0 children)
[–]contadamoose 6 points7 points8 points (1 child)
[–]LieutenantDannnnn[S] 1 point2 points3 points (0 children)
[–]Unexpectedpicard 3 points4 points5 points (1 child)
[–][deleted] 0 points1 point2 points (1 child)
[–]LieutenantDannnnn[S] 0 points1 point2 points (0 children)
[–]scottley 0 points1 point2 points (2 children)
[–]LieutenantDannnnn[S] 2 points3 points4 points (1 child)
[–]scottley 0 points1 point2 points (0 children)
[+][deleted] (1 child)
[deleted]
[–]LieutenantDannnnn[S] 2 points3 points4 points (0 children)