JEE project: keep getting invalid redirect URI error

Hello,
I’m working on a JEE project, implementing REST APIs with JAX-RS. I’m using Wildfly v21 as my application server, while my project is running on http://localhost:8081(changed to get a different port from Keycloak). I’ve configurated it with Keycloak using the JBoss EAP/WildFly adapter, and it seems well configurated.

web.xml:

<security-constraint>
        <web-resource-collection>
            <web-resource-name>auth_prototype</web-resource-name>
            <url-pattern>/api/*</url-pattern>
        </web-resource-collection>
        <auth-constraint>
            <role-name>user</role-name>
        </auth-constraint>
        <user-data-constraint>
            <transport-guarantee>CONFIDENTIAL</transport-guarantee>
        </user-data-constraint>
    </security-constraint>


    <login-config>
        <auth-method>KEYCLOAK</auth-method>
        <realm-name>auth-proto-realm</realm-name>
    </login-config>
    <security-role>
        <role-name>admin</role-name>
    </security-role>
    <security-role>
        <role-name>user</role-name>
    </security-role>

keycloak.json:

{
  "realm": "auth-proto-realm",
  "auth-server-url": "http://localhost:8080/auth/",
  "ssl-required": "external",
  "resource": "auth-proto-client",
  "credentials": {
    "secret": "secret"
  },
  "confidential-port": 0
}

The issue is whatever URI I put in Valid Redirect URIs I keep getting the error invalid redirect URIs or it keeps loading the page without success:

I’ve tried everything but nothing seems to work, are my configurations ok?
Thanks a lot