Skip to content
This repository has been archived by the owner on Mar 19, 2024. It is now read-only.

Allow special chars in password #114

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -47,6 +47,7 @@ public void applyTo(OwnCloudClient client) {
client.getParams().setParameter(AuthPolicy.AUTH_SCHEME_PRIORITY, authPrefs);

client.getParams().setAuthenticationPreemptive(true);
client.getParams().setCredentialCharset("UTF-8");
client.getState().setCredentials(
AuthScope.ANY,
new UsernamePasswordCredentials(mUsername, mPassword)
Expand Down
Expand Up @@ -49,6 +49,7 @@ public void applyTo(OwnCloudClient client) {
client.getParams().setParameter(AuthPolicy.AUTH_SCHEME_PRIORITY, authPrefs);

client.getParams().setAuthenticationPreemptive(true);
client.getParams().setCredentialCharset("UTF-8");
client.getState().setCredentials(
AuthScope.ANY,
new BearerCredentials(mAccessToken)
Expand Down
Expand Up @@ -41,6 +41,7 @@ public OwnCloudSamlSsoCredentials(String username, String sessionCookie) {
@Override
public void applyTo(OwnCloudClient client) {
client.getParams().setAuthenticationPreemptive(false);
client.getParams().setCredentialCharset("UTF-8");
client.getParams().setCookiePolicy(CookiePolicy.BROWSER_COMPATIBILITY);
client.setFollowRedirects(false);

Expand Down