ctrl-space-labs / gendox-core

Gendox: "Generate. Train. Evolve."
GNU Affero General Public License v3.0
5 stars 0 forks source link

Fix Discord Bot Authorization #280

Open myrtp opened 5 months ago

myrtp commented 5 months ago

I want to fix discord bot authentication. When I send a /chat request I get a 401 unauthorized error. I first created a new discord bot following the documentation about creating a discord bot. It then registered by my discord username on keycloak, when I first executed the /chat request.

Specifically the error occurs on CommonCommandUtility at line 105-107 where it is checked if a user exists otherwise a new user is created. In the getUsersByUsername method. Then in the override method: getUsersByUsername in the KeycloakAuthenticationService class at line 193.

The branch I am working on is #feature-203-Implement-create-did-for-agent