Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
fc1bfd9e
Kaydet (Commit)
fc1bfd9e
authored
Haz 23, 2014
tarafından
Mihai Varga
Kaydeden (comit)
Miklos Vajna
Ara 15, 2014
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
OneDrive binding settings
Change-Id: I72c97931098c1a029d39532e3433c0aeaba73e3f
üst
a7b86c0e
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
60 additions
and
1 deletion
+60
-1
config_oauth2.h.in
config_host/config_oauth2.h.in
+10
-0
configure.ac
configure.ac
+33
-0
Common.xcu
officecfg/registry/data/org/openoffice/Office/Common.xcu
+2
-0
ServerDetailsControls.cxx
svtools/source/dialogs/ServerDetailsControls.cxx
+5
-1
cmis_content.cxx
ucb/source/ucp/cmis/cmis_content.cxx
+5
-0
cmis_repo_content.cxx
ucb/source/ucp/cmis/cmis_repo_content.cxx
+5
-0
No files found.
config_host/config_oauth2.h.in
Dosyayı görüntüle @
fc1bfd9e
...
@@ -33,6 +33,16 @@
...
@@ -33,6 +33,16 @@
#define ALFRESCO_CLOUD_REDIRECT_URI "http://127.0.0.1/Callback"
#define ALFRESCO_CLOUD_REDIRECT_URI "http://127.0.0.1/Callback"
#define ALFRESCO_CLOUD_SCOPE "public_api"
#define ALFRESCO_CLOUD_SCOPE "public_api"
/* OneDrive */
#define ONEDRIVE_BASE_URL "https://apis.live.net/v5.0"
#define ONEDRIVE_CLIENT_ID ""
#define ONEDRIVE_CLIENT_SECRET ""
#define ONEDRIVE_AUTH_URL "https://login.live.com/oauth20_authorize.srf"
#define ONEDRIVE_TOKEN_URL "https://login.live.com/oauth20_token.srf"
#define ONEDRIVE_REDIRECT_URI "https://login.live.com/oauth20_desktop.srf"
#define ONEDRIVE_SCOPE "wl.offline_access"
#endif
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
configure.ac
Dosyayı görüntüle @
fc1bfd9e
...
@@ -2225,6 +2225,19 @@ AC_ARG_WITH(alfresco-cloud-client-secret,
...
@@ -2225,6 +2225,19 @@ AC_ARG_WITH(alfresco-cloud-client-secret,
--with-alfresco-cloud-client-id is empty, the feature will be disabled]),
--with-alfresco-cloud-client-id is empty, the feature will be disabled]),
)
)
AC_ARG_WITH(onedrive-client-id,
AS_HELP_STRING([--with-onedrive-client-id],
[Provides the client id of the application for OAuth2 authentication
on OneDrive. If either this or --with-onedrive-client-secret is
empty, the feature will be disabled]),
)
AC_ARG_WITH(onedrive-client-secret,
AS_HELP_STRING([--with-onedrive-client-secret],
[Provides the client secret of the application for OAuth2
authentication on OneDrive. If either this or
--with-onedrive-client-id is empty, the feature will be disabled]),
)
dnl ===================================================================
dnl ===================================================================
dnl Do we want to use pre-build binary tarball for recompile
dnl Do we want to use pre-build binary tarball for recompile
dnl ===================================================================
dnl ===================================================================
...
@@ -12361,6 +12374,26 @@ fi
...
@@ -12361,6 +12374,26 @@ fi
AC_DEFINE_UNQUOTED(ALFRESCO_CLOUD_CLIENT_ID, $ALFRESCO_CLOUD_CLIENT_ID)
AC_DEFINE_UNQUOTED(ALFRESCO_CLOUD_CLIENT_ID, $ALFRESCO_CLOUD_CLIENT_ID)
AC_DEFINE_UNQUOTED(ALFRESCO_CLOUD_CLIENT_SECRET, $ALFRESCO_CLOUD_CLIENT_SECRET)
AC_DEFINE_UNQUOTED(ALFRESCO_CLOUD_CLIENT_SECRET, $ALFRESCO_CLOUD_CLIENT_SECRET)
AC_MSG_CHECKING([for OneDrive client id and secret])
ONEDRIVE_CLIENT_ID="\"$with_onedrive_client_id\""
ONEDRIVE_CLIENT_SECRET="\"$with_onedrive_client_secret\""
if test "$with_onedrive_client_id" = "no" -o -z "$with_onedrive_client_id"; then
ONEDRIVE_CLIENT_ID="\"\""
fi
if test "$with_onedrive_client_secret" = "no" -o -z "$with_onedrive_client_secret"; then
ONEDRIVE_CLIENT_SECRET="\"\""
fi
if test -z "$ONEDRIVE_CLIENT_ID" -o -z "$ONEDRIVE_CLIENT_SECRET"; then
AC_MSG_RESULT([not set])
else
AC_MSG_RESULT([set])
fi
AC_DEFINE_UNQUOTED(ONEDRIVE_CLIENT_ID, $ONEDRIVE_CLIENT_ID)
AC_DEFINE_UNQUOTED(ONEDRIVE_CLIENT_SECRET, $ONEDRIVE_CLIENT_SECRET)
# ===================================================================
# ===================================================================
# De- or increase default verbosity of build process
# De- or increase default verbosity of build process
# ===================================================================
# ===================================================================
...
...
officecfg/registry/data/org/openoffice/Office/Common.xcu
Dosyayı görüntüle @
fc1bfd9e
...
@@ -580,6 +580,7 @@
...
@@ -580,6 +580,7 @@
<it>
http://ec2-184-72-233-127.compute-1.amazonaws.com/ot-cmis/services/RepositoryService?wsdl
</it>
<it>
http://ec2-184-72-233-127.compute-1.amazonaws.com/ot-cmis/services/RepositoryService?wsdl
</it>
<it>
http://
<
host
>
/_vti_bin/CMISSoapwsdl.aspx
</it>
<it>
http://
<
host
>
/_vti_bin/CMISSoapwsdl.aspx
</it>
<it>
https://www.googleapis.com/drive/v2
</it>
<it>
https://www.googleapis.com/drive/v2
</it>
<it>
https://apis.live.net/v5.0
</it>
</value>
</value>
</prop>
</prop>
<prop
oor:name=
"CmisServersNames"
>
<prop
oor:name=
"CmisServersNames"
>
...
@@ -594,6 +595,7 @@
...
@@ -594,6 +595,7 @@
<it>
OpenText ELS 10.2.0
</it>
<it>
OpenText ELS 10.2.0
</it>
<it>
SharePoint 2010
</it>
<it>
SharePoint 2010
</it>
<it>
Google Drive
</it>
<it>
Google Drive
</it>
<it>
OneDrive
</it>
</value>
</value>
</prop>
</prop>
</node>
</node>
...
...
svtools/source/dialogs/ServerDetailsControls.cxx
Dosyayı görüntüle @
fc1bfd9e
...
@@ -283,6 +283,9 @@ CmisDetailsContainer::CmisDetailsContainer( VclBuilderContainer* pBuilder ) :
...
@@ -283,6 +283,9 @@ CmisDetailsContainer::CmisDetailsContainer( VclBuilderContainer* pBuilder ) :
OUString
(
GDRIVE_CLIENT_SECRET
).
isEmpty
();
OUString
(
GDRIVE_CLIENT_SECRET
).
isEmpty
();
bool
bSkipAlfresco
=
OUString
(
ALFRESCO_CLOUD_CLIENT_ID
).
isEmpty
()
||
bool
bSkipAlfresco
=
OUString
(
ALFRESCO_CLOUD_CLIENT_ID
).
isEmpty
()
||
OUString
(
ALFRESCO_CLOUD_CLIENT_SECRET
).
isEmpty
();
OUString
(
ALFRESCO_CLOUD_CLIENT_SECRET
).
isEmpty
();
bool
bSkipOneDrive
=
OUString
(
ONEDRIVE_CLIENT_ID
).
isEmpty
()
||
OUString
(
ONEDRIVE_CLIENT_SECRET
).
isEmpty
();
Sequence
<
OUString
>
aTypesUrlsList
(
officecfg
::
Office
::
Common
::
Misc
::
CmisServersUrls
::
get
(
xContext
)
);
Sequence
<
OUString
>
aTypesUrlsList
(
officecfg
::
Office
::
Common
::
Misc
::
CmisServersUrls
::
get
(
xContext
)
);
Sequence
<
OUString
>
aTypesNamesList
(
officecfg
::
Office
::
Common
::
Misc
::
CmisServersNames
::
get
(
xContext
)
);
Sequence
<
OUString
>
aTypesNamesList
(
officecfg
::
Office
::
Common
::
Misc
::
CmisServersNames
::
get
(
xContext
)
);
...
@@ -290,7 +293,8 @@ CmisDetailsContainer::CmisDetailsContainer( VclBuilderContainer* pBuilder ) :
...
@@ -290,7 +293,8 @@ CmisDetailsContainer::CmisDetailsContainer( VclBuilderContainer* pBuilder ) :
{
{
OUString
sUrl
=
aTypesUrlsList
[
i
];
OUString
sUrl
=
aTypesUrlsList
[
i
];
if
(
!
(
sUrl
==
GDRIVE_BASE_URL
&&
bSkipGDrive
)
&&
if
(
!
(
sUrl
==
GDRIVE_BASE_URL
&&
bSkipGDrive
)
&&
!
(
sUrl
.
startsWith
(
ALFRESCO_CLOUD_BASE_URL
)
&&
bSkipAlfresco
)
)
!
(
sUrl
.
startsWith
(
ALFRESCO_CLOUD_BASE_URL
)
&&
bSkipAlfresco
)
&&
!
(
sUrl
==
ONEDRIVE_BASE_URL
&&
bSkipOneDrive
)
)
{
{
m_pLBServerType
->
InsertEntry
(
aTypesNamesList
[
i
]
);
m_pLBServerType
->
InsertEntry
(
aTypesNamesList
[
i
]
);
m_aServerTypesURLs
.
push_back
(
sUrl
);
m_aServerTypesURLs
.
push_back
(
sUrl
);
...
...
ucb/source/ucp/cmis/cmis_content.cxx
Dosyayı görüntüle @
fc1bfd9e
...
@@ -353,6 +353,11 @@ namespace cmis
...
@@ -353,6 +353,11 @@ namespace cmis
ALFRESCO_CLOUD_AUTH_URL
,
ALFRESCO_CLOUD_TOKEN_URL
,
ALFRESCO_CLOUD_AUTH_URL
,
ALFRESCO_CLOUD_TOKEN_URL
,
ALFRESCO_CLOUD_SCOPE
,
ALFRESCO_CLOUD_REDIRECT_URI
,
ALFRESCO_CLOUD_SCOPE
,
ALFRESCO_CLOUD_REDIRECT_URI
,
ALFRESCO_CLOUD_CLIENT_ID
,
ALFRESCO_CLOUD_CLIENT_SECRET
)
);
ALFRESCO_CLOUD_CLIENT_ID
,
ALFRESCO_CLOUD_CLIENT_SECRET
)
);
if
(
m_aURL
.
getBindingUrl
(
)
==
ONEDRIVE_BASE_URL
)
oauth2Data
.
reset
(
new
libcmis
::
OAuth2Data
(
ONEDRIVE_AUTH_URL
,
ONEDRIVE_TOKEN_URL
,
ONEDRIVE_SCOPE
,
ONEDRIVE_REDIRECT_URI
,
ONEDRIVE_CLIENT_ID
,
ONEDRIVE_CLIENT_SECRET
)
);
m_pSession
=
libcmis
::
SessionFactory
::
createSession
(
m_pSession
=
libcmis
::
SessionFactory
::
createSession
(
OUSTR_TO_STDSTR
(
m_aURL
.
getBindingUrl
(
)
),
OUSTR_TO_STDSTR
(
m_aURL
.
getBindingUrl
(
)
),
...
...
ucb/source/ucp/cmis/cmis_repo_content.cxx
Dosyayı görüntüle @
fc1bfd9e
...
@@ -178,6 +178,11 @@ namespace cmis
...
@@ -178,6 +178,11 @@ namespace cmis
ALFRESCO_CLOUD_AUTH_URL
,
ALFRESCO_CLOUD_TOKEN_URL
,
ALFRESCO_CLOUD_AUTH_URL
,
ALFRESCO_CLOUD_TOKEN_URL
,
ALFRESCO_CLOUD_SCOPE
,
ALFRESCO_CLOUD_REDIRECT_URI
,
ALFRESCO_CLOUD_SCOPE
,
ALFRESCO_CLOUD_REDIRECT_URI
,
ALFRESCO_CLOUD_CLIENT_ID
,
ALFRESCO_CLOUD_CLIENT_SECRET
)
);
ALFRESCO_CLOUD_CLIENT_ID
,
ALFRESCO_CLOUD_CLIENT_SECRET
)
);
if
(
m_aURL
.
getBindingUrl
(
)
==
ONEDRIVE_BASE_URL
)
oauth2Data
.
reset
(
new
libcmis
::
OAuth2Data
(
ONEDRIVE_AUTH_URL
,
ONEDRIVE_TOKEN_URL
,
ONEDRIVE_SCOPE
,
ONEDRIVE_REDIRECT_URI
,
ONEDRIVE_CLIENT_ID
,
ONEDRIVE_CLIENT_SECRET
)
);
boost
::
scoped_ptr
<
libcmis
::
Session
>
session
(
libcmis
::
SessionFactory
::
createSession
(
boost
::
scoped_ptr
<
libcmis
::
Session
>
session
(
libcmis
::
SessionFactory
::
createSession
(
OUSTR_TO_STDSTR
(
m_aURL
.
getBindingUrl
(
)
),
OUSTR_TO_STDSTR
(
m_aURL
.
getBindingUrl
(
)
),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment