Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Token auth #434

Merged
merged 23 commits into from
Oct 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
298cd55
Embed device platform information into token request
SchrodingersGat Oct 20, 2023
925def0
Remove username and password from userProfile
SchrodingersGat Oct 20, 2023
b007782
Display icon to show if profile has associated user token
SchrodingersGat Oct 20, 2023
031a15f
Remove username / password from login settings screen
SchrodingersGat Oct 20, 2023
f21eeea
Refactor login procedure around token auth
SchrodingersGat Oct 21, 2023
6bd2239
Refactoring
SchrodingersGat Oct 21, 2023
564e803
Add profile login screen
SchrodingersGat Oct 21, 2023
a4b871a
Login with basic auth
SchrodingersGat Oct 21, 2023
ecc147e
Pass profile to API when connecting
SchrodingersGat Oct 22, 2023
5d1766c
Remove _BASE_URL accessor
SchrodingersGat Oct 22, 2023
00c9ce9
Add more context to login screen
SchrodingersGat Oct 22, 2023
84ceb10
Add helper functions for unit tests
SchrodingersGat Oct 22, 2023
cf25918
api.dart handles basic auth now
SchrodingersGat Oct 22, 2023
dde764f
fix api_test.dart
SchrodingersGat Oct 22, 2023
e4e0bc8
Further test improvements
SchrodingersGat Oct 22, 2023
d313c3a
linting fixes
SchrodingersGat Oct 22, 2023
119fdf0
Provide feedback when login fails
SchrodingersGat Oct 22, 2023
9be578d
More linting
SchrodingersGat Oct 22, 2023
1d99ed7
Record user details on login, and display in "about" widget
SchrodingersGat Oct 22, 2023
9241271
Fix string lookup
SchrodingersGat Oct 22, 2023
e088c8f
Add extra debug
SchrodingersGat Oct 22, 2023
256fd04
Fix auth values
SchrodingersGat Oct 22, 2023
64230a6
Fix user profile test
SchrodingersGat Oct 22, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@ env:
INVENTREE_ADMIN_USER: testuser
INVENTREE_ADMIN_PASSWORD: testpassword
INVENTREE_ADMIN_EMAIL: [email protected]
INVENTREE_PYTHON_TEST_SERVER: http://localhost:12345
INVENTREE_PYTHON_TEST_USERNAME: testuser
INVENTREE_PYTHON_TEST_PASSWORD: testpassword
jobs:

test:
Expand Down Expand Up @@ -64,7 +61,7 @@ jobs:
invoke install
invoke migrate
invoke import-fixtures
invoke server -a 127.0.0.1:12345 &
invoke server -a 127.0.0.1:8000 &
invoke wait
sleep 30
- name: Unit Tests
Expand Down
3 changes: 3 additions & 0 deletions assets/release_notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
---

- Add ability to scan in received items using supplier barcodes
- Store API token, rather than username:password
- Ensure that user will lose access if token is revoked by server


### 0.12.8 - September 2023
---
Expand Down
Loading