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
298272f9
Kaydet (Commit)
298272f9
authored
Tem 02, 2015
tarafından
Szymon Kłos
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
tdf#84190 : when auth fails, don't remember passwords for cmis
Change-Id: Ia1e0d553556693e0efa6de0bfc6f8b0ae9d40b5d
üst
51b316c8
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
31 additions
and
15 deletions
+31
-15
simpleauthenticationrequest.hxx
include/ucbhelper/simpleauthenticationrequest.hxx
+5
-3
auth_provider.cxx
ucb/source/ucp/cmis/auth_provider.cxx
+1
-1
cmis_content.cxx
ucb/source/ucp/cmis/cmis_content.cxx
+2
-2
simpleauthenticationrequest.cxx
ucbhelper/source/provider/simpleauthenticationrequest.cxx
+23
-9
No files found.
include/ucbhelper/simpleauthenticationrequest.hxx
Dosyayı görüntüle @
298272f9
...
@@ -60,8 +60,9 @@ private:
...
@@ -60,8 +60,9 @@ private:
bool
bCanSetUserName
,
bool
bCanSetUserName
,
bool
bCanSetPassword
,
bool
bCanSetPassword
,
bool
bCanSetAccount
,
bool
bCanSetAccount
,
bool
bAllowPersistentStoring
,
bool
bAllowPersistentStoring
,
bool
bAllowUseSystemCredentials
);
bool
bAllowUseSystemCredentials
,
bool
bAllowSessionStoring
=
true
);
public
:
public
:
/** Specification whether some entity (realm, username, password, account)
/** Specification whether some entity (realm, username, password, account)
...
@@ -97,7 +98,8 @@ public:
...
@@ -97,7 +98,8 @@ public:
const
OUString
&
rPassword
,
const
OUString
&
rPassword
,
const
OUString
&
rAccount
,
const
OUString
&
rAccount
,
bool
bAllowPersistentStoring
,
bool
bAllowPersistentStoring
,
bool
bAllowUseSystemCredentials
);
bool
bAllowUseSystemCredentials
,
bool
bAllowSessionStoring
=
true
);
/**
/**
...
...
ucb/source/ucp/cmis/auth_provider.cxx
Dosyayı görüntüle @
298272f9
...
@@ -38,7 +38,7 @@ namespace cmis
...
@@ -38,7 +38,7 @@ namespace cmis
m_sUrl
,
m_sBindingUrl
,
OUString
(),
m_sUrl
,
m_sBindingUrl
,
OUString
(),
STD_TO_OUSTR
(
username
),
STD_TO_OUSTR
(
username
),
STD_TO_OUSTR
(
password
),
STD_TO_OUSTR
(
password
),
OUString
(),
true
,
false
);
OUString
(),
true
,
false
,
false
);
xIH
->
handle
(
xRequest
.
get
()
);
xIH
->
handle
(
xRequest
.
get
()
);
rtl
::
Reference
<
ucbhelper
::
InteractionContinuation
>
xSelection
rtl
::
Reference
<
ucbhelper
::
InteractionContinuation
>
xSelection
...
...
ucb/source/ucp/cmis/cmis_content.cxx
Dosyayı görüntüle @
298272f9
...
@@ -362,7 +362,6 @@ namespace cmis
...
@@ -362,7 +362,6 @@ namespace cmis
ONEDRIVE_SCOPE
,
ONEDRIVE_REDIRECT_URI
,
ONEDRIVE_SCOPE
,
ONEDRIVE_REDIRECT_URI
,
ONEDRIVE_CLIENT_ID
,
ONEDRIVE_CLIENT_SECRET
)
);
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
(
)
),
rUsername
,
rPassword
,
OUSTR_TO_STDSTR
(
m_aURL
.
getRepositoryId
(
)
),
false
,
oauth2Data
);
rUsername
,
rPassword
,
OUSTR_TO_STDSTR
(
m_aURL
.
getRepositoryId
(
)
),
false
,
oauth2Data
);
...
@@ -372,7 +371,8 @@ namespace cmis
...
@@ -372,7 +371,8 @@ namespace cmis
uno
::
Sequence
<
uno
::
Any
>
(
0
),
uno
::
Sequence
<
uno
::
Any
>
(
0
),
xEnv
,
xEnv
,
OUString
(
)
);
OUString
(
)
);
m_pProvider
->
registerSession
(
sSessionId
,
m_pSession
);
else
m_pProvider
->
registerSession
(
sSessionId
,
m_pSession
);
}
}
else
else
{
{
...
...
ucbhelper/source/provider/simpleauthenticationrequest.cxx
Dosyayı görüntüle @
298272f9
...
@@ -33,7 +33,8 @@ SimpleAuthenticationRequest::SimpleAuthenticationRequest(
...
@@ -33,7 +33,8 @@ SimpleAuthenticationRequest::SimpleAuthenticationRequest(
const
OUString
&
rPassword
,
const
OUString
&
rPassword
,
const
OUString
&
rAccount
,
const
OUString
&
rAccount
,
bool
bAllowPersistentStoring
,
bool
bAllowPersistentStoring
,
bool
bAllowUseSystemCredentials
)
bool
bAllowUseSystemCredentials
,
bool
bAllowSessionStoring
)
{
{
// Fill request...
// Fill request...
...
@@ -61,7 +62,8 @@ SimpleAuthenticationRequest::SimpleAuthenticationRequest(
...
@@ -61,7 +62,8 @@ SimpleAuthenticationRequest::SimpleAuthenticationRequest(
true
,
true
,
aRequest
.
HasAccount
,
aRequest
.
HasAccount
,
bAllowPersistentStoring
,
bAllowPersistentStoring
,
bAllowUseSystemCredentials
);
bAllowUseSystemCredentials
,
bAllowSessionStoring
);
}
}
...
@@ -115,17 +117,29 @@ void SimpleAuthenticationRequest::initialize(
...
@@ -115,17 +117,29 @@ void SimpleAuthenticationRequest::initialize(
bool
bCanSetPassword
,
bool
bCanSetPassword
,
bool
bCanSetAccount
,
bool
bCanSetAccount
,
bool
bAllowPersistentStoring
,
bool
bAllowPersistentStoring
,
bool
bAllowUseSystemCredentials
)
bool
bAllowUseSystemCredentials
,
bool
bAllowSessionStoring
)
{
{
setRequest
(
uno
::
makeAny
(
rRequest
)
);
setRequest
(
uno
::
makeAny
(
rRequest
)
);
// Fill continuations...
// Fill continuations...
uno
::
Sequence
<
ucb
::
RememberAuthentication
>
aRememberModes
(
unsigned
int
nSize
=
1
;
bAllowPersistentStoring
?
3
:
2
);
unsigned
int
nPos
=
0
;
aRememberModes
[
0
]
=
ucb
::
RememberAuthentication_NO
;
aRememberModes
[
1
]
=
ucb
::
RememberAuthentication_SESSION
;
if
(
bAllowSessionStoring
)
if
(
bAllowPersistentStoring
)
nSize
++
;
aRememberModes
[
2
]
=
ucb
::
RememberAuthentication_PERSISTENT
;
if
(
bAllowPersistentStoring
)
nSize
++
;
uno
::
Sequence
<
ucb
::
RememberAuthentication
>
aRememberModes
(
nSize
);
aRememberModes
[
nPos
++
]
=
ucb
::
RememberAuthentication_NO
;
if
(
bAllowSessionStoring
)
aRememberModes
[
nPos
++
]
=
ucb
::
RememberAuthentication_SESSION
;
if
(
bAllowPersistentStoring
)
aRememberModes
[
nPos
++
]
=
ucb
::
RememberAuthentication_PERSISTENT
;
m_xAuthSupplier
m_xAuthSupplier
=
new
InteractionSupplyAuthentication
(
=
new
InteractionSupplyAuthentication
(
...
...
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