File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
1010* Breaking Changes
1111 * None
1212* Added
13- * None
13+ * [ #684 ] ( https://github.com/binarylogic/authlogic/pull/684 ) - Use cookies
14+ only when available. Support for ` ActionController::API `
1415* Fixed
1516 * None
1617
Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ An unobtrusive ruby authentication library based on ActiveRecord.
3636 - [ 2.b. Controller] ( #2b-controller )
3737 - [ 2.b.1. Helper Methods] ( #2b1-helper-methods )
3838 - [ 2.b.2. Routes] ( #2b2-routes )
39+ - [ 2.b.3. ActionController::API] ( #2b3-actioncontroller-api )
3940 - [ 2.c. View] ( #2c-view )
4041 - [ 2.d. CSRF Protection] ( #2d-csrf-protection )
4142- [ 3. Testing] ( #3-testing )
@@ -345,6 +346,13 @@ Rails.application.routes.draw do
345346end
346347```
347348
349+ #### 2.b.3. ActionController::API
350+
351+ > Because ActionController::API does not include ActionController::Cookies
352+ > metal and ActionDispatch::Cookies rack module, Therefore, our controller can
353+ > not use the cookies method.
354+ > - [ #684 ] ( https://github.com/binarylogic/authlogic/pull/684 ) .
355+
348356### 2.c. View
349357
350358For example, in ` app/views/user_sessions/new.html.erb ` :
You can’t perform that action at this time.
0 commit comments