Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow special chars in password #114

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.
+3 −0
Diff settings

Always

Just for now

@@ -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)
@@ -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)
@@ -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);

ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.