oauth: never use base64 padding when returning tokens to applications
authorWilliam Pitcock <nenolod@dereferenced.org>
Thu, 14 Feb 2019 01:05:25 +0000 (01:05 +0000)
committerWilliam Pitcock <nenolod@dereferenced.org>
Thu, 14 Feb 2019 01:10:04 +0000 (01:10 +0000)
commite9ef4b8da627e516d5f1a2b742c6dafa65232098
tree2f598a2f9a7abce6cd75fd2efc00a606ea1f6f87
parent1ef474186141354bba03f28850fdeb4c1945d912
oauth: never use base64 padding when returning tokens to applications

The normal Base64 alphabet uses the equals sign (=) as a padding character.  Since
Base64 strings are self-synchronizing, padding characters are unnecessary, so don't
generate them in the first place.
lib/pleroma/web/oauth/app.ex
lib/pleroma/web/oauth/authorization.ex
lib/pleroma/web/oauth/oauth_controller.ex
lib/pleroma/web/oauth/token.ex