File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -182,7 +182,7 @@ credentials are hashed instead and a
182
182
is sent.
183
183
184
184
Using digest authentication with Rails can be done by using
185
- the[ ` authenticate_or_request_with_http_digest ` ] [ ] method:
185
+ the [ ` authenticate_or_request_with_http_digest ` ] [ ] method:
186
186
187
187
``` ruby
188
188
class AdminsController < ApplicationController
@@ -199,7 +199,7 @@ class AdminsController < ApplicationController
199
199
end
200
200
```
201
201
202
- The` authenticate_or_request_with_http_digest ` block takes only one argument -
202
+ The ` authenticate_or_request_with_http_digest ` block takes only one argument -
203
203
the username. The block returns the password if found. If the return value is
204
204
` false ` or ` nil ` , it is considered an authentication failure.
205
205
@@ -212,7 +212,7 @@ Token authentication (aka "Bearer" authentication) is an authentication method
212
212
where a client receives a unique token after successfully logging in, which it
213
213
then includes in the ` Authorization ` header of future requests. Instead of
214
214
sending credentials with each request, the client sends this
215
- [ token] ( ( https://api.rubyonrails.org/classes/ActionController/HttpAuthentication/Token.html) )
215
+ [ token] ( https://api.rubyonrails.org/classes/ActionController/HttpAuthentication/Token.html )
216
216
(a string that represents the user's session) as a "bearer" of the
217
217
authentication.
218
218
You can’t perform that action at this time.
0 commit comments