# DHIS Personal Access Token (PAT)

**URL:** <https://community.openfn.org/t/dhis-personal-access-token-pat/417>\
**Category:** Adaptors & Templates\
**Created:** [March 20, 2024, 8:30am UTC](https://community.openfn.org/t/dhis-personal-access-token-pat/417 "2024-03-20T08:30:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![magp](https://community.openfn.org/letter_avatar_proxy/v4/letter/m/51bf81/32.png) [@magp](https://community.openfn.org/u/magp)\
**Post date:** [March 20, 2024, 8:30am UTC](https://community.openfn.org/t/dhis-personal-access-token-pat/417/1 "2024-03-20T08:30:42Z")

</div>

Hi everyone!

I think it could make sense to add support to use PAT to talk to DHIS2 instead of basic authentication to make connection more secure.

What do you think?

---

<div class="post-metadata">

**Author:** ![taylordowns2000](https://community.openfn.org/user_avatar/community.openfn.org/taylordowns2000/32/165_2.png) [@taylordowns2000](https://community.openfn.org/u/taylordowns2000)\
**Post date:** [March 20, 2024, 8:58am UTC](https://community.openfn.org/t/dhis-personal-access-token-pat/417/2 "2024-03-20T08:58:32Z")

</div>

Hey @magp ! Great to see you here 🙂

We’re actually scoping out new DHIS2 auth options right now. I’d prefer to use OAuth2, but PAT could also be an option.

Let’s see what others think.
