# Opal not picking up username from Agate (web app)

**URL:** <https://datashield.discourse.group/t/opal-not-picking-up-username-from-agate-web-app/976>\
**Category:** Developer support\
**Created:** [12 March 2024 11:43 UTC](https://datashield.discourse.group/t/opal-not-picking-up-username-from-agate-web-app/976 "2024-03-12T11:43:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![aakkoc](https://yyz2.discourse-cdn.com/free1/user_avatar/datashield.discourse.group/aakkoc/32/200_2.png) [@aakkoc](https://datashield.discourse.group/u/aakkoc)\
**Post date:** [12 March 2024 11:43 UTC](https://datashield.discourse.group/t/opal-not-picking-up-username-from-agate-web-app/976/1 "2024-03-12T11:43:50Z")

</div>

After updating [shiro.ini](https://datashield.discourse.group/t/how-to-change-opal-admin-password-from-webui/895/8) I have assigned a new password to our opal system administrator.

But when I go on the web app (Agate?), the credentials fail to log me in.

 ![image](https://global.discourse-cdn.com/free1/uploads/datashield1/original/1X/54f531700389e8c1274db3959528cd79c674ea60.png)

What is really strange though, is that the username is somehow not able to reach the logs.

> tail -f var/log/opal/rest.log

```bash
{
"@timestamp":"2024-03-12T11:37:42.212Z",
"@version":"1",
"message":"/auth/sessions",
"logger_name":"org.obiba.opal.web.security.AuditInterceptor",
"thread_name":"qtp2117938877-31",
"level":"WARN",
"level_value":30000,
"method":"POST",
"ip":"[[REDACTED]]",
"username":"Unknown",
"status":"403"}

```

This is the first time I am seeing `"username":"Unknown"` and I don’t think this is intentional behaviour.

What could be the problem and how can I fix it?

---

<div class="post-metadata">

**Author:** ![aakkoc](https://yyz2.discourse-cdn.com/free1/user_avatar/datashield.discourse.group/aakkoc/32/200_2.png) [@aakkoc](https://datashield.discourse.group/u/aakkoc)\
**Post date:** [12 March 2024 11:51 UTC](https://datashield.discourse.group/t/opal-not-picking-up-username-from-agate-web-app/976/2 "2024-03-12T11:51:53Z")

</div>

Oh one important detail!

I was able to confirm that the password updated correctly with the [`obiba-opal` CLI](https://opaldoc.obiba.org/en/latest/python-user-guide/index.html#usage):

```bash
opal project --user administrator --p [PWD]
> (expected output) 
opal project --user administrator --p wrong_password
{"code": 401, "status": "Unauthorized: No permission -- see authorization schemes"}

```
