Granada  1.54.0
Structured layer on top of C++ REST SDK for building server applications in C++. Granada implements sessions, server side plug-in framework, C++ OAuth 2.0 server, data storage access, server script running, server browsing.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
Public Member Functions | Protected Member Functions | List of all members
granada::http::oauth2::MapOAuth2Authorization Class Reference

#include <map_oauth2.h>

Inheritance diagram for granada::http::oauth2::MapOAuth2Authorization:
granada::http::oauth2::OAuth2Authorization granada::http::oauth2::OAuth2Entity

Public Member Functions

 MapOAuth2Authorization ()
 
 MapOAuth2Authorization (const granada::http::oauth2::OAuth2Parameters &oauth2_parameters, granada::http::session::SessionFactory *session_factory)
 
granada::cache::CacheHandlercache () override
 
- Public Member Functions inherited from granada::http::oauth2::OAuth2Authorization
 OAuth2Authorization ()
 
 OAuth2Authorization (const granada::http::oauth2::OAuth2Parameters &oauth2_parameters, granada::http::session::SessionFactory *session_factory)
 
virtual
granada::http::oauth2::OAuth2Parameters 
Grant (web::http::http_request &request, web::http::http_response &response)
 
virtual web::json::value Information ()
 
virtual web::json::value Delete ()
 
- Public Member Functions inherited from granada::http::oauth2::OAuth2Entity
virtual
granada::crypto::Cryptograph
cryptograph ()
 
virtual
granada::crypto::NonceGenerator
nonce_generator ()
 
virtual const bool Exists ()
 
virtual void Load ()
 
virtual void Load (const std::string &identifier)
 

Protected Member Functions

virtual
granada::http::oauth2::OAuth2Factory
factory () override
 
- Protected Member Functions inherited from granada::http::oauth2::OAuth2Authorization
virtual void LoadProperties ()
 
virtual const std::string hash () override
 
virtual void CheckClient (std::unique_ptr< granada::http::oauth2::OAuth2Client > &oauth2_client, granada::http::oauth2::OAuth2Parameters &oauth2_response)
 
virtual void CheckCredentials (granada::http::oauth2::OAuth2Client *oauth2_client, std::unique_ptr< granada::http::oauth2::OAuth2User > &oauth2_user, std::unique_ptr< granada::http::oauth2::OAuth2Code > &oauth2_code, std::unique_ptr< granada::http::session::Session > &oauth2_user_session, granada::http::oauth2::OAuth2Parameters &oauth2_response, web::http::http_request &request, web::http::http_response &response)
 
virtual void CreateCode (std::unique_ptr< granada::http::session::Session > &oauth2_user_session, std::unique_ptr< granada::http::oauth2::OAuth2Code > &oauth2_code, granada::http::oauth2::OAuth2User *oauth2_user, granada::http::oauth2::OAuth2Parameters &oauth2_response, web::http::http_request &request, web::http::http_response &response)
 
virtual void CreateAccessToken (std::vector< std::string > &roles, std::unique_ptr< granada::http::session::Session > &oauth2_user_session, granada::http::oauth2::OAuth2User *oauth2_user, std::unique_ptr< granada::http::oauth2::OAuth2Code > &oauth2_code, granada::http::oauth2::OAuth2Parameters &oauth2_response, web::http::http_request &request, web::http::http_response &response)
 
virtual void CreateRefreshToken (granada::http::session::Session *oauth2_client_session, std::unique_ptr< granada::http::oauth2::OAuth2Code > &oauth2_code, granada::http::oauth2::OAuth2Parameters &oauth2_response)
 
virtual bool CheckRoleAllowance (std::vector< std::string > &roles, granada::http::oauth2::OAuth2Client *oauth2_client, granada::http::oauth2::OAuth2User *oauth2_user)
 
virtual void AssignRolesToClientSession (std::vector< std::string > &roles, const web::json::value &user_roles, granada::http::session::Session *oauth2_client_session)
 
virtual void AssignRolesToOAuth2UserSession (std::unique_ptr< granada::http::session::Session > &oauth2_user_session, const web::json::value &user_roles, web::http::http_request &request, web::http::http_response &response)
 
virtual
granada::http::session::SessionFactory
session_factory ()
 

Additional Inherited Members

- Protected Attributes inherited from granada::http::oauth2::OAuth2Authorization
granada::http::session::SessionFactorysession_factory_
 
granada::http::oauth2::OAuth2Parameters oauth2_parameters_
 
- Static Protected Attributes inherited from granada::http::oauth2::OAuth2Authorization
static std::string cache_namespace_
 
static bool oauth2_use_refresh_token_
 

Constructor & Destructor Documentation

granada::http::oauth2::MapOAuth2Authorization::MapOAuth2Authorization ( )
inline
granada::http::oauth2::MapOAuth2Authorization::MapOAuth2Authorization ( const granada::http::oauth2::OAuth2Parameters oauth2_parameters,
granada::http::session::SessionFactory session_factory 
)
inline

Member Function Documentation

granada::cache::CacheHandler* granada::http::oauth2::MapOAuth2Authorization::cache ( )
inlineoverridevirtual

Returns the used cache: where entities data is stored.

Returns
Cache where data is stored.

Reimplemented from granada::http::oauth2::OAuth2Entity.

virtual granada::http::oauth2::OAuth2Factory* granada::http::oauth2::MapOAuth2Authorization::factory ( )
inlineoverrideprotectedvirtual

The documentation for this class was generated from the following file: