# Sanity Check: RS256 JWT tokens, signing and verifying?

**URL:** <https://community.auth0.com/t/sanity-check-rs256-jwt-tokens-signing-and-verifying/8565>\
**Category:** Get Help\
**Tags:** jwt, net-core\
**Created:** [October 24, 2017, 7:12pm UTC](https://community.auth0.com/t/sanity-check-rs256-jwt-tokens-signing-and-verifying/8565 "2017-10-24T19:12:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mark\_Redman](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/mark_redman/32/6240_2.png) [@Mark\_Redman](https://community.auth0.com/u/Mark_Redman)\
**Post date:** [October 24, 2017, 7:12pm UTC](https://community.auth0.com/t/sanity-check-rs256-jwt-tokens-signing-and-verifying/8565/1 "2017-10-24T19:12:21Z")

</div>

When we get a JWT token from Auth0, is this signed by the Auth0 “Tenant” secret key, not a client secret key?

And when this is verified, using the Public Key (via jwks url e.g.: https://[domain]/.well-known/jwks.json), this ensures that the whole token has not been tampered with?

and in .Net core, this validation is performed automatically since we have setup this code:

```
.AddJwtBearer(options =>
                    {
                        options.Authority = domain;
                        options.Audience = Configuration"Auth0:ApiIdentifier"];
                    });

```

and when if check the payload contents we can be sure this is not been changed?

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [March 2, 2018, 5:57am UTC](https://community.auth0.com/t/sanity-check-rs256-jwt-tokens-signing-and-verifying/8565/2 "2018-03-02T05:57:07Z")

</div>


