urbanplatform / django-keycloak-auth

Middleware to allow authorization using Keycloak and Django for django-rest-framework (DRF). This package should only be used in projects starting from scratch, since it overrides the users' management.
MIT License
32 stars 14 forks source link

Write in the documentation about configuring keycloak #99

Closed talesmm14 closed 7 months ago

talesmm14 commented 9 months ago

I was unable to authenticate after configuring the project, an error about incorrect password or username was always returned. After some debugging investigations into the library, I found the following exception in from_credentials in Token.

b'{"error":"unauthorized_client","error_description":"Client not permitted for direct access grants"}'

To resolve this issue, I had to configure my keycloak client to enable direct access.

keycloak_config

It would be interesting to see in the official documentation how the keycloak client must be configured for the library to work correctly.

moritz89 commented 9 months ago

Thanks for the effort of opening a ticket, but this is won't be resolved given the project's limited resources. The initial owners have moved on, and while I still use and continue to improve it, I haven't published the changes. The direction has changed slightly to focus on async middleware but requires clean up before it can be published.

github-actions[bot] commented 7 months ago

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] commented 7 months ago

This issue was closed because it has been stalled for 7 days with no activity.