yang-g
c5eccd45f4
Fix clock type mismatch
9 years ago
Julien Boeuf
fe4c3f4f14
Renaming jwt_credentials to service_account_jwt_access_credentials.
10 years ago
yang-g
76fcaeeeb5
resolve comments
10 years ago
yang-g
be5f059219
Add oauth2_auth_token test case in interop test
10 years ago
Craig Tiller
143e7bf0cf
Introduce a clock type field onto gpr_timespec.
...
Use it to validate that arithmetic on time types makes even some vague
kind of sense.
10 years ago
jboeuf
69cb6b41c8
Backport of pull request #2313 into release-0_10.
10 years ago
Julien Boeuf
b037bb6488
Adding tests and fixing mem leak in default creds.
10 years ago
yang-g
8068f86974
Add a unit test
10 years ago
Julien Boeuf
2805be1aa5
Adding support for raw access token credentials.
10 years ago
Craig Tiller
991edad25c
SSL refcounting fixes
...
Handle the case where we recreate an auth context.
Add (opt-in) debugging for refcounts on auth contexts.
10 years ago
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.
10 years ago
Julien Boeuf
c141772c61
Fixing this one as well.
10 years ago
Julien Boeuf
3e55b9fe62
Base64 decode improvements.
...
- Allow ablity to specify the length for decoding.
- Allow for non-padded encodings to be decoded properly.
10 years ago
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.
10 years ago
Julien Boeuf
a701ade70a
Fixing ssl auth context.
10 years ago
Craig Tiller
9a57633233
clang-format affected files
10 years ago
Masood Malekghassemi
701af6031f
Expose gpr_asprintf and gpr_strdup
10 years ago
Nicolas "Pixel" Noble
8535263b94
Fixing tools compilation.
10 years ago
Craig Tiller
fa275a97b9
Label all iomgr objects
...
This allows a list of them to be dumped to isolate where memory leaks
are occuring.
10 years ago
Craig Tiller
06bac34df0
Properly integrate credentials metadata delivery
10 years ago
David Garcia Quintas
7978a04d50
Removed non-ISO usage of __FUNCTION__.
...
Fixes #1843
10 years ago
Julien Boeuf
75c9b6f495
Removing mdctx from the credentials.
10 years ago
Julien Boeuf
83b029726b
Addressing comments.
10 years ago
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.
10 years ago
Craig Tiller
9d9735f7d9
Port endpoint tests to pollsets
10 years ago
Nicolas Noble
2e3639302a
Making the gRPC C tests building under Windows.
10 years ago
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.
10 years ago
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.
10 years ago
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.
10 years ago
Julien Boeuf
3371cdf918
Fixing !strcmp in the tests.
10 years ago
Julien Boeuf
75516068fa
Adding refresh token parsing
...
This is the first step for refresh token credentials.
10 years ago
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>
10 years ago
Craig Tiller
8ad8a41a84
Introduce slowdown factor for unit test deadlines
...
Dramatically lowers (eliminates maybe?) false negatives from ?SAN runs.
10 years ago
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.
10 years ago
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.
10 years ago
Julien Boeuf
25380de72d
Adding tool for generating JWTs on the command line.
10 years ago
Julien Boeuf
f47a5cb93d
Implementing JWT credentials (a.k.a JWT ID Tokens).
...
- Not tested end to end yet
10 years ago
Julien Boeuf
90bd7c4c4d
Fixing sprintf and a few other things.
10 years ago
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.
10 years ago
Craig Tiller
190d360def
Add missing new-lines at end of file
10 years ago
Craig Tiller
0605995e55
Update copyright to 2015
10 years ago
Nicolas "Pixel" Noble
213ed91850
Re-enabling errors on warning, disabling unused parameter warning, and fixing all subsequent errors.
10 years ago
Nicolas Noble
8c2be9bbff
Addressing latest comments.
10 years ago
Nicolas Noble
e04455a7ff
Addressing comments.
10 years ago
Yang Gao
5fd0d29dfe
run clang-format
10 years ago
Craig Tiller
82df7446ae
Remove use of sprintf
10 years ago
Craig Tiller
485d77628d
Move string.h to internal code
10 years ago
Nicolas Noble
614c2bf99b
Replacing cJSON with our own code instead.
10 years ago
Julien Boeuf
8fbcc4391e
Changing the SSL (Server) Credentials API.
...
- Changed the unsigned char * + size to NULL terminated strings which
makes sense for the PEM format. I may change TSI later (but the impact
will hopefully be much more limited).
- Added a way to pass multiple key/cert pairs to servers which is needed
when hosting more than one domain.
- Removed the C++ SSL credentials tests as we are going to have an
option to not specify the roots which will then be derived from the
environment (well-known platform dependent locations and/or
environment variable).
- Fixed the php build which is the only one added in the run_test.py.
This change will certainly break node, python and ruby.
10 years ago
Julien Boeuf
b222b4d978
Changing size type in Transport Security (TSI) from uint32_t to size_t:
...
Will remove grpc impedance mismatch.
10 years ago