Skip to content

Commit b1f31b1

Browse files
authored
Merge pull request rails#42468 from EmmaB/main
Update http_authentication.rb
2 parents c8f0c64 + e518999 commit b1f31b1

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

actionpack/lib/action_controller/metal/http_authentication.rb

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
require "active_support/security_utils"
55

66
module ActionController
7-
# Makes it dead easy to do HTTP Basic, Digest and Token authentication.
7+
# HTTP Basic, Digest and Token authentication.
88
module HttpAuthentication
9-
# Makes it dead easy to do HTTP \Basic authentication.
9+
# HTTP \Basic authentication.
1010
#
1111
# === Simple \Basic example
1212
#
@@ -24,8 +24,8 @@ module HttpAuthentication
2424
#
2525
# === Advanced \Basic example
2626
#
27-
# Here is a more advanced \Basic example where only Atom feeds and the XML API is protected by HTTP authentication,
28-
# the regular HTML interface is protected by a session approach:
27+
# Here is a more advanced \Basic example where only Atom feeds and the XML API are protected by HTTP authentication.
28+
# The regular HTML interface is protected by a session approach:
2929
#
3030
# class ApplicationController < ActionController::Base
3131
# before_action :set_account, :authenticate
@@ -134,7 +134,7 @@ def authentication_request(controller, realm, message)
134134
end
135135
end
136136

137-
# Makes it dead easy to do HTTP \Digest authentication.
137+
# HTTP \Digest authentication.
138138
#
139139
# === Simple \Digest example
140140
#
@@ -330,7 +330,7 @@ def opaque(secret_key)
330330
end
331331
end
332332

333-
# Makes it dead easy to do HTTP Token authentication.
333+
# HTTP Token authentication.
334334
#
335335
# Simple Token example:
336336
#
@@ -358,8 +358,8 @@ def opaque(secret_key)
358358
# end
359359
#
360360
#
361-
# Here is a more advanced Token example where only Atom feeds and the XML API is protected by HTTP token authentication,
362-
# the regular HTML interface is protected by a session approach:
361+
# Here is a more advanced Token example where only Atom feeds and the XML API are protected by HTTP token authentication.
362+
# The regular HTML interface is protected by a session approach:
363363
#
364364
# class ApplicationController < ActionController::Base
365365
# before_action :set_account, :authenticate

0 commit comments

Comments
 (0)