# Authorization failed

**URL:** <https://hub.mender.io/t/authorization-failed/2106>\
**Category:** General Discussions\
**Created:** [June 25, 2020, 11:31am UTC](https://hub.mender.io/t/authorization-failed/2106 "2020-06-25T11:31:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anishmonachan](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/anishmonachan/32/802_2.png) [@anishmonachan](https://hub.mender.io/u/anishmonachan)\
**Post date:** [June 25, 2020, 11:31am UTC](https://hub.mender.io/t/authorization-failed/2106/1 "2020-06-25T11:31:01Z")

</div>

Hello?  
I’m testing a mender client. I’m performing preauthorization via GCP platform with [https://hosted.mender.io](https://hosted.mender.io)’. The preauth is successful and yet the device is not showing in the list of “Pending” devices. When the device is on I have the following error message with mender logs. I’ve also tried to perform preauth manually but no luck.

`mender[5634]: time="2020-06-25T11:19:36Z" level=error msg="authorize failed: transient error: authorization request failed: (request_id: ): authentication request rejected server error message: Unauthorized" mod ule=state`

I’ve a custom mender-device-identity script.  
My mender.conf looks like this

`{"InventoryPollIntervalSeconds": 1800, "RetryPollIntervalSeconds": 300, "RootfsPartA": "/dev/mmcblk0p1", "RootfsPartB": "/dev/mmcblk0p29", "ServerURL": "https://hosted.mender.io", "TenantToken": "dummy", "UpdatePollIntervalSeconds": 1800}`

What I’m missing here?

---

<div class="post-metadata">

**Author:** ![anishmonachan](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/anishmonachan/32/802_2.png) [@anishmonachan](https://hub.mender.io/u/anishmonachan)\
**Post date:** [June 25, 2020, 1:25pm UTC](https://hub.mender.io/t/authorization-failed/2106/2 "2020-06-25T13:25:17Z")

</div>

Ok I managed to have authorization! It was TenantToken that’s wrong
