watermark logo

C++ OAuth 2.0 server

4 Views
admin
admin
03 Dec 2019

C++ OAuth 2.0 server using C++ REST SDK (Casablanca)

Example done for illustrating the article: C++ REST SDK OAuth 2.0 server https://cookinapps.io/2016/06/....c++-rest-sdk-oauth-2

The code of this example can be found here: https://github.com/webappsdk/g....ranada/tree/master/e

- The server using Redis uses Alex Nekipelov Redis client library.
- I used openssl for encryption as it is included in C++ REST SDK projects by default.
- You have to include granada library. It contains the OAuth 2.0 classes, OAuth 2.0 Controller class, default values, Session classes, Cryptographs and Cache drivers to access storage systems. Granada is built on top of C++ REST SDK, it proposes a typed structure for C++ REST SDK server applications, implements sessions, and utils to deal with data.

I used cmake to build the examples:

$: cmake .
$: make

Then execute redis-oauth2-server or oauth2-server as you wish and interact with the server typing http://localhost in your browser.

Show more

0 Comments Sort By

No comments found

Facebook Comments

Up next