go-oauth2 / oauth2

OAuth 2.0 server library for the Go programming language.
https://pkg.go.dev/github.com/go-oauth2/oauth2/v4
MIT License
3.31k stars 563 forks source link

use base64.RawURLEncoding instead of trimming the padding #240

Open bokunodev opened 1 year ago

bokunodev commented 1 year ago

from the doc:

RawURLEncoding is the unpadded alternate base64 encoding defined in RFC 4648. It is typically used in URLs and file names. This is the same as URLEncoding but omits padding characters.

relevant code: https://github.com/go-oauth2/oauth2/blob/8f0d487dd1f4490d30941f7f7073d936a5fd1bc0/const.go#L70