Commit Graph

116 Commits

Author SHA1 Message Date
Kenneth Kehl
cde0ab018a fix null on some unit tests 2024-04-02 14:02:04 -07:00
Kenneth Kehl
10ed1dab22 fixes 2024-04-02 13:46:47 -07:00
Kenneth Kehl
817c01faff change state to something non-arbitrary 2024-04-02 13:32:32 -07:00
Carlo Costino
0e0ee8ae0c Merge pull request #1341 from GSA/notify-admin-1304
Add error handling for successful Login.gov authentications without a…
2024-03-26 11:07:52 -04:00
Kenneth Kehl
addc078cbe merge from main 2024-03-22 11:57:47 -07:00
Kenneth Kehl
6efb16120d Add error handling for successful Login.gov authentications without a Notify account 2024-03-21 09:34:55 -07:00
Kenneth Kehl
197ef11075 fix tests 2024-03-19 11:32:36 -07:00
Carlo Costino
b4986e4170 Enable Login.gov for all environments
Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-03-19 13:59:30 -04:00
Kenneth Kehl
4e6f143675 fix register from join service 2024-03-19 09:30:20 -07:00
Kenneth Kehl
492f798274 update login.gov stuff to use user uuid instead of email (notify-admin-1277) 2024-03-08 09:04:56 -08:00
Carlo Costino
92fc35b6f6 Only enable Login.gov link for demo right now
We are holding off on production until we have a chance to share more information with pilot partners.

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-02-26 17:47:42 -05:00
Kenneth Kehl
470574e197 enable login.gov link on demo and production and adjust test 2024-02-26 17:47:42 -05:00
Kenneth Kehl
4043e0dbaf fix PEM string 2024-01-17 07:46:27 -08:00
Kenneth Kehl
59faa8fd42 some debugging 2023-12-15 14:20:54 -08:00
Kenneth Kehl
f54a79bdf9 reformat private key 2023-12-15 12:16:03 -08:00
Kenneth Kehl
cec2d7ea02 reformat private key 2023-12-15 12:07:54 -08:00
Kenneth Kehl
bc32c62dc6 flake8 2023-12-15 07:20:34 -08:00
Kenneth Kehl
72a2cf554a add debugging statement 2023-12-15 07:18:47 -08:00
Kenneth Kehl
f7f1b7fb3e fix initial url import to signin.html 2023-12-14 09:17:32 -08:00
Kenneth Kehl
19b0f8a76d flake8 2023-12-14 09:11:32 -08:00
Kenneth Kehl
7ffd3f5031 code review feedback 2023-12-14 07:34:33 -08:00
Kenneth Kehl
70de61c695 fix whitespace 2023-12-11 07:50:45 -08:00
Kenneth Kehl
83dfdc31f2 fix flake8 2023-11-14 11:13:16 -08:00
Kenneth Kehl
22d728f0f8 cleanup 2023-11-14 10:14:35 -08:00
Kenneth Kehl
bda164f2a1 fix flake8 2023-11-10 14:10:49 -08:00
Kenneth Kehl
6f9e55cba0 debug and etc 2023-11-10 11:08:52 -08:00
Kenneth Kehl
e5403a52f1 notify-admin-338 login.gov integration 2023-11-02 14:10:22 -07:00
Kenneth Kehl
1d790868f3 merge from main 2023-10-31 12:22:06 -07:00
Kenneth Kehl
782cff2d5f fiddle with logout 2023-10-20 09:34:39 -07:00
Kenneth Kehl
7ca258b547 work on logout 2023-10-20 08:48:04 -07:00
Kenneth Kehl
1d1e7747d0 cleanup login.gov work 2023-10-19 12:22:36 -07:00
Kenneth Kehl
86ac810fff initial for login.gov integration 2023-10-18 15:18:37 -07:00
Kenneth Kehl
91f1790c89 fix up 2023-09-13 12:16:43 -07:00
Kenneth Kehl
705808e0e5 remove TODO comment 2023-09-12 10:37:14 -07:00
Kenneth Kehl
f813a403a9 fix tests to use env vars 2023-09-11 14:23:12 -07:00
Kenneth Kehl
29ea098fd3 make some progress 2023-09-08 12:53:35 -07:00
Kenneth Kehl
cc8f8dfcc2 initial 2023-09-08 08:38:27 -07:00
Kenneth Kehl
8c9721d8e2 notify-api-412 use black to enforce python coding style 2023-08-25 09:12:23 -07:00
Jonathan Bobel
d66ff27bae Merge branch 'main' of https://github.com/GSA/notifications-admin into 686-remove-uk-styles
# Conflicts:
#	app/assets/stylesheets/main.scss
#	app/templates/views/find-users/user-information.html
#	app/templates/views/two-factor-webauthn.html
#	app/templates/views/user-profile/manage-security-key.html
#	app/templates/views/user-profile/security-keys.html
#	gulpfile.js
2023-08-15 13:29:39 -04:00
Carlo Costino
9e609efa1c Remove webauthn hooks
This changeset removes webauthn from the Notify.gov admin app.  We are not using webauthn at all in our implementation and will be looking at an entirely different authentication system in the near future.

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2023-08-14 16:59:38 -04:00
Jonathan Bobel
348e29fb40 - Removed links to the gov uk stylesheets
- Deleted /stylesheets folder
- Removed sass build from gulpfile
- Changed gov links to usa links
- Changed other govuk styles, like breadcrumbs
- Changed name of uk_components file to us_components
- Fixed a few tests that broke on account of the changes
2023-08-08 16:19:17 -04:00
Jonathan Bobel
68e94dd650 Addressing most of the low-lift items from the Notify content audit (#491) 2023-05-08 10:49:30 -04:00
Leo Hemsted
71d3aa13d7 follow sign_in redirect even if you're already signed in 2021-08-17 14:44:09 +01:00
Chris Hill-Scott
db15e3ebb0 Style link in wrong password error
It was missing the class which gives it the correct colour and underline styles.

Also adds a little bit of spacing to make it look better.
2021-07-14 09:42:56 +01:00
Leo Hemsted
7b3751240c ensure user details are always in the session after entering password
We signal that we're mid-way through the sign-in flow by adding a
`user_details` dict to the session.

previously, we'd only put a user's details in the session in `User.sign_in`,
just before sending any 2fa prompt and redirecting to the two factor
pages.

However, we found a bug where a user with no session (eg, using a fresh
browser) tried to log in, but they had never clicked the link to
validate their email address when registering. Their user's state was
still in "pending", so we redirected to `main.resend_email_verification`
as intended - however, they didn't have anything in the session and the
resend page expected to get the email address to resend to out of that.

To be safe, as soon as we've confirmed the user has entered their
password correctly, lets save the session data at that point. That way
any redirects will be fine.
2021-06-29 18:13:25 +01:00
Leo Hemsted
c203f624ca rename two_factor to two_factor_sms
it's a bit confusing now that there are three endpoints. the other two
are already renamed two_factor_email and two_factor_webauthn
2021-06-01 19:08:57 +01:00
Leo Hemsted
907a7dc363 create webauthn 2fa page
if user has `webauthn_auth` as their auth type, then redirect them to an
interstitial that prompts them to click on a button which right now just
logs to the JS console, but in a future commit will open up the webauthn
browser prompt

content is unsurprisingly not final.
2021-06-01 18:44:54 +01:00
Pea Tyczynska
2a756f90d4 Add webauth as an auth type
When showing what auth type user uses to sign in, add a text
for users with webauthn.

On password change or sign in, throw not implemented error
if user uses webauthn auth.
2021-05-12 17:40:31 +01:00
Leo Hemsted
0d350bdaf8 remove invited_user from session entirely
now that we no longer set it since
https://github.com/alphagov/notifications-admin/pull/3841 was merged, we
don't need to remove it either. And we can remove checks that expect it
when cleaning up the session. And the unit tests that make sure we
ignore it if it's in the session.

So long, session['invited_user'] and session['invited_org_user']!
2021-03-17 12:27:26 +00:00
Leo Hemsted
45297eae43 store invited user ids in session
same as the invited org user ids in the previous commit
2021-03-15 12:21:58 +00:00