William Petit
22fda4ed54
All checks were successful
Cadoles/bouncer/pipeline/pr-develop This commit looks good
18 lines
316 B
Go
18 lines
316 B
Go
package authn
|
|
|
|
type User struct {
|
|
Subject string `json:"subject" expr:"subject"`
|
|
Attrs map[string]any `json:"attrs" expr:"attrs"`
|
|
}
|
|
|
|
func NewUser(subject string, attrs map[string]any) *User {
|
|
if attrs == nil {
|
|
attrs = make(map[string]any)
|
|
}
|
|
|
|
return &User{
|
|
Subject: subject,
|
|
Attrs: attrs,
|
|
}
|
|
}
|