OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
defs:claims
(Results
1 - 2
of
2
) sorted by null
/external/grpc-grpc/test/core/security/
jwt_verifier_test.cc
207
grpc_jwt_claims*
claims
;
local
213
claims
= grpc_jwt_claims_from_json(json, s);
214
GPR_ASSERT(
claims
!= nullptr);
215
GPR_ASSERT(grpc_jwt_claims_json(
claims
) == json);
216
GPR_ASSERT(strcmp(grpc_jwt_claims_audience(
claims
), "https://foo.com") == 0);
217
GPR_ASSERT(strcmp(grpc_jwt_claims_issuer(
claims
), "blah.foo.com") == 0);
218
GPR_ASSERT(strcmp(grpc_jwt_claims_subject(
claims
), "juju@blah.foo.com") == 0);
219
GPR_ASSERT(strcmp(grpc_jwt_claims_id(
claims
), "jwtuniqueid") == 0);
220
GPR_ASSERT(grpc_jwt_claims_check(
claims
, "https://foo.com") ==
222
grpc_jwt_claims_destroy(
claims
);
226
grpc_jwt_
claims
*
claims
;
local
260
grpc_jwt_
claims
*
claims
;
local
274
grpc_jwt_
claims
*
claims
;
local
[
all
...]
/external/grpc-grpc/src/core/lib/security/credentials/jwt/
jwt_verifier.cc
173
/* --- JWT
claims
. see http://tools.ietf.org/html/rfc7519#section-4.1 */
189
void grpc_jwt_claims_destroy(grpc_jwt_claims*
claims
) {
190
grpc_json_destroy(
claims
->json);
191
grpc_slice_unref_internal(
claims
->buffer);
192
gpr_free(
claims
);
195
const grpc_json* grpc_jwt_claims_json(const grpc_jwt_claims*
claims
) {
196
if (
claims
== nullptr) return nullptr;
197
return
claims
->json;
200
const char* grpc_jwt_claims_subject(const grpc_jwt_claims*
claims
) {
201
if (
claims
== nullptr) return nullptr
238
grpc_jwt_
claims
*
claims
=
local
339
grpc_jwt_
claims
*
claims
;
member in struct:__anon23190
638
grpc_jwt_
claims
*
claims
= nullptr;
local
859
grpc_jwt_
claims
*
claims
= nullptr;
local
[
all
...]
Completed in 560 milliseconds