# \[solved\] Authentication failed on Mac pydioSync

**URL:** <https://forum.pydio.com/t/solved-authentication-failed-on-mac-pydiosync/342>\
**Category:** Sync Client\
**Created:** [December 22, 2017, 5:09am UTC](https://forum.pydio.com/t/solved-authentication-failed-on-mac-pydiosync/342 "2017-12-22T05:09:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![daizumi](https://avatars.discourse-cdn.com/v4/letter/d/7ab992/32.png) [@daizumi](https://forum.pydio.com/u/daizumi)\
**Post date:** [December 22, 2017, 5:09am UTC](https://forum.pydio.com/t/solved-authentication-failed-on-mac-pydiosync/342/1 "2017-12-22T05:09:18Z")

</div>

When I try to login using the Mac app, I get the following error message:

> Error while trying to connect to http://… :  
> Authentication failed: please verify your login and password

Login through web and iPhone app works fine though.

I’m using only HTTP for now.

EDIT:

Testing on /runTests.php?api=true gave me this message:

> Getting authentication token with user credentials  
> Data returned is not JSON! There is something wrong with the API. Exiting.NULL

---

<div class="post-metadata">

**Author:** ![charles](https://yyz2.discourse-cdn.com/flex032/user_avatar/forum.pydio.com/charles/32/3_2.png) [@charles](https://forum.pydio.com/u/charles)\
**Post date:** [December 22, 2017, 1:26pm UTC](https://forum.pydio.com/t/solved-authentication-failed-on-mac-pydiosync/342/2 "2017-12-22T13:26:53Z")

</div>

Hi, you must have an issue with the RewriteRules. Look in the Admin Guide for the section about setting apis.

---

<div class="post-metadata">

**Author:** ![daizumi](https://avatars.discourse-cdn.com/v4/letter/d/7ab992/32.png) [@daizumi](https://forum.pydio.com/u/daizumi)\
**Post date:** [December 22, 2017, 3:44pm UTC](https://forum.pydio.com/t/solved-authentication-failed-on-mac-pydiosync/342/3 "2017-12-22T15:44:50Z")

</div>

Thanks, @charles!

The problem solved after I uncommented this line in .htaccess:

```
SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1
```

---

<div class="post-metadata">

**Author:** ![charles](https://yyz2.discourse-cdn.com/flex032/user_avatar/forum.pydio.com/charles/32/3_2.png) [@charles](https://forum.pydio.com/u/charles)\
**Post date:** [January 8, 2018, 5:21pm UTC](https://forum.pydio.com/t/solved-authentication-failed-on-mac-pydiosync/342/4 "2018-01-08T17:21:54Z")

</div>

Closed on January 8, 2018, 5:21pm UTC


