OAuth 2 Community Implementation Examples

API Discussion
Members of the developer community have requested examples for OAuth implementations in different languages. We've created a few examples which can be found here, but in recognition of the talented developers in our community, we wanted to invite you to share your own!

Feel free to contribute your own examples of OAuth Client Credentials flow in this thread!
This is a Ruby on Rails sample application showing how to retrieve Wow game data (region and realms only at the moment) using the Ruby gem blizzard_api that I published earlier.

https://gitlab.com/francisschiavo/wow-api-demo

The gem supports both Authorization Code flow and Client Credentials flow and have support to (probably) all endpoints available for all games. The gem is fully documented and source code provides some hints on how the authorization process works.

The actual code for generating an access_token using the Client Credentials flow can be found here

https://gitlab.com/francisschiavo/blizzard_api/blob/master/lib/blizzard_api/request.rb#L97

Join the Conversation

Return to Forum