-
Notifications
You must be signed in to change notification settings - Fork 349
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's see what this does
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @stefan-improbable ... much appreciated!! .. I left just the one comment.
Also, any chance we can update the README as well please ..
zap.String("email", user.email), | ||
zap.String("resource", resourceURL), | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
given Claims is type Claims map[string]interface{}
.. we could just and fail quick .. What do you think?
if _, found := user.claims[claimName]; !found {
r.log.Warn("the token does not have the claim", errFields...)
return false
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, I've added the statement here.
@gambol99 I've added some info to README |
cheers @stefan-improbable ... LGTM |
@gambol99 thanks for the quick review! |
This fixes #314