Closed uw-rvitorino closed 1 year ago
Ah yes, we would probably use a raise_on_error
function to check the responses of all Keycloak calls. Basically everywhere requests.request()
is called
Could you test if this issue still persists in the v2 branch. AFAIK, this has been solved
@uw-rvitorino Have you been able to check if the bug still persists in the v2 release?
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.
This issue was closed because it has been stalled for 7 days with no activity.
Describe the bug IntegrityError
django_keycloak.middleware in append_user_info_to_request error
null value in column "email" violates not-null constraintdjango_keycloak/middleware.py
inappend_user_info_to_request
(line 39) raises this error when theuser_info
does not contain theemail
property (because the Token is not valid anymore)To Reproduce Steps to reproduce the behavior:
Expected behavior The middleware should try to get the email from the user info but if it's None it should return an Unauthorised response and not try to save the user info,
Screenshots
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context N/A