# OpenId Connect Plugin - AWS Cognito - Error: invalid\_client at a.onload

**URL:** https://community.weweb.io/t/openid-connect-plugin-aws-cognito-error-invalid-client-at-a-onload/5863
**Category:** How do I?
**Tags:** authentication
**Created:** [December 10, 2023, 8:26pm UTC](https://community.weweb.io/t/openid-connect-plugin-aws-cognito-error-invalid-client-at-a-onload/5863 "2023-12-10T20:26:47Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![mgv12](https://avatars.discourse-cdn.com/v4/letter/m/d6d6ee/32.png) [@mgv12](https://community.weweb.io/u/mgv12)
#### Post date: [December 10, 2023, 8:26pm UTC](https://community.weweb.io/t/openid-connect-plugin-aws-cognito-error-invalid-client-at-a-onload/5863/1 "2023-12-10T20:26:47Z")

</div>

Hi everybody,

I get an error after I sign in using the OpenID Connect plugin in Weweb:

```auto
name: "Error"
stack: "Error: invalid_client at a.onload (https://cdn.weweb.io/components/01af5352-af71-4382-844b-2ec141ff243b/83be2748-aa22-4d69-9812-1cefc8f2c1aa/dist/manager.js:1:19380)"
message: "invalid_client"

```

Let me give you some context. I am using a AWS Cognito’s pool to manage my user auth. I have done some checks using [https://openidconnect.net/](https://openidconnect.net/) and it seems that it worked. The client configuration in Cognito has also the callbacks in place, actually without them, you get another error when clicking the login button, which I would say that it is similar to what’s described [here](https://community.weweb.io/t/openid-connect-with-aws-cognito/4199).

I have configured the plugin in Weweb:

 ![image](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/b/b1a446ba1909c15adf264f459ec4769746fdf3da.png)

I have tried both options: login with popup/redirect, and in both cases I get a similar result, but I can only see the error in the popup option because with the redirect, the whole editor gets relaunched.

After Introducing the user/password and get redirected from  
`https://editor.weweb.io/62cc2481-0506-49db-90ee-b6f4d7e710ca/65500515-afed-4e67-9c18-353ee35dd062` to `https://editor.weweb.io/<prj>/<page-1>?code=<code>&state=<state>` :

 ![image](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/a/a4583351ea61e895fe1ce03f591db059aa9710fb.png)

I get the following error:

 ![image](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/f/f7841be62c1a23954c48eb6fc10df2f2ac63db88.png)

Does it ring any bell about what I may be doing wrong?

Thanks,

Manuel

---

<div class="post-metadata">

### Author: ![JulianW](https://avatars.discourse-cdn.com/v4/letter/j/85e7bf/32.png) [@JulianW](https://community.weweb.io/u/JulianW)
#### Post date: [May 31, 2024, 4:01am UTC](https://community.weweb.io/t/openid-connect-plugin-aws-cognito-error-invalid-client-at-a-onload/5863/2 "2024-05-31T04:01:49Z")

</div>

Have you been able to get it running with AWS Cognito?
