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
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()?
Reply all
Reply to author
Forward
0 new messages