Add attr inspired by docker

This commit is contained in:
mr
2026-03-30 10:21:09 +02:00
parent 45f2351b2f
commit a4ab3285e3
7 changed files with 37 additions and 15 deletions

View File

@@ -203,7 +203,7 @@ func ExtractTokenInfo(request http.Request) (string, string, []string) {
if reqToken != "" {
token := strings.Split(reqToken, ".")
if len(token) > 2 {
bytes, err := base64.StdEncoding.DecodeString(token[2])
bytes, err := base64.RawURLEncoding.DecodeString(token[1])
if err != nil {
return "", "", []string{}
}