File tree Expand file tree Collapse file tree 2 files changed +21
-0
lines changed
Expand file tree Collapse file tree 2 files changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77
88## [ Unreleased]
99
10+ ## [ v2.0.0]
11+
1012### Added
1113- Added dummy route for ` /auth/rpi ` to add path helper ` rpi_auth_login ` (#44 )
1214- Request and routing specs inside the "dummy" testing app (#44 )
@@ -67,6 +69,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6769- callback, logout and failure routes to handle auth
6870
6971[ Unreleased ] : https://github.com/RaspberryPiFoundation/rpi-auth/compare/v1.4.0...HEAD
72+ [ v2.0.0 ] : https://github.com/RaspberryPiFoundation/rpi-auth/releases/tag/v2.0.0
7073[ v1.4.0 ] : https://github.com/RaspberryPiFoundation/rpi-auth/releases/tag/v1.4.0
7174[ v1.3.0 ] : https://github.com/RaspberryPiFoundation/rpi-auth/releases/tag/v1.3.0
7275[ v1.2.1 ] : https://github.com/RaspberryPiFoundation/rpi-auth/releases/tag/v1.2.1
Original file line number Diff line number Diff line change 1+ # Upgrading rpi-auth
2+
3+ Here are the details of the changes needed when upgrading between major versions of this gem.
4+
5+ ## v1 to v2
6+
7+ Definitely change the following:
8+
9+ 1 . [ ] Replace references to ` RpiAuth::AuthenticationHelper ` with ` RpiAuth::Controllers::CurrentUser ` .
10+ 2 . [ ] Change ` extend RpiAuth::Models::Authenticatable ` to ` include RpiAuth::Models::Authenticatable ` .
11+
12+ You might also need to;
13+
14+ * [ ] Remove dummy ` login ` route in ` /config/routes.rb ` , and replace references to ` login_path ` with ` rpi_auth_login_path ` .
15+ * [ ] Change [ the railties order] ( https://github.com/RaspberryPiFoundation/rpi-auth/blob/v2.0.0/README.md#globbedcatch-all-routes ) if your app uses globbed/catch-all routes
16+
17+
18+
You can’t perform that action at this time.
0 commit comments