# Authentication error - V7

**URL:** https://community.forestadmin.com/t/authentication-error-v7/2910
**Category:** Help me!
**Created:** [July 15, 2021, 1:35pm UTC](https://community.forestadmin.com/t/authentication-error-v7/2910 "2021-07-15T13:35:00Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![Guiguijo](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/guiguijo/32/2445_2.png) [@Guiguijo](https://community.forestadmin.com/u/Guiguijo)
#### Post date: [July 15, 2021, 1:35pm UTC](https://community.forestadmin.com/t/authentication-error-v7/2910/1 "2021-07-15T13:35:00Z")

</div>

Hi Forest,

I already talked about this problem: the authentication process of my local Docker environment sometimes breaks.

![image](https://europe1.discourse-cdn.com/flex013/uploads/forest/original/2X/c/cb3b831867d27a64284b4a4547d889a064129f24.png)

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/forest/original/2X/0/0141a18c6a55c23683e9d66ffdfcb86babbd1cef.png)

This happens with or whithout `FOREST_CLIENT_ID` environment variable. To fix it, I need the recreate a `FOREST_CLIENT_ID`

Do you have any ideas how to fix that ?  
Guillaume

---

<div class="post-metadata">

### Author: ![GuillaumeGautreau](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/guillaumegautreau/32/557_2.png) [@GuillaumeGautreau](https://community.forestadmin.com/u/GuillaumeGautreau)
#### Post date: [July 15, 2021, 1:35pm UTC](https://community.forestadmin.com/t/authentication-error-v7/2910/2 "2021-07-15T13:35:52Z")

</div>

Hello,

Do you have an example of a CLIENT\_ID that is failing and that you had to change?

---

<div class="post-metadata">

### Author: ![Guiguijo](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/guiguijo/32/2445_2.png) [@Guiguijo](https://community.forestadmin.com/u/Guiguijo)
#### Post date: [July 15, 2021, 1:36pm UTC](https://community.forestadmin.com/t/authentication-error-v7/2910/3 "2021-07-15T13:36:45Z")

</div>

yes here: eyJraWQiOiJ6d0VjbU5LVVpVTkdYUnlNRzZ2QUoyTTVfYzBoZGhfblBXS0hYWjhGUTFBIiwiYWxnIjoiUlMyNTYifQ.eyJ0b2tlbl9lbmRwb2ludF9hdXRoX21ldGhvZCI6Im5vbmUiLCJyZWRpcmVjdF91cmlzIjpbImh0dHBzOi8vYXBpLWZvcmVzdC5kZXYubG9jYWxob3N0L2ZvcmVzdC9hdXRoZW50aWNhdGlvbi9jYWxsYmFjayJdLCJhcHBsaWNhdGlvbl90eXBlIjoid2ViIiwiZ3JhbnRfdHlwZXMiOlsiYXV0aG9yaXphdGlvbl9jb2RlIl0sInJlc3BvbnNlX3R5cGVzIjpbImNvZGUiXSwiZW52aXJvbm1lbnRfaWQiOjUyMzQ1LCJpc3MiOiJGT1JFU1RfQVVUSEVOVElDQVRJT05fU1lTVEVNIiwiaWF0IjoxNjI1MjMzODczfQ.hwwzUsKOngp-YNlEAv9Nxrnb1Zq-F5VRBtHZwv8ijReMBIqjZ\_HXbOcEwc7hbD72lkdjCQfxH98eDaSHEDwMuv4bbLbdc4QW3RewBJcGXCaUXuZJKAqYQirjBLRDjtF24Pf5LgiFQZSFKAn269yo2E7tqtTGepaxaQbTJAIrWu0uU27g6MqjwQxhZrPEsrDru9x2hLR944NWYYvplRh\_z-ZN8sDySNz9rcQOlJ3vJsiaVbMygAetOmYHRRs9XYXZx4bDYGkFuSAO\_a\_grOck4YRDOJzmn-HEZnIOjcNqH6-FEIaGql6IIdTqESI8TdKyXVnP-OgVd4P2Gt-ClFIkjw

---

<div class="post-metadata">

### Author: ![GuillaumeGautreau](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/guillaumegautreau/32/557_2.png) [@GuillaumeGautreau](https://community.forestadmin.com/u/GuillaumeGautreau)
#### Post date: [July 15, 2021, 1:40pm UTC](https://community.forestadmin.com/t/authentication-error-v7/2910/4 "2021-07-15T13:40:17Z")

</div>

Can you please share with me the following info about the environment you configured with this client id?

- url
- project & environment name

I would like to check that info in the token are coherent with the environment

---

<div class="post-metadata">

### Author: ![GuillaumeGautreau](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/guillaumegautreau/32/557_2.png) [@GuillaumeGautreau](https://community.forestadmin.com/u/GuillaumeGautreau)
#### Post date: [July 15, 2021, 1:42pm UTC](https://community.forestadmin.com/t/authentication-error-v7/2910/5 "2021-07-15T13:42:58Z")

</div>

Actually, I did not check the error from your screenshot, but it might indicate an issue that is not related to the client id at all.

I checked the client id, and its data seem to be coherent and point to a valid environment.

Can you please post the entire info about the 2 requests that are failing?

---

<div class="post-metadata">

### Author: ![Guiguijo](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/guiguijo/32/2445_2.png) [@Guiguijo](https://community.forestadmin.com/u/Guiguijo)
#### Post date: [July 15, 2021, 1:48pm UTC](https://community.forestadmin.com/t/authentication-error-v7/2910/6 "2021-07-15T13:48:45Z")

</div>

![image](https://europe1.discourse-cdn.com/flex013/uploads/forest/original/2X/9/9ce24525348f428914c53a2f4026d57fd542cecd.png)  
 ![image](https://europe1.discourse-cdn.com/flex013/uploads/forest/original/2X/5/55878631639a04b3bef9c565d9999366bca4fe57.png)

the other tabs are empty

---

<div class="post-metadata">

### Author: ![Guiguijo](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/guiguijo/32/2445_2.png) [@Guiguijo](https://community.forestadmin.com/u/Guiguijo)
#### Post date: [July 15, 2021, 1:49pm UTC](https://community.forestadmin.com/t/authentication-error-v7/2910/7 "2021-07-15T13:49:17Z")

</div>

url: [https://api-forest.dev.localhost](https://api-forest.dev.localhost)  
projet: joinly-forest  
environment= Docker\_development

---

<div class="post-metadata">

### Author: ![GuillaumeGautreau](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/guillaumegautreau/32/557_2.png) [@GuillaumeGautreau](https://community.forestadmin.com/u/GuillaumeGautreau)
#### Post date: [July 15, 2021, 2:27pm UTC](https://community.forestadmin.com/t/authentication-error-v7/2910/8 "2021-07-15T14:27:58Z")

</div>

Thanks for the details. Do you have any info about the reason why the request failed? It seems that either the browser did not send the requests, or it did not receive a response at all.

---

<div class="post-metadata">

### Author: ![Guiguijo](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/guiguijo/32/2445_2.png) [@Guiguijo](https://community.forestadmin.com/u/Guiguijo)
#### Post date: [July 15, 2021, 2:35pm UTC](https://community.forestadmin.com/t/authentication-error-v7/2910/9 "2021-07-15T14:35:27Z")

</div>

nop… I don’t have other info.

I have renewed my FOREST\_CLIENT\_ID.

Shall we call if it happens again ?

---

<div class="post-metadata">

### Author: ![GuillaumeGautreau](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/guillaumegautreau/32/557_2.png) [@GuillaumeGautreau](https://community.forestadmin.com/u/GuillaumeGautreau)
#### Post date: [July 15, 2021, 2:37pm UTC](https://community.forestadmin.com/t/authentication-error-v7/2910/10 "2021-07-15T14:37:39Z")

</div>

The first capture shows that there were a kind of network error when accessing to your server. I don’t know what kind of network error it was, but I suppose that is has nothing to do with the client id.

Maybe your server was down, and the fact that you changed the client id restarted it? Maybe you did not have access to the same network?

Next time it happens, can you check that you have access to `https://api-forest.dev.localhost` in your browser? If you don’t, then the problem is that the server is not accessible.

---

<div class="post-metadata">

### Author: ![Guiguijo](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/guiguijo/32/2445_2.png) [@Guiguijo](https://community.forestadmin.com/u/Guiguijo)
#### Post date: [July 15, 2021, 2:40pm UTC](https://community.forestadmin.com/t/authentication-error-v7/2910/11 "2021-07-15T14:40:52Z")

</div>

All right. I will try but it seemed to me that the server was up because it happened suddenly.

---

<div class="post-metadata">

### Author: ![Alexis\_Clarembeau1](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/alexis_clarembeau1/32/3224_2.png) [@Alexis\_Clarembeau1](https://community.forestadmin.com/u/Alexis_Clarembeau1)
#### Post date: [October 1, 2021, 9:43am UTC](https://community.forestadmin.com/t/authentication-error-v7/2910/12 "2021-10-01T09:43:14Z")

</div>

For those having the same client ID issue, my solution was to update the client ID with the value returned from

curl -H “Content-Type: application/json”   
-H “Authorization: Bearer FOREST\_ENV\_SECRET”   
-X POST   
-d ‘{“token\_endpoint\_auth\_method”: “none”, “redirect\_uris”: [“APPLICATION\_URL/forest/authentication/callback”]}’   
[https://api.forestadmin.com/oidc/reg](https://api.forestadmin.com/oidc/reg)

It looks like the previous one expired
