aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/security/credentials.c
diff options
context:
space:
mode:
authorGravatar Julien Boeuf <jboeuf@google.com>2015-06-22 16:46:20 +0200
committerGravatar Julien Boeuf <jboeuf@google.com>2015-06-30 11:36:03 +0200
commitfeca1bf06cf6ffd8d45b86c1c51f798bad9c52f4 (patch)
tree1abac8dfc24d289a47859b2e64d1803d045c365a /src/core/security/credentials.c
parenta6de02f5ef15646c12f495f11c410326d34e5dfe (diff)
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.
Diffstat (limited to 'src/core/security/credentials.c')
-rw-r--r--src/core/security/credentials.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core/security/credentials.c b/src/core/security/credentials.c
index cf663faf2d..c3c3e8fe01 100644
--- a/src/core/security/credentials.c
+++ b/src/core/security/credentials.c
@@ -461,7 +461,6 @@ typedef struct {
grpc_credentials_md_store *access_token_md;
gpr_timespec token_expiration;
grpc_httpcli_context httpcli_context;
- grpc_pollset_set pollset_set;
grpc_fetch_oauth2_func fetch_func;
} grpc_oauth2_token_fetcher_credentials;
@@ -635,7 +634,7 @@ static void init_oauth2_token_fetcher(grpc_oauth2_token_fetcher_credentials *c,
gpr_mu_init(&c->mu);
c->token_expiration = gpr_inf_past;
c->fetch_func = fetch_func;
- grpc_pollset_set_init(&c->pollset_set);
+ grpc_httpcli_context_init(&c->httpcli_context);
}
/* -- ComputeEngine credentials. -- */