From b143033ad18a2c848917ab30bb7effcd62e483f0 Mon Sep 17 00:00:00 2001 From: Lewin Bormann Date: Wed, 28 Sep 2016 21:45:10 +0200 Subject: [PATCH] fix(service_account): Use correct base64 encoding --- src/service_account.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/service_account.rs b/src/service_account.rs index a9dad15ad..960dc8f96 100644 --- a/src/service_account.rs +++ b/src/service_account.rs @@ -36,7 +36,7 @@ const GOOGLE_RS256_HEAD: &'static str = "{\"alg\":\"RS256\",\"typ\":\"JWT\"}"; // Encodes s as Base64 fn encode_base64>(s: T) -> String { - base64::encode(s.as_ref()) + base64::encode_mode(s.as_ref(), base64::Base64Mode::UrlSafe) } // Calculates the SHA256 hash.