Rachid Mrad
59c8625102
Merge pull request #1916 from cisagov/rjm/1814-401
...
Issue #1814 : Enhance state mismatch error handling and messaging
2024-03-22 18:05:30 -04:00
Rachid Mrad
d2c6a2df8b
change StateMismatch to inherit AuthenticationFailed
2024-03-20 12:29:12 -04:00
Rachid Mrad
3ea0d90853
lint
2024-03-19 16:51:38 -04:00
Rachid Mrad
e4c1b06f63
unit tests
2024-03-19 16:48:36 -04:00
Rachid Mrad
d04b54a9f9
fix typo
2024-03-19 12:04:46 -04:00
Rachid Mrad
6f8af3f5c3
attempt redirect_attempted pop from session in else clause
2024-03-19 12:03:13 -04:00
zandercymatics
361392ba71
Linting activities
2024-03-18 14:44:27 -06:00
zandercymatics
b4829d650a
Refactor
2024-03-18 12:28:21 -06:00
Rachid Mrad
bdffaca099
formatting
2024-03-15 16:01:42 -04:00
Rachid Mrad
ea43a34dee
Attempt a redirect (once) if there's a state mismatch
2024-03-15 15:34:53 -04:00
Rachid Mrad
63c0aec4b8
enhance state mismatch error message
2024-03-15 14:29:41 -04:00
David Kennedy
f5a1348ccb
updated comment
2024-02-14 17:11:55 -05:00
David Kennedy
3387ec032b
handle logout when no session is present
2024-02-14 12:09:27 -05:00
David Kennedy
69f6f4db0c
added a debug message when client needs to be re-initialized
2024-02-13 10:37:34 -05:00
David Kennedy
9dff75d392
tests for login_callback
2024-02-09 15:28:03 -05:00
David Kennedy
6820456286
openid tests
2024-02-09 14:25:11 -05:00
David Kennedy
1df7dc48df
oidc error on init logs error; oidc re-inits on request if in error state
2024-02-09 08:35:30 -05:00
David Kennedy
2a676260c6
health check to /health, updated testing of /health, cleaned up extraneous debug logging
2024-02-07 13:08:26 -05:00
David Kennedy
80ca25339d
debugging for oidc
2024-02-06 20:34:57 -05:00
David Kennedy
0546bd08e5
suppressed logging from all test cases; made slight changes to handling of exceptions in connection pooling
2024-01-29 18:22:35 -05:00
Rachid Mrad
3f8e5ce204
Revisions on model
2024-01-23 18:15:56 -05:00
Rachid Mrad
510da21934
Implement VIP table and fix 401 login bug
2024-01-18 19:58:53 -05:00
Michelle Rago
e2af9ac153
Text updates to success and error messages ( #1593 )
...
* Text updates to error messages
* Error message text updates
* Error message text updates
* Update to success message text for name server update
* Update to DS data removal warning text
* Success message text updates
* typo fix
* Text updates for success messages
* Update 403 text
* Update 500 error text
* Using example.com instead of city.com
* Putting the period outside the link
* Updated name server minimum error text
* Trying to fix python errors
* Update name server minimum text
* Update errors.py
* Trying to fix python errors
* Update errors.py
* Making error messages agree
* Minor text change
* Fix black error message formatting
* Fixed tests and reformatted
* One last fix?
---------
Co-authored-by: Neil Martinsen-Burrell <neil.martinsen-burrell@gsa.gov>
2024-01-09 09:19:51 -05:00
Rachid Mrad
9c8ed1682b
linter
2023-12-13 15:41:18 -05:00
Rachid Mrad
4adeb6722b
Revisions and clean up based on PR comments
2023-12-13 15:13:04 -05:00
Rachid Mrad
9b90172cd3
lint
2023-12-12 20:26:46 -05:00
Rachid Mrad
7c5eb79f0a
cleanup
2023-12-12 19:31:36 -05:00
Rachid Mrad
18e215dd08
Logger cleanup
2023-12-12 19:31:09 -05:00
Rachid Mrad
2f47272fff
Logger cleanup
2023-12-12 19:28:38 -05:00
Rachid Mrad
5254b7cda8
Logger cleanup
2023-12-12 19:27:45 -05:00
Rachid Mrad
e7e3df0422
Lint
2023-12-12 18:28:25 -05:00
David Kennedy
abae70b96e
added unit test for conflicting first and last names
2023-12-11 20:49:33 -05:00
David Kennedy
e7c26d9dc6
wrote test cases for testing backends.py authenticate
2023-12-11 20:03:00 -05:00
David Kennedy
e4803d6afd
refactored authenticate for readability
2023-12-11 19:08:34 -05:00
David Kennedy
fd19726a30
updated logic in oidc backend authenticate to not override with blank first_name/last_name
2023-12-11 19:03:10 -05:00
Rachid Mrad
270e910520
Bring in latest updates to comments from source PR branch
2023-12-11 17:22:51 -05:00
Rachid Mrad
e25dad495e
Intercept userinfo from login.gov and append given_name and family_name if user requires ial1 and exists in DB
2023-12-11 17:20:47 -05:00
David Kennedy
f7fdecfd33
updated comments to reflect tests; made logic more readable in needs_identity_verification
2023-12-08 17:32:25 -05:00
David Kennedy
0ed0cb6c37
all hail the linter
2023-12-08 11:30:15 -05:00
David Kennedy
294da6a1e2
fixed test oidc to work locally and PASS in pipeline
2023-12-08 11:26:33 -05:00
David Kennedy
a6ae9ad74e
fixed tests for djangooidc
2023-12-08 11:05:07 -05:00
David Kennedy
3bbfd5cd88
fixed test in pipeline
2023-12-08 10:43:56 -05:00
David Kennedy
5be972e068
testing test failure in pipeline
2023-12-08 10:13:38 -05:00
David Kennedy
02f5c81a58
debugging to figure out why test working in local, but not in pipeline
2023-12-08 09:30:15 -05:00
Rachid Mrad
1001454a85
More oidc tests test_login_callback_requires_step_up_auth and test_login_callback_no_step_up_auth, lint
2023-12-07 16:33:35 -05:00
Rachid Mrad
1a2b16a3da
WIP on more oidc testing
2023-12-07 14:46:21 -05:00
Rachid Mrad
ecb30fd73e
Unit tests for the requires_step_up_auth logic in login_callback
2023-12-07 01:27:27 -05:00
Rachid Mrad
ef9a542dda
Clean up loggers
2023-12-06 19:53:15 -05:00
Rachid Mrad
67d20a6296
Move the test for requires_step_up_auth up above the user authentication in login_callback, imlement needs_identity_verification in user model
2023-12-06 18:16:50 -05:00
David Kennedy
f6a288f511
set up step_up_auth using stubbed out User.needs_identity_verification
2023-12-06 15:49:21 -05:00