This commit 1. Implements the security policies that does not require JNI. This includes a security policy that always allow connection and a security policy that allows connection when remote UID is the same us local UID. 2. Add security policy as an argument in our interfaces. Old interfaces are temporarily preserved so compilation will not suddenly break when we import the code to internal repo. 3. Pumping the security policy from the public interfaces to the code that handles SETUP_TRANSPORT transaction. 4. Abort the transport setup when the security policy is not satisfied. Since meaningful tests will require to be run in real Android environment, we will implement it later. For now, this change is manually tested with example APKs. For security policies that need to invoke Java to check authorization, we will implement them in later. |
||
|---|---|---|
| .. | ||
| android | ||
| cpp | ||
| csharp | ||
| node | ||
| objective-c | ||
| php | ||
| protos | ||
| python | ||
| ruby | ||
| README.md | ||
README.md
Examples
This directory contains examples for all the C-based gRPC implementations. Each language subdirectory contains a Hello World example and more:
For a complete list of supported languages, see Supported languages.
For comprehensive documentation, including an Introduction to gRPC and tutorials that use this example code, visit grpc.io.