Skip to content

Commit

Permalink
Add test for old session mode value
Browse files Browse the repository at this point in the history
  • Loading branch information
adombeck committed Jan 21, 2025
1 parent c9aeeeb commit 8484243
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions internal/broker/broker_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ func TestGetAuthenticationModes(t *testing.T) {
// Change password session
"Get_only_password_if_token_exists_and_session_is_for_changing_password": {sessionMode: sessionmode.ChangePassword, tokenExists: true},
"Get_newpassword_if_already_authenticated_with_password_and_session_is_for_changing_password": {sessionMode: sessionmode.ChangePassword, tokenExists: true, secondAuthStep: true},
"Get_only_password_if_token_exists_and_session_mode_is_the_old_passwd_value": {sessionMode: sessionmode.ChangePasswordOld, tokenExists: true},

"Error_if_there_is_no_session": {sessionID: "-", wantErr: true},

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- id: password
label: Local Password Authentication

0 comments on commit 8484243

Please sign in to comment.