add username to our trip

This commit is contained in:
mr
2024-12-04 12:14:55 +01:00
parent fd01f535a1
commit 1fcbc7c08a
10 changed files with 43 additions and 18 deletions

View File

@@ -23,3 +23,7 @@ func (r *Rule) GenerateID() {
func (d *Rule) GetAccessor(username string, peerID string, groups []string, caller *tools.HTTPCaller) utils.Accessor {
return New(tools.RULE, username, peerID, groups, caller)
}
func (d *Rule) VerifyAuth(username string, peerID string, groups []string) bool {
return true
}