Commit Graph

75 Commits

Author SHA1 Message Date
Julien Boeuf 0b1b1a5999 Merge branch 'master' of github.com:grpc/grpc into flexible_default_creds 2015-07-10 08:35:04 -07:00
yang-g 3315a845ef Merge remote-tracking branch 'upstream/master' into security_context2 2015-07-09 12:32:48 -07:00
Julien Boeuf a6b9a891a0 Merge branch 'master' of github.com:grpc/grpc into oauth2_access_token 2015-07-08 20:40:13 -07:00
Julien Boeuf ea94e46b0d Merge branch 'master' of github.com:grpc/grpc into jwt_verifier 2015-07-08 16:24:31 -07:00
Julien Boeuf b037bb6488 Adding tests and fixing mem leak in default creds. 2015-07-08 14:58:14 -07:00
yang-g ab575d46f7 merge head and resolve conflict 2015-07-07 23:33:40 -07:00
Julien Boeuf 607359467f Merge branch 'master' of https://github.com/grpc/grpc into slice_to_cstring 2015-07-08 01:04:46 +02:00
yang-g 8068f86974 Add a unit test 2015-07-06 15:05:48 -07:00
Nicolas Noble 6ab0de15ea Merge pull request #2216 from jboeuf/unpadded_base64
Base64 decode improvements
2015-07-01 09:26:21 -07:00
Julien Boeuf 272814feea Merge branch 'master' of https://github.com/grpc/grpc into slice_to_cstring 2015-07-01 18:22:32 +02:00
Julien Boeuf 2805be1aa5 Adding support for raw access token credentials. 2015-07-01 02:47:18 -07:00
Craig Tiller 991edad25c SSL refcounting fixes
Handle the case where we recreate an auth context.

Add (opt-in) debugging for refcounts on auth contexts.
2015-06-30 11:40:41 -07:00
Julien Boeuf feca1bf06c Adding JWT verifier.
Still missing:
- Caching of the already checked JWTs (although it could be done at an
  upper layer).
- Caching of the jwks_uri to avoid 2 roundtrips for each verification.
2015-06-30 11:36:03 +02:00
Julien Boeuf c141772c61 Fixing this one as well. 2015-06-29 20:30:21 +02:00
Julien Boeuf 3e55b9fe62 Base64 decode improvements.
- Allow ablity to specify the length for decoding.
- Allow for non-padded encodings to be decoded properly.
2015-06-25 18:11:44 +02:00
Julien Boeuf 5b1fdc5c3d Merge branch 'master' of https://github.com/grpc/grpc into ssl_auth_context_fix 2015-06-22 16:47:01 +02:00
Craig Tiller 7552f0f958 Ensure tests are built during run_tests runs
The issue remains that we don't test our tools, but at least we test
that they compile.
2015-06-19 17:46:20 -07:00
Julien Boeuf a701ade70a Fixing ssl auth context. 2015-06-18 15:23:40 +02:00
Craig Tiller 9a57633233 clang-format affected files 2015-06-17 10:21:49 -07:00
Craig Tiller 2c42ef3eb3 Merge github.com:grpc/grpc into we-dont-need-no-backup 2015-06-05 07:09:56 -07:00
Masood Malekghassemi 701af6031f Expose gpr_asprintf and gpr_strdup 2015-06-03 15:24:24 -07:00
Craig Tiller 14556ecf8c Merge branch 'count-the-things' into we-dont-need-no-backup
Conflicts:
	Makefile
	src/core/iomgr/pollset_posix.c
	src/core/surface/call.c
	src/core/surface/channel.c
	src/core/surface/server.c
	src/python/src/grpc/_adapter/_low_test.py
	tools/doxygen/Doxyfile.core.internal
2015-06-01 20:31:27 -07:00
Craig Tiller 3d67c7cf45 Merge github.com:grpc/grpc into count-the-things
Conflicts:
	src/core/iomgr/fd_posix.h
	src/core/iomgr/iomgr.c
