# Services not working in log in app

**URL:** <https://community.appfarm.io/t/services-not-working-in-log-in-app/915>\
**Category:** Ask the community\
**Tags:** login, service\
**Created:** [December 13, 2023, 12:36pm UTC](https://community.appfarm.io/t/services-not-working-in-log-in-app/915 "2023-12-13T12:36:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Elin-ENVE](https://avatars.discourse-cdn.com/v4/letter/e/dc4da7/32.png) [@Elin-ENVE](https://community.appfarm.io/u/Elin-ENVE)\
**Post date:** [December 13, 2023, 12:36pm UTC](https://community.appfarm.io/t/services-not-working-in-log-in-app/915/1 "2023-12-13T12:36:52Z")

</div>

Hi!

We are using services in our application without problem, however I can’t seem to get them to work in in our log in app. Is this not possible to do, or am I doing something wrong with permissions? I tried both with and without a public service account and I always get an 401 error.

---

<div class="post-metadata">

**Author:** ![isabelslorer](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/isabelslorer/32/856_2.png) [@isabelslorer](https://community.appfarm.io/u/isabelslorer)\
**Post date:** [December 13, 2023, 3:56pm UTC](https://community.appfarm.io/t/services-not-working-in-log-in-app/915/2 "2023-12-13T15:56:41Z")

</div>

Hi Elin!

To make services work in a login app, or unauthenticated app, you need to select “Unauthenticated Access” under Service Security in Environments config, and select a service account.

Hope this solves your problem!

![Skjermbilde 2023-12-13 kl. 16.48.36](https://europe1.discourse-cdn.com/flex013/uploads/appfarm/original/1X/9c944bc8e62c89fc29344dd3f267c7b9d5d95726.png)
