mirror of
https://github.com/rclone/rclone.git
synced 2025-01-11 00:40:03 +01:00
jottacloud: use RawURLEncoding when decoding base64 encoded login token - fixes #3945
This commit is contained in:
parent
481c8a40ea
commit
4a8b548add
@ -253,7 +253,7 @@ func shouldRetry(resp *http.Response, err error) (bool, error) {
|
||||
|
||||
// doAuth runs the actual token request
|
||||
func doAuth(ctx context.Context, srv *rest.Client, loginTokenBase64 string, m configmap.Mapper) (token oauth2.Token, err error) {
|
||||
loginTokenBytes, err := base64.StdEncoding.DecodeString(loginTokenBase64)
|
||||
loginTokenBytes, err := base64.RawURLEncoding.DecodeString(loginTokenBase64)
|
||||
if err != nil {
|
||||
return token, err
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user