stormpath-rails 1.1.0.beta → 1.1.1.beta
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +43 -9
- data/lib/generators/stormpath/install/templates/stormpath.rb +2 -2
- data/lib/stormpath/rails/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a8a37170216e2a18e2649cc7a24668b4c9adcd39
|
4
|
+
data.tar.gz: e51d475a6a3bc006fb6cc14ab1dbb52e7fafd62e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f8a2af80d898ce1d3c114c78fc0a8e24120f8875f44bf66cb5952f16ba425d5eb136fd32f3afc75f731f240ccd5df01dccf995f9c050ede423d06b2d243ad795
|
7
|
+
data.tar.gz: 9f8020e645a5e75dbe1e82cd6624d73688efc6aab714c07c2560d031d72ad3886f0fbc6b70d32981e2e28e76eb0624398067c2a11f4d142a6847cd004ed0b947
|
data/README.md
CHANGED
@@ -8,20 +8,44 @@ Stormpath makes it incredibly simple to add users and user data to your applicat
|
|
8
8
|
|
9
9
|
## Installation
|
10
10
|
|
11
|
-
|
12
|
-
|
11
|
+
Add the following line to your Gemfile. Stormpath is currently in beta so it is necessary to include the gem version
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
gem 'stormpath-rails', '~> 1.1.0.beta'
|
15
|
+
```
|
16
|
+
|
17
|
+
Bundle the Gemfile
|
18
|
+
|
19
|
+
```ruby
|
20
|
+
bundle install
|
21
|
+
```
|
22
|
+
|
23
|
+
Run the install script which will create a migration file and a config file.
|
13
24
|
|
14
|
-
To generate the inital config and setup files
|
15
25
|
```sh
|
16
|
-
|
26
|
+
rails generate stormpath:install
|
27
|
+
```
|
28
|
+
|
29
|
+
Migrate your database
|
30
|
+
```ruby
|
31
|
+
rake db:migrate
|
17
32
|
```
|
18
33
|
|
19
|
-
|
34
|
+
Create a stormpath account if you havent already, and be sure to set up environment variables
|
20
35
|
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
36
|
+
'STORMPATH_API_KEY_FILE_LOCATION' should be the location of your apiKey.properties file which you downloaded form stormpaths site
|
37
|
+
'STORMPATH_APPLICATION_HREF' should contain the href to your application, can also be found on stormpahs site
|
38
|
+
|
39
|
+
environment variables are set up in you .bashrc file or .zshrc if you use myzsh. So for example this should look something like this
|
40
|
+
|
41
|
+
```sh
|
42
|
+
export STORMPATH_API_KEY_FILE_LOCATION=~/.stormpathKey
|
43
|
+
export STORMPATH_APPLICATION_URL=https://api.stormpath.com/v1/applications/12345abc
|
44
|
+
```
|
45
|
+
|
46
|
+
environment variables can be named differently but the stormpath config file should be edited accordingly
|
47
|
+
|
48
|
+
also make sure that you have a root_path defined in your rails router.rb
|
25
49
|
|
26
50
|
## Configuration
|
27
51
|
Override any of these defaults in config/initializers/stormpath.rb
|
@@ -195,3 +219,13 @@ app/views/users/verification_email_sent.html.erb
|
|
195
219
|
app/views/users/verification_failed.html.erb
|
196
220
|
app/views/users/verification_resend.html.erb
|
197
221
|
```
|
222
|
+
|
223
|
+
### Supported Ruby Versions
|
224
|
+
|
225
|
+
* Ruby 2.0.0
|
226
|
+
* Ruby 2.1
|
227
|
+
* Ruby 2.2
|
228
|
+
|
229
|
+
### Suported Rails Versions
|
230
|
+
|
231
|
+
above Rails 3.2
|
@@ -1,4 +1,4 @@
|
|
1
1
|
Stormpath::Rails.configure do |config|
|
2
|
-
config.
|
3
|
-
config.application = ENV['STORMPATH_SDK_TEST_APPLICATION_URL']
|
2
|
+
config.api_key.file = ENV['STORMPATH_API_KEY_FILE_LOCATION']
|
3
|
+
config.application.location = ENV['STORMPATH_SDK_TEST_APPLICATION_URL']
|
4
4
|
end
|