mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-12-22 18:48:00 +01:00
Fix SASL X-OAUTH2: Use Base64.encode() instead of decode()
This commit is contained in:
parent
90969e252a
commit
180a3bb4ca
1 changed files with 1 additions and 1 deletions
|
@ -73,7 +73,7 @@ public class SASLXOauth2Mechanism extends SASLMechanism {
|
|||
@Override
|
||||
protected byte[] getAuthenticationText() throws SmackException {
|
||||
// base64("\0" + user_name + "\0" + oauth_token)
|
||||
return Base64.decode('\u0000' + authenticationId + '\u0000' + password);
|
||||
return Base64.encode(toBytes('\u0000' + authenticationId + '\u0000' + password));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue