mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-11 02:25:34 -04:00
fixed start/stop of jsonapi in GUI
This commit is contained in:
parent
a304ec20ef
commit
6878a7773d
6 changed files with 89 additions and 71 deletions
|
@ -20,6 +20,8 @@
|
|||
*******************************************************************************/
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
|
||||
class RsJsonAPI
|
||||
{
|
||||
public:
|
||||
|
@ -59,6 +61,12 @@ public:
|
|||
*/
|
||||
virtual bool requestNewTokenAutorization(const std::string& token)=0;
|
||||
|
||||
//=============================================================================================//
|
||||
// Utility methods //
|
||||
//=============================================================================================//
|
||||
|
||||
static bool parseToken(const std::string& clear_token,std::string& user,std::string& passwd);
|
||||
|
||||
//=============================================================================================//
|
||||
// API methods that SHOULD NOT be accessible through http //
|
||||
//=============================================================================================//
|
||||
|
@ -91,7 +99,7 @@ public:
|
|||
* @param[in] token decoded
|
||||
* @return tru if authorized, false otherwise
|
||||
*/
|
||||
virtual bool isAuthTokenValid(const std::string& token);
|
||||
virtual bool isAuthTokenValid(const std::string& token)=0;
|
||||
|
||||
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue