stormpath-omniauth 1.0.0.beta.2 → 1.0.0.beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/README.md CHANGED
@@ -1,30 +1,57 @@
1
-
2
1
  # Stormpath OmniAuth Strategy
3
2
 
4
3
  Stormpath is the first easy, secure user management and authentication service
5
4
  for developers. This is an OmniAuth strategy that will integrate with Stormpath.
6
5
 
7
- ## Quickstart Guide
6
+ ## Setup
7
+
8
+ ### <a name="signup"></a>Sign Up For A Stormpath Account
9
+
10
+ 1. Create a [Stormpath](http://www.stormpath.com) developer account and [create your API Keys](https://stormpath.com/docs/console/product-guide#!ManageAPIkeys)
11
+ downloading the "apiKey.properties" file into a ".stormpath"
12
+ folder under your local home directory. So that the Rails gem knows where to find this file,
13
+ add an environment variable called `STORMPATH_API_KEY_FILE_LOCATION` whose value is the full
14
+ path to this new .properties file:
15
+
16
+ ```
17
+ export STORMPATH_API_KEY_FILE_LOCATION="/Users/john/.stormpath/apiKey.properties"
18
+ ```
19
+
20
+ 2. Within Stormpath's Admin Console, create an application and a directory to store your users' accounts through the [Stormpath Admin](https://stormpath.com/docs/console/product-guide) interface. Make sure to add the newly-created directory as a Account Store for your newly-created application.
8
21
 
9
- 1. From the root of the repo, navigate to the dummy directory and execute the
10
- following Rake tasks:
22
+ 3. Through the [Stormpath Admin](https://stormpath.com/docs/console/product-guide) interface, note your application's REST URL. You'll want to create an environment variable called "STORMPATH\_APPLICATION\_URL" whose value is this URL. For example, add into your ~/.bashrc file on OS X:
23
+
24
+ ```
25
+ export STORMPATH_APPLICATION_URL="https://api.stormpath.com/v1/applications/YOUR_APP_ID"
26
+ ```
27
+
28
+ ### Install and Configure The Stormpath Omniauth Gem
29
+
30
+ 1. Clone the [Stormpath-Omniauth](https://github.com/stormpath/stormpath-omniauth) repository to your local machine.
31
+
32
+ 2. From the root of the repo, navigate to the "spec/dummy" directory within the cloned repo and execute the following Rake tasks to install the stormpath-omniauth gem:
11
33
 
12
34
  ```sh
13
35
  cd spec/dummy
36
+ gem install bundler
37
+ bundle install
14
38
  rake db:migrate
15
39
  rake db:test:prepare
16
40
  ```
17
41
 
42
+ <!--
18
43
  1. You should then be able to run the full suite of specs from the root of the
19
- repo, like so:
44
+ repo using the following commands:
20
45
 
21
46
  ```sh
47
+ cd ../../
22
48
  rake spec
23
49
  ```
50
+ -->
24
51
 
25
52
  ## Usage
26
53
 
27
- To use this with Rails, include the following initializer:
54
+ To use this integration with Rails, include the following initializer in your Rails application:
28
55
 
29
56
  ```ruby
30
57
  # if using 'stormpath-rails'
@@ -36,9 +63,9 @@ Rails.application.config.middleware.use OmniAuth::Builder do
36
63
  end
37
64
  ```
38
65
 
39
- Check out this [Rails sample app][rails-omniauth-sample].
66
+ For an example to follow, refer to the [Rails sample app](https://github.com/stormpath/stormpath-ruby-samples/tree/master/rails).
40
67
 
41
- To use this with Sinatra, include the following:
68
+ To use this integration with Sinatra, include the following in your Sinatra application:
42
69
 
43
70
  ```ruby
44
71
  use OmniAuth::Builder do
@@ -49,11 +76,8 @@ end
49
76
 
50
77
  ```
51
78
 
52
- Check out this [Sinatra sample app][sinatra-omniauth-sample].
79
+ For an example to follow, refer to the [Sinatra sample app](https://github.com/stormpath/stormpath-ruby-samples/tree/master/sinatra).
53
80
 
54
81
  The Stormpath OmniAuth strategy requires only that you pass (as an option) a
55
82
  reference to an instance of Stormpath::Resource::Application that the strategy
56
83
  will use to authenticate login attempts.
57
-
58
- [sinatra-omniauth-sample]: https://github.com/stormpath/stormpath-ruby-samples/tree/master/sinatra-omniauth
59
- [rails-omniauth-sample]: https://github.com/stormpath/stormpath-ruby-samples/tree/master/rails-omniauth
@@ -1,3 +1,3 @@
1
1
  module StormpathOmniauth
2
- VERSION = "1.0.0.beta.2"
2
+ VERSION = "1.0.0.beta.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stormpath-omniauth
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.beta.2
4
+ version: 1.0.0.beta.3
5
5
  prerelease: 6
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-08-13 00:00:00.000000000 Z
13
+ date: 2013-08-29 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: bcrypt-ruby