grpc/examples
Ming-Chuan 332713a35a
Implement BinderTransport SecurityPolicies that requires no JNI (#27573)
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.
2021-10-07 00:21:51 +08:00
..
android Implement BinderTransport SecurityPolicies that requires no JNI (#27573) 2021-10-07 00:21:51 +08:00
cpp Add a test for a (now-illegal) build file construct (#27602) 2021-10-06 07:43:59 -07:00
csharp Reformat source 2020-10-21 15:40:01 -07:00
node Update greeter_client.js (#25802) 2021-07-28 09:37:45 -07:00
objective-c Add a test for a (now-illegal) build file construct (#27602) 2021-10-06 07:43:59 -07:00
php deleted require paths, update grpc to v1.39.0 (#26841) 2021-08-06 11:09:57 -07:00
protos Add a test for a (now-illegal) build file construct (#27602) 2021-10-06 07:43:59 -07:00
python Add a test for a (now-illegal) build file construct (#27602) 2021-10-06 07:43:59 -07:00
ruby Docs: fix links to grpc.io tutorial pages 2020-06-16 08:47:24 -04:00
README.md Examples README: add link to android example and fix link text 2020-11-19 16:58:59 -05:00

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.