11#if defined __GNUC__ && !defined __clang__
12#pragma GCC diagnostic push
13#pragma GCC diagnostic ignored "-Wdeprecated"
14#pragma GCC diagnostic ignored "-Wunused-but-set-parameter"
16#include <libcmis/libcmis.hxx>
17#if defined __GNUC__ && !defined __clang__
18#pragma GCC diagnostic pop
21#include <com/sun/star/ucb/XCommandEnvironment.hpp>
28 const css::uno::Reference< css::ucb::XCommandEnvironment>&
m_xEnv;
29 static css::uno::WeakReference< css::ucb::XCommandEnvironment>
sm_xEnv;
34 AuthProvider (
const css::uno::Reference< css::ucb::XCommandEnvironment> & xEnv,
36 OUString sBindingUrl ):
43 const std::string& refreshToken);
49 static void setXEnv(
const css::uno::Reference< css::ucb::XCommandEnvironment>& xEnv );
50 static css::uno::Reference< css::ucb::XCommandEnvironment>
getXEnv();
bool authenticationQuery(std::string &username, std::string &password) override
bool storeRefreshToken(const std::string &username, const std::string &password, const std::string &refreshToken)
AuthProvider(const css::uno::Reference< css::ucb::XCommandEnvironment > &xEnv, OUString sUrl, OUString sBindingUrl)
static css::uno::WeakReference< css::ucb::XCommandEnvironment > sm_xEnv
const css::uno::Reference< css::ucb::XCommandEnvironment > & m_xEnv
static void setXEnv(const css::uno::Reference< css::ucb::XCommandEnvironment > &xEnv)
static char * copyWebAuthCodeFallback(const char *url, const char *, const char *)
std::string getRefreshToken(std::string &username)
static css::uno::Reference< css::ucb::XCommandEnvironment > getXEnv()