# oauth

**URL:** <https://community.hubspot.com/t/oauth/123099>\
**Category:** APIs & Integrations\
**Created:** [December 30, 2024, 12:08pm UTC](https://community.hubspot.com/t/oauth/123099 "2024-12-30T12:08:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![JReis5](https://avatars.discourse-cdn.com/v4/letter/j/a87d85/32.png) [@JReis5](https://community.hubspot.com/u/JReis5)\
**Post date:** [December 30, 2024, 12:08pm UTC](https://community.hubspot.com/t/oauth/123099/1 "2024-12-30T12:08:49Z")

</div>

I’m trying to create a private application to communicate with the United States immigration case tracker, but I need to insert the authentication keys from the immigration application into the private hubspot application and I can’t do this configuration, could anyone help me?

---

<div class="post-metadata">

**Author:** ![evaldas](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/evaldas/32/69160_2.png) [@evaldas](https://community.hubspot.com/u/evaldas)\
**Post date:** [December 30, 2024, 2:59pm UTC](https://community.hubspot.com/t/oauth/123099/2 "2024-12-30T14:59:21Z")

</div>

Hi @JReis5,

You can securely store keys for HubSpot private app use by utilizing [secrets](https://developers.hubspot.com/docs/guides/cms/tools/local-development-cli#add-a-secret), which can then be used by the private app with [serverless functions](https://developers.hubspot.com/docs/guides/cms/content/data-driven-content/serverless-functions/).

Depending on your use case, this can also be used with [custom code actions](https://developers.hubspot.com/docs/reference/api/automation/custom-code-actions) in workflows and secrets would be created in the UI.
