Skip to content

Commit

Permalink
Allow case-insensitive strings for SASL mechanism
Browse files Browse the repository at this point in the history
In particular, this erases the difference between :scram_sha_256 (the
Net::SMTP authtype) and "SCRAM-SHA-256" (the SASL mechanism).
  • Loading branch information
nevans committed Oct 15, 2023
1 parent 950be62 commit 3d14232
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/net/smtp/test_smtp.rb
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ def test_start_auth_plain
Net::SMTP.start('localhost', port, user: 'account', password: 'password', authtype: :plain){}

port = fake_server_start(auth: 'plain')
Net::SMTP.start('localhost', port, authtype: :plain,
Net::SMTP.start('localhost', port, authtype: "PLAIN",
auth: {username: 'account', password: 'password'}){}

port = fake_server_start(auth: 'plain')
Expand Down

0 comments on commit 3d14232

Please sign in to comment.