Skip to content

Fix: Django session+csrftoken handling#127

Open
Blue-B-code wants to merge 3 commits intoopenimis:developfrom
Y-Note-SAS:feature-36294
Open

Fix: Django session+csrftoken handling#127
Blue-B-code wants to merge 3 commits intoopenimis:developfrom
Y-Note-SAS:feature-36294

Conversation

@Blue-B-code
Copy link
Copy Markdown
Contributor

@Blue-B-code Blue-B-code commented Apr 16, 2026

Description

  • Django mobile-side handling of the openimis_session cookie ( local persistence, invalidation and cleansing ) and injection of the cookie accompanied by X-CSRFToken header into HTTP requests using a CookieJar to address the session instability or invalidity issue that causes the errors[0].message = "csrftoken" server response in mobile requests.

  • Added null safety to the getHealthFacility response handling to correct the java NullPointerException.

Type of Change

  • Feature
  • Bug fix
  • Chore (Refactor, Docs, CI/CD)
  • Other, please specify

Related Issue(s) / Task(s)

  • Requires [link to github PR], [link to github PR] needs to be merged first before this one
  • Relates to [link to github PR], this needs to be merged before [link to github PR]
  • External reference (e.g., Jira):

Demo

logscat_csrftoken_error NPE_getHF_Claims fix_csrftoken_Claims

Checklist

  • Unit tests added/modified
  • I18n / translation handled

@Blue-B-code Blue-B-code changed the title Fix: Django session handling Fix: Django session+csrftoken handling Apr 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants