Session auth (#904)

* use session auth rather than token auth

* Add unit tests for login

* Ensure user cannot reuse login after logout

* handle logout mid session

* Additional unit tests

* ensure sensitive data is redacted from sentry

* Handle session disconnect

* Additional tweaks

* Update pubspec.lock

* Update release_notes.md

* Bump version number

* Adjust login button

* Clear stored session when host changes

* Improved redacting of sensitive info

* Improved handling of local session storage

* prevent failed migration from logging as complete

* Fix for error raised in overlapping requests

* replace userInfo on successful response

* handle empty response

* Improved session comparison

* Add UI testing
This commit is contained in:
Oliver authored and GitHub committed 2026-11-02 19:15:27 +11:00
1 parent 3d639882d3
commit c75403b3ed
33 files changed
+6948 -417

No files matched your search

+3 -1
View File
@@ -25,7 +25,9 @@
<application
android:label="InvenTree"
android:icon="@mipmap/ic_launcher">
android:icon="@mipmap/ic_launcher"
android:fullBackupContent="@xml/backup_rules"
android:dataExtractionRules="@xml/data_extraction_rules">
<uses-library
android:name="com.datalogic.device"
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Auto Backup rules for Android 11 (API 30) and lower.
Secure storage (session cookies) is excluded - it is encrypted with a
device-bound KeyStore key, so it can never be decrypted after a restore.
-->
<full-backup-content>
<exclude domain="sharedpref" path="FlutterSecureStorage.xml" />
<exclude domain="sharedpref" path="FlutterSecureKeyStorage.xml" />
</full-backup-content>
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Backup rules for Android 12 (API 31) and higher.
Secure storage (session cookies) is excluded - it is encrypted with a
device-bound KeyStore key, so it can never be decrypted after a restore.
-->
<data-extraction-rules>
<cloud-backup>
<exclude domain="sharedpref" path="FlutterSecureStorage.xml" />
<exclude domain="sharedpref" path="FlutterSecureKeyStorage.xml" />
</cloud-backup>
<device-transfer>
<exclude domain="sharedpref" path="FlutterSecureStorage.xml" />
<exclude domain="sharedpref" path="FlutterSecureKeyStorage.xml" />
</device-transfer>
</data-extraction-rules>