GRPC Core 0.10.0.0

- Main Page
- Data Structures
- Files

- File List
- Globals

All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
credentials.h
Go to the documentation of this file.
1 /*
2 *
3 * Copyright 2015, Google Inc.
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are
8 * met:
9 *
10 * * Redistributions of source code must retain the above copyright
11 * notice, this list of conditions and the following disclaimer.
12 * * Redistributions in binary form must reproduce the above
13 * copyright notice, this list of conditions and the following disclaimer
14 * in the documentation and/or other materials provided with the
15 * distribution.
16 * * Neither the name of Google Inc. nor the names of its
17 * contributors may be used to endorse or promote products derived from
18 * this software without specific prior written permission.
19 *
20 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
21 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
22 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
23 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
24 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
25 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
26 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
30 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31 *
32 */
33
34 #ifndef GRPC_INTERNAL_CORE_SECURITY_CREDENTIALS_H
35 #define GRPC_INTERNAL_CORE_SECURITY_CREDENTIALS_H
36
37 #include "src/core/transport/stream_op.h"
38 #include <grpc/grpc.h>
39 #include <grpc/grpc_security.h>
40 #include <grpc/support/sync.h>
41
42 #include "src/core/httpcli/httpcli.h"
43 #include "src/core/security/json_token.h"
44 #include "src/core/security/security_connector.h"
45
46 struct grpc_httpcli_response;
47
48 /* --- Constants. --- */
49
50 typedef enum {
51 GRPC_CREDENTIALS_OK = 0,
52 GRPC_CREDENTIALS_ERROR
53 } grpc_credentials_status;
54
55 #define GRPC_FAKE_TRANSPORT_SECURITY_TYPE "fake"
56
57 #define GRPC_CREDENTIALS_TYPE_SSL "Ssl"
58 #define GRPC_CREDENTIALS_TYPE_OAUTH2 "Oauth2"
59 #define GRPC_CREDENTIALS_TYPE_JWT "Jwt"
60 #define GRPC_CREDENTIALS_TYPE_IAM "Iam"
61 #define GRPC_CREDENTIALS_TYPE_COMPOSITE "Composite"
62 #define GRPC_CREDENTIALS_TYPE_FAKE_TRANSPORT_SECURITY "FakeTransportSecurity"
63
64 #define GRPC_AUTHORIZATION_METADATA_KEY "Authorization"
65 #define GRPC_IAM_AUTHORIZATION_TOKEN_METADATA_KEY \
66 "x-goog-iam-authorization-token"
67 #define GRPC_IAM_AUTHORITY_SELECTOR_METADATA_KEY "x-goog-iam-authority-selector"
68
69 #define GRPC_GOOGLE_CLOUD_SDK_CONFIG_DIRECTORY "gcloud"
70 #define GRPC_GOOGLE_WELL_KNOWN_CREDENTIALS_FILE \
71 "application_default_credentials.json"
72
73 #define GRPC_SECURE_TOKEN_REFRESH_THRESHOLD_SECS 60
74
75 #define GRPC_COMPUTE_ENGINE_METADATA_HOST "metadata"
76 #define GRPC_COMPUTE_ENGINE_METADATA_TOKEN_PATH \
77 "/computeMetadata/v1/instance/service-accounts/default/token"
78
79 #define GRPC_GOOGLE_OAUTH2_SERVICE_HOST "www.googleapis.com"
80 #define GRPC_GOOGLE_OAUTH2_SERVICE_TOKEN_PATH "/oauth2/v3/token"
81
82 #define GRPC_SERVICE_ACCOUNT_POST_BODY_PREFIX \
83 "grant_type=urn%3Aietf%3Aparams%3Aoauth%3Agrant-type%3Ajwt-bearer&" \
84 "assertion="
85
86 #define GRPC_REFRESH_TOKEN_POST_BODY_FORMAT_STRING \
87 "client_id=%s&client_secret=%s&refresh_token=%s&grant_type=refresh_token"
88
89 /* --- grpc_credentials_md. --- */
90
91 typedef struct {
92 gpr_slice key;
93 gpr_slice value;
94 } grpc_credentials_md;
95
96 typedef struct {
97 grpc_credentials_md *entries;
98 size_t num_entries;
99 size_t allocated;
100 gpr_refcount refcount;
101 } grpc_credentials_md_store;
102
103 grpc_credentials_md_store *grpc_credentials_md_store_create(
104 size_t initial_capacity);
105
106 /* Will ref key and value. */
107 void grpc_credentials_md_store_add(grpc_credentials_md_store *store,
108 gpr_slice key, gpr_slice value);
109 void grpc_credentials_md_store_add_cstrings(grpc_credentials_md_store *store,
110 const char *key, const char *value);
111 grpc_credentials_md_store *grpc_credentials_md_store_ref(
112 grpc_credentials_md_store *store);
113 void grpc_credentials_md_store_unref(grpc_credentials_md_store *store);
114
115 /* --- grpc_credentials. --- */
116
117 /* Creates a fake transport security credentials object for testing. */
118 grpc_credentials *grpc_fake_transport_security_credentials_create(void);
119 /* Creates a fake server transport security credentials object for testing. */
120 grpc_server_credentials *grpc_fake_transport_security_server_credentials_create(
121 void);
122
123 /* It is the caller's responsibility to gpr_free the result if not NULL. */
124 char *grpc_get_well_known_google_credentials_file_path(void);
125
126 typedef void (*grpc_credentials_metadata_cb)(void *user_data,
127 grpc_credentials_md *md_elems,
128 size_t num_md,
129 grpc_credentials_status status);
130
131 typedef struct {
132 void (*destroy)(grpc_credentials *c);
133 int (*has_request_metadata)(const grpc_credentials *c);
134 int (*has_request_metadata_only)(const grpc_credentials *c);
135 void (*get_request_metadata)(grpc_credentials *c, grpc_pollset *pollset,
136 const char *service_url,
137 grpc_credentials_metadata_cb cb,
138 void *user_data);
139 grpc_security_status (*create_security_connector)(
140 grpc_credentials *c, const char *target, const grpc_channel_args *args,
141 grpc_credentials *request_metadata_creds,
142 grpc_channel_security_connector **sc, grpc_channel_args **new_args);
143 } grpc_credentials_vtable;
144
145 struct grpc_credentials {
146 const grpc_credentials_vtable *vtable;
147 const char *type;
148 gpr_refcount refcount;
149 };
150
151 grpc_credentials *grpc_credentials_ref(grpc_credentials *creds);
152 void grpc_credentials_unref(grpc_credentials *creds);
153 int grpc_credentials_has_request_metadata(grpc_credentials *creds);
154 int grpc_credentials_has_request_metadata_only(grpc_credentials *creds);
155 void grpc_credentials_get_request_metadata(grpc_credentials *creds,
156 grpc_pollset *pollset,
157 const char *service_url,
158 grpc_credentials_metadata_cb cb,
159 void *user_data);
160
161 /* Creates a security connector for the channel. May also create new channel
162 args for the channel to be used in place of the passed in const args if
163 returned non NULL. In that case the caller is responsible for destroying
164 new_args after channel creation. */
165 grpc_security_status grpc_credentials_create_security_connector(
166 grpc_credentials *creds, const char *target, const grpc_channel_args *args,
167 grpc_credentials *request_metadata_creds,
168 grpc_channel_security_connector **sc, grpc_channel_args **new_args);
169
170 typedef struct {
171 grpc_credentials **creds_array;
172 size_t num_creds;
173 } grpc_credentials_array;
174
175 const grpc_credentials_array *grpc_composite_credentials_get_credentials(
176 grpc_credentials *composite_creds);
177
178 /* Returns creds if creds is of the specified type or the inner creds of the
179 specified type (if found), if the creds is of type COMPOSITE.
180 If composite_creds is not NULL, *composite_creds will point to creds if of
181 type COMPOSITE in case of success. */
182 grpc_credentials *grpc_credentials_contains_type(
183 grpc_credentials *creds, const char *type,
184 grpc_credentials **composite_creds);
185
186 /* Exposed for testing only. */
187 grpc_credentials_status
188 grpc_oauth2_token_fetcher_credentials_parse_server_response(
189 const struct grpc_httpcli_response *response,
190 grpc_credentials_md_store **token_md, gpr_timespec *token_lifetime);
191 void grpc_flush_cached_google_default_credentials(void);
192
193 /* Simulates an oauth2 token fetch with the specified value for testing. */
194 grpc_credentials *grpc_fake_oauth2_credentials_create(
195 const char *token_md_value, int is_async);
196
197 /* Private constructor for jwt credentials from an already parsed json key.
198 Takes ownership of the key. */
199 grpc_credentials *
200 grpc_service_account_jwt_access_credentials_create_from_auth_json_key(
201 grpc_auth_json_key key, gpr_timespec token_lifetime);
202
203 /* Private constructor for refresh token credentials from an already parsed
204 refresh token. Takes ownership of the refresh token. */
205 grpc_credentials *grpc_refresh_token_credentials_create_from_auth_refresh_token(
206 grpc_auth_refresh_token token);
207
208 /* --- grpc_server_credentials. --- */
209
210 typedef struct {
211 void (*destroy)(grpc_server_credentials *c);
212 grpc_security_status (*create_security_connector)(
213 grpc_server_credentials *c, grpc_security_connector **sc);
214 } grpc_server_credentials_vtable;
215
216 struct grpc_server_credentials {
217 const grpc_server_credentials_vtable *vtable;
218 const char *type;
219 };
220
221 grpc_security_status grpc_server_credentials_create_security_connector(
222 grpc_server_credentials *creds, grpc_security_connector **sc);
223
224 /* -- Ssl credentials. -- */
225
226 typedef struct {
227 grpc_credentials base;
228 grpc_ssl_config config;
229 } grpc_ssl_credentials;
230
231 typedef struct {
232 grpc_server_credentials base;
233 grpc_ssl_server_config config;
234 } grpc_ssl_server_credentials;
235
236 /* -- Jwt credentials -- */
237
238 typedef struct {
239 grpc_credentials base;
240
241 /* Have a simple cache for now with just 1 entry. We could have a map based on
242 the service_url for a more sophisticated one. */
243 gpr_mu cache_mu;
244 struct {
245 grpc_credentials_md_store *jwt_md;
246 char *service_url;
247 gpr_timespec jwt_expiration;
248 } cached;
249
250 grpc_auth_json_key key;
251 gpr_timespec jwt_lifetime;
252 } grpc_service_account_jwt_access_credentials;
253
254 /* -- Oauth2TokenFetcher credentials --
255
256 This object is a base for credentials that need to acquire an oauth2 token
257 from an http service. */
258
259 typedef struct grpc_credentials_metadata_request
260 grpc_credentials_metadata_request;
261
262 typedef void (*grpc_fetch_oauth2_func)(grpc_credentials_metadata_request *req,
263 grpc_httpcli_context *http_context,
264 grpc_pollset *pollset,
265 grpc_httpcli_response_cb response_cb,
266 gpr_timespec deadline);
267
268 typedef struct {
269 grpc_credentials base;
270 gpr_mu mu;
271 grpc_credentials_md_store *access_token_md;
272 gpr_timespec token_expiration;
273 grpc_httpcli_context httpcli_context;
274 grpc_fetch_oauth2_func fetch_func;
275 } grpc_oauth2_token_fetcher_credentials;
276
277 /* -- ServiceAccount credentials. -- */
278
279 typedef struct {
280 grpc_oauth2_token_fetcher_credentials base;
281 grpc_auth_json_key key;
282 char *scope;
283 gpr_timespec token_lifetime;
284 } grpc_service_account_credentials;
285
286 /* -- RefreshToken credentials. -- */
287
288 typedef struct {
289 grpc_oauth2_token_fetcher_credentials base;
290 grpc_auth_refresh_token refresh_token;
291 } grpc_refresh_token_credentials;
292
293 /* -- Oauth2 Access Token credentials. -- */
294
295 typedef struct {
296 grpc_credentials base;
297 grpc_credentials_md_store *access_token_md;
298 } grpc_access_token_credentials;
299
300 /* -- Fake Oauth2 credentials. -- */
301
302 typedef struct {
303 grpc_credentials base;
304 grpc_credentials_md_store *access_token_md;
305 int is_async;
306 } grpc_fake_oauth2_credentials;
307
308 /* -- IAM credentials. -- */
309
310 typedef struct {
311 grpc_credentials base;
312 grpc_credentials_md_store *iam_md;
313 } grpc_iam_credentials;
314
315 /* -- Composite credentials. -- */
316
317 typedef struct {
318 grpc_credentials base;
319 grpc_credentials_array inner;
320 grpc_credentials *connector_creds;
321 } grpc_composite_credentials;
322
323 #endif /* GRPC_INTERNAL_CORE_SECURITY_CREDENTIALS_H */
grpc_credentials_status
grpc_credentials_status
Definition: credentials.h:50
value
const char * value
Definition: hpack_table.c:44
grpc_service_account_jwt_access_credentials::jwt_md
grpc_credentials_md_store * jwt_md
Definition: credentials.h:245
grpc_credentials_vtable
Definition: credentials.h:131
grpc_credentials_md_store::entries
grpc_credentials_md * entries
Definition: credentials.h:97
grpc_server_credentials_vtable
Definition: credentials.h:210
grpc_credentials_has_request_metadata_only
int grpc_credentials_has_request_metadata_only(grpc_credentials *creds)
Definition: credentials.c:102
grpc_service_account_jwt_access_credentials::jwt_lifetime
gpr_timespec jwt_lifetime
Definition: credentials.h:251
grpc_credentials_md_store::refcount
gpr_refcount refcount
Definition: credentials.h:100
gpr_refcount
Definition: sync_generic.h:49
grpc_credentials_metadata_cb
void(* grpc_credentials_metadata_cb)(void *user_data, grpc_credentials_md *md_elems, size_t num_md, grpc_credentials_status status)
Definition: credentials.h:126
grpc_credentials_md
Definition: credentials.h:91
grpc_credentials_md_store_create
grpc_credentials_md_store * grpc_credentials_md_store_create(size_t initial_capacity)
Definition: credentials_metadata.c:48
grpc_channel_args
An array of arguments that can be passed around.
Definition: grpc.h:113
grpc_oauth2_token_fetcher_credentials
Definition: credentials.h:268
grpc_service_account_credentials
Definition: credentials.h:279
httpcli.h
grpc_fake_oauth2_credentials::access_token_md
grpc_credentials_md_store * access_token_md
Definition: credentials.h:304
grpc_server_credentials::type
const char * type
Definition: credentials.h:218
grpc_ssl_credentials::config
grpc_ssl_config config
Definition: credentials.h:228
grpc_oauth2_token_fetcher_credentials_parse_server_response
grpc_credentials_status grpc_oauth2_token_fetcher_credentials_parse_server_response(const struct grpc_httpcli_response *response, grpc_credentials_md_store **token_md, gpr_timespec *token_lifetime)
grpc_service_account_jwt_access_credentials::service_url
char * service_url
Definition: credentials.h:246
grpc_fake_oauth2_credentials::is_async
int is_async
Definition: credentials.h:305
grpc_credentials_md_store_ref
grpc_credentials_md_store * grpc_credentials_md_store_ref(grpc_credentials_md_store *store)
Definition: credentials_metadata.c:80
grpc_composite_credentials
Definition: credentials.h:317
grpc_service_account_credentials::key
grpc_auth_json_key key
Definition: credentials.h:281
grpc_credentials::vtable
const grpc_credentials_vtable * vtable
Definition: credentials.h:146
json_token.h
grpc_service_account_jwt_access_credentials_create_from_auth_json_key
grpc_credentials * grpc_service_account_jwt_access_credentials_create_from_auth_json_key(grpc_auth_json_key key, gpr_timespec token_lifetime)
Definition: credentials.c:407
grpc_refresh_token_credentials::base
grpc_oauth2_token_fetcher_credentials base
Definition: credentials.h:289
grpc_credentials_create_security_connector
grpc_security_status grpc_credentials_create_security_connector(grpc_credentials *creds, const char *target, const grpc_channel_args *args, grpc_credentials *request_metadata_creds, grpc_channel_security_connector **sc, grpc_channel_args **new_args)
Definition: credentials.c:123
grpc_service_account_credentials::base
grpc_oauth2_token_fetcher_credentials base
Definition: credentials.h:280
grpc_refresh_token_credentials::refresh_token
grpc_auth_refresh_token refresh_token
Definition: credentials.h:290
grpc_iam_credentials::iam_md
grpc_credentials_md_store * iam_md
Definition: credentials.h:312
grpc_refresh_token_credentials_create_from_auth_refresh_token
grpc_credentials * grpc_refresh_token_credentials_create_from_auth_refresh_token(grpc_auth_refresh_token token)
Definition: credentials.c:747
grpc_credentials_contains_type
grpc_credentials * grpc_credentials_contains_type(grpc_credentials *creds, const char *type, grpc_credentials **composite_creds)
Definition: credentials.c:1157
grpc_fetch_oauth2_func
void(* grpc_fetch_oauth2_func)(grpc_credentials_metadata_request *req, grpc_httpcli_context *http_context, grpc_pollset *pollset, grpc_httpcli_response_cb response_cb, gpr_timespec deadline)
Definition: credentials.h:262
grpc_credentials_has_request_metadata
int grpc_credentials_has_request_metadata(grpc_credentials *creds)
Definition: credentials.c:97
grpc_ssl_server_credentials
Definition: credentials.h:231
grpc_credentials_md_store_add
void grpc_credentials_md_store_add(grpc_credentials_md_store *store, gpr_slice key, gpr_slice value)
Definition: credentials_metadata.c:60
grpc_security.h
grpc_get_well_known_google_credentials_file_path
char * grpc_get_well_known_google_credentials_file_path(void)
grpc_pollset
Definition: pollset_posix.h:48
grpc_oauth2_token_fetcher_credentials::mu
gpr_mu mu
Definition: credentials.h:270
grpc_credentials_array::num_creds
size_t num_creds
Definition: credentials.h:172
grpc_service_account_jwt_access_credentials::key
grpc_auth_json_key key
Definition: credentials.h:250
grpc_server_credentials
Definition: credentials.h:216
grpc_credentials
Definition: credentials.h:145
grpc_credentials_array
Definition: credentials.h:170
grpc_access_token_credentials
Definition: credentials.h:295
grpc_credentials_md_store
Definition: credentials.h:96
grpc_credentials_md::value
gpr_slice value
Definition: credentials.h:93
grpc_credentials_unref
void grpc_credentials_unref(grpc_credentials *creds)
Definition: credentials.c:88
grpc_server_credentials::vtable
const grpc_server_credentials_vtable * vtable
Definition: credentials.h:217
grpc_fake_oauth2_credentials::base
grpc_credentials base
Definition: credentials.h:303
grpc_flush_cached_google_default_credentials
void grpc_flush_cached_google_default_credentials(void)
Definition: google_default_credentials.c:213
grpc_composite_credentials::base
grpc_credentials base
Definition: credentials.h:318
grpc_composite_credentials::connector_creds
grpc_credentials * connector_creds
Definition: credentials.h:320
grpc_auth_refresh_token
Definition: json_token.h:94
grpc_fake_transport_security_server_credentials_create
grpc_server_credentials * grpc_fake_transport_security_server_credentials_create(void)
Definition: credentials.c:938
grpc_credentials_md_store::allocated
size_t allocated
Definition: credentials.h:99
GRPC_CREDENTIALS_ERROR
Definition: credentials.h:52
grpc_credentials_get_request_metadata
void grpc_credentials_get_request_metadata(grpc_credentials *creds, grpc_pollset *pollset, const char *service_url, grpc_credentials_metadata_cb cb, void *user_data)
Definition: credentials.c:107
grpc_iam_credentials
Definition: credentials.h:310
grpc_service_account_credentials::token_lifetime
gpr_timespec token_lifetime
Definition: credentials.h:283
grpc_credentials_md_store::num_entries
size_t num_entries
Definition: credentials.h:98
grpc_credentials::refcount
gpr_refcount refcount
Definition: credentials.h:148
grpc_access_token_credentials::access_token_md
grpc_credentials_md_store * access_token_md
Definition: credentials.h:297
gpr_mu
Definition: sync_win32.h:39
grpc_credentials_md_store_unref
void grpc_credentials_md_store_unref(grpc_credentials_md_store *store)
Definition: credentials_metadata.c:87
grpc_ssl_server_config
Definition: security_connector.h:196
grpc_service_account_jwt_access_credentials::jwt_expiration
gpr_timespec jwt_expiration
Definition: credentials.h:247
security_connector.h
grpc_security_connector
Definition: security_connector.h:75
grpc_service_account_jwt_access_credentials
Definition: credentials.h:238
grpc_channel_security_connector
Definition: security_connector.h:135
grpc_auth_json_key
Definition: json_token.h:52
grpc_ssl_credentials
Definition: credentials.h:226
grpc_access_token_credentials::base
grpc_credentials base
Definition: credentials.h:296
grpc_oauth2_token_fetcher_credentials::httpcli_context
grpc_httpcli_context httpcli_context
Definition: credentials.h:273
grpc_composite_credentials::inner
grpc_credentials_array inner
Definition: credentials.h:319
grpc_credentials::type
const char * type
Definition: credentials.h:147
grpc_refresh_token_credentials
Definition: credentials.h:288
grpc_fake_transport_security_credentials_create
grpc_credentials * grpc_fake_transport_security_credentials_create(void)
Definition: credentials.c:929
grpc_service_account_jwt_access_credentials::cache_mu
gpr_mu cache_mu
Definition: credentials.h:243
grpc_oauth2_token_fetcher_credentials::token_expiration
gpr_timespec token_expiration
Definition: credentials.h:272
grpc_ssl_config
Definition: security_connector.h:165
sync.h
GRPC_CREDENTIALS_OK
Definition: credentials.h:51
grpc_credentials_md::key
gpr_slice key
Definition: credentials.h:92
stream_op.h
gpr_timespec
Definition: time.h:60
grpc_composite_credentials_get_credentials
const grpc_credentials_array * grpc_composite_credentials_get_credentials(grpc_credentials *composite_creds)
Definition: credentials.c:1149
grpc_credentials_md_store_add_cstrings
void grpc_credentials_md_store_add_cstrings(grpc_credentials_md_store *store, const char *key, const char *value)
Definition: credentials_metadata.c:69
grpc_httpcli_response_cb
void(* grpc_httpcli_response_cb)(void *user_data, const grpc_httpcli_response *response)
Definition: httpcli.h:89
grpc_credentials_ref
grpc_credentials * grpc_credentials_ref(grpc_credentials *creds)
Definition: credentials.c:82
grpc_httpcli_context
Definition: httpcli.h:57
grpc_ssl_credentials::base
grpc_credentials base
Definition: credentials.h:227
grpc_ssl_server_credentials::base
grpc_server_credentials base
Definition: credentials.h:232
grpc_credentials_metadata_request
Definition: credentials.c:54
grpc_fake_oauth2_credentials_create
grpc_credentials * grpc_fake_oauth2_credentials_create(const char *token_md_value, int is_async)
Definition: credentials.c:818
grpc_httpcli_response
Definition: httpcli.h:77
grpc_iam_credentials::base
grpc_credentials base
Definition: credentials.h:311
grpc_fake_oauth2_credentials
Definition: credentials.h:302
grpc_oauth2_token_fetcher_credentials::access_token_md
grpc_credentials_md_store * access_token_md
Definition: credentials.h:271
grpc_security_status
grpc_security_status
Definition: security_connector.h:43
key
const char * key
Definition: hpack_table.c:43
grpc.h
gpr_slice
Definition: slice.h:79
grpc_oauth2_token_fetcher_credentials::fetch_func
grpc_fetch_oauth2_func fetch_func
Definition: credentials.h:274
grpc_server_credentials_create_security_connector
grpc_security_status grpc_server_credentials_create_security_connector(grpc_server_credentials *creds, grpc_security_connector **sc)
Definition: credentials.c:143
grpc_service_account_jwt_access_credentials::base
grpc_credentials base
Definition: credentials.h:239
grpc_credentials_array::creds_array
grpc_credentials ** creds_array
Definition: credentials.h:171
grpc_ssl_server_credentials::config
grpc_ssl_server_config config
Definition: credentials.h:233
grpc_service_account_credentials::scope
char * scope
Definition: credentials.h:282
grpc_oauth2_token_fetcher_credentials::base
grpc_credentials base
Definition: credentials.h:269