Set the username in the server when using tokens.
This avoids the need to pass the username in the URL without requiring the client to parse tokens.
This commit is contained in:
1 parent
c4d46d20aa
commit
de3a016f4d
11 files changed
+90
-64
No files matched your search
@@ -586,7 +586,7 @@ func checkGroupPermissions(w http.ResponseWriter, r *http.Request, groupname str
|
||||
return false
|
||||
}
|
||||
|
||||
p, err := desc.GetPermission(groupname,
|
||||
_, p, err := desc.GetPermission(groupname,
|
||||
group.ClientCredentials{
|
||||
Username: user,
|
||||
Password: pass,
|
||||
|
||||
Reference in new issue
Block a user