AuthMetadataProcessor and AuthContext: what is the purpose of adding a property of consumed metadata
84 views
Skip to first unread message
joest...@gmail.com
unread,
Feb 15, 2017, 12:57:46 PM2/15/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to grpc.io
Hi,
After figuring out how to achieve authorization and looking at the test code in grpc source, i notice that in the AuthMetadataProcessor, the consumed metadata is added as a property to AuthContext. What is the purpose of this AuthContext? Is it used as an authorization cache? Or is it purely just to get access to metadata that has already been consumed? What situations would you call GetProperty()?