# Authorizing third party API access with JWT

**URL:** <https://community.auth0.com/t/authorizing-third-party-api-access-with-jwt/80032>\
**Category:** JWT.io\
**Tags:** jwt, api, auth0\
**Created:** [March 16, 2022, 9:48pm UTC](https://community.auth0.com/t/authorizing-third-party-api-access-with-jwt/80032 "2022-03-16T21:48:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![joe.a](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/joe.a/32/35942_2.png) [@joe.a](https://community.auth0.com/u/joe.a)\
**Post date:** [March 16, 2022, 9:48pm UTC](https://community.auth0.com/t/authorizing-third-party-api-access-with-jwt/80032/1 "2022-03-16T21:48:46Z")

</div>

Hi,

We built an API for our application that is authenticated and authorized using JWT from Auth0. It works great!

Now we have a third party application that would like to call these APIs from a SPA on their website.

Is there a standard approach to this? Would this require setting up SAML or OIDC to connect their identity provider to authorize their clients?

Another option might be to create an API the third party would need to call with a hashed userId from their server with an API key/secret that would create a “stub” user and return a JWT?

Thanks

---

<div class="post-metadata">

**Author:** ![john.gateley](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/john.gateley/32/10879_2.png) [@john.gateley](https://community.auth0.com/u/john.gateley)\
**Post date:** [March 17, 2022, 1:07pm UTC](https://community.auth0.com/t/authorizing-third-party-api-access-with-jwt/80032/2 "2022-03-17T13:07:57Z")

</div>

Hi @joe.a

These are third party apps. You can start here: [First-Party and Third-Party Applications](https://auth0.com/docs/get-started/applications/confidential-and-public-applications/first-party-and-third-party-applications)

Basically they need to OIDC into your Auth0 tenant to authenticate, you give them back an access token (possibly a refresh token too).

John

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [March 31, 2022, 11:15am UTC](https://community.auth0.com/t/authorizing-third-party-api-access-with-jwt/80032/3 "2022-03-31T11:15:03Z")

</div>