2015-06-01 20:10:13 -07:00
Craig Tiller 8e0b08a33d Merge branch 'count-the-things' into we-dont-need-no-backup 2015-06-01 17:04:17 -07:00
Nicolas "Pixel" Noble 8535263b94 Fixing tools compilation. 2015-06-02 02:01:51 +02:00
Craig Tiller fa275a97b9 Label all iomgr objects
This allows a list of them to be dumped to isolate where memory leaks
are occuring.
2015-06-01 13:55:54 -07:00
Craig Tiller 06bac34df0 Properly integrate credentials metadata delivery 2015-06-01 12:55:57 -07:00
Craig Tiller e5cacfa296 Merge branch 'you-complete-me' into we-dont-need-no-backup 2015-06-01 08:49:01 -07:00
David Garcia Quintas 7978a04d50 Removed non-ISO usage of __FUNCTION__.
Fixes #1843
2015-05-31 16:07:45 -07:00
Craig Tiller f29a6c107d Merge branch 'but-maybe-i-want-to-poll' into we-dont-need-no-backup
Conflicts:
	Makefile
	build.json
	src/core/security/credentials.c
	src/core/security/credentials.h
	src/core/surface/call.c
	test/core/end2end/tests/request_response_with_payload_and_call_creds.c
	tools/doxygen/Doxyfile.c++
	tools/doxygen/Doxyfile.core
2015-05-30 11:11:05 -07:00
Julien Boeuf 3824209a49 Merge branch 'master' of github.com:grpc/grpc into server_auth_context 2015-05-29 22:00:44 -07:00
Julien Boeuf 75c9b6f495 Removing mdctx from the credentials. 2015-05-29 13:12:12 -07:00
Julien Boeuf 83b029726b Addressing comments. 2015-05-20 22:50:34 -07:00
Julien Boeuf 84d964a8df API for auth context and server-side secure transport only impl.
Still TODO:
- a way to plug a metadata processing (somewhat elsewhere but did not
  one to overload this already large PR).
- plug-in the auth context on the client side.
- Better end to end testing.
2015-05-20 07:48:48 +02:00
Craig Tiller 9d9735f7d9 Port endpoint tests to pollsets 2015-05-13 10:46:01 -07:00
Nicolas Noble 2e3639302a Making the gRPC C tests building under Windows. 2015-05-09 08:25:26 +02:00
Julien Boeuf 7d1d9ca7fa Refactoring of core security to remove the factories.
- Renamed security_context -> security_connector.
- Credentials are now responsible for creating their own connectors.
2015-04-17 23:41:46 -07:00
Julien Boeuf 28d75d9349 Adding option to add a null terminator when loading a file.
- This will take care of a potential issue with default credentials
  where the slice pointer is casted as const char * for APIs that need a
  null terminated string.
2015-04-15 15:56:38 -07:00
Julien Boeuf 9835cf0234 Adding refresh token credentials.
- The google default credentials now work with the cloud SDK.
- Verified end to end with print_default_credentials and fetch_oauth2
  tools.
2015-03-09 16:56:44 -07:00
Julien Boeuf 3371cdf918 Fixing !strcmp in the tests. 2015-03-09 10:32:19 -07:00
Julien Boeuf 75516068fa Adding refresh token parsing
This is the first step for refresh token credentials.
2015-03-09 10:20:40 -07:00
Ronnie Sahlberg 2ad8d21158 strcmp: change all !str[n]cmp to str[n]cmp == 0
Change all !str[n]cmp to be str[n]cmp == 0 consistently across the codebase.

Issue #231

Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2015-03-07 08:39:22 -08:00
Craig Tiller 8ad8a41a84 Introduce slowdown factor for unit test deadlines
Dramatically lowers (eliminates maybe?) false negatives from ?SAN runs.
2015-02-25 08:36:40 -08:00
Julien Boeuf c66f2a816e Addressing iniitial feedback.
- Renaming default credentials -> google default credentials.
- Various other things in cpp:
  - Adding Cpp wrapping for JWT Tokens.
  - Renaming ComposeCredentials -> CompositeCredentials.
2015-02-23 13:00:36 -08:00
Julien Boeuf cd9b1c850d Added support for default credentials.
- Tested with new tool (print_default_creds_token) on:
  - workstation for env var and well known place.
  - GCE for compute engine default creds.
- I'd prefer the grpc_default_credentials_create() API to remain
  synchronous even though there may be an async call for gce detection
  on which we block.
2015-02-21 21:57:42 -08:00
Julien Boeuf 25380de72d Adding tool for generating JWTs on the command line. 2015-02-19 19:17:32 -08:00
Julien Boeuf f47a5cb93d Implementing JWT credentials (a.k.a JWT ID Tokens).
- Not tested end to end yet
2015-02-19 17:29:41 -08:00
Julien Boeuf 90bd7c4c4d Fixing sprintf and a few other things. 2015-02-18 18:53:18 -08:00
Craig Tiller 9be83eec1d Fix use-after-free.
Transport and channel have different lifetimes, but share a metadata
context.

Make the metadata context ref counted, and have transport take a ref.
2015-02-18 14:16:15 -08:00
Craig Tiller 190d360def Add missing new-lines at end of file 2015-02-18 09:23:38 -08:00