bouncer/internal/proxy/director/layer/authn/user.go

18 lines
293 B
Go

package authn
type User struct {
Subject string `json:"subject"`
Attrs map[string]any `json:"attributes"`
}
func NewUser(subject string, attrs map[string]any) *User {
if attrs == nil {
attrs = make(map[string]any)
}
return &User{
Subject: subject,
Attrs: attrs,
}
}