artsy-auth 0.1.5 → 0.1.6
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.
- checksums.yaml +4 -4
- data/README.md +1 -2
- data/lib/artsy-auth/config.rb +0 -2
- data/lib/artsy-auth/session_controller.rb +1 -1
- data/lib/artsy-auth/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 305fecf03e68be0bdf3318a8fc2101f8c3c0f353
|
|
4
|
+
data.tar.gz: 85ee69bbefe9a059e277b7c6e9303a1aee50cf2c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7f0adf37a1c0c4595c8dcd7f86604ce56f1a842f70b788c0b49d459b7a473da3e8c5f45c57f4fd6e89d13b9a31e6756a6c36a3f52078aadc4ce16030b83204c0
|
|
7
|
+
data.tar.gz: 87ff585e1c801ea3d3fec086eea12eb1df5e3b5a1eb04816096ad4ba098f63472519869c09f2b9a9e5474414879c40046d53445004c70f2449907da16830e4ec
|
data/README.md
CHANGED
|
@@ -13,14 +13,13 @@ gem 'artsy-auth'
|
|
|
13
13
|
Artsy Auth is based on [`Rails::Engine`](http://api.rubyonrails.org/classes/Rails/Engine.html).
|
|
14
14
|
|
|
15
15
|
### Configure
|
|
16
|
-
Add `artsy_auth.rb` under `config/initializers`. We need to configure `ArtsyAuth` to use proper Artsy `application_id` and `application_secret`. Also it needs `
|
|
16
|
+
Add `artsy_auth.rb` under `config/initializers`. We need to configure `ArtsyAuth` to use proper Artsy `application_id` and `application_secret`. Also it needs `artsy_api_url` which will be used to redirect `sign_in` and `sign_out` to proper location.
|
|
17
17
|
`callback_url` defines after a successful omniauth handshake, where should we get redirected to.
|
|
18
18
|
|
|
19
19
|
```ruby
|
|
20
20
|
# config/initalizers/artsy_auth.rb
|
|
21
21
|
ArtsyAuth.configure do |config|
|
|
22
22
|
config.artsy_api_url = 'https://stagingapi.artsy.net' # required
|
|
23
|
-
config.artsy_url = 'https://staging.artsy.net' # required
|
|
24
23
|
config.callback_url = '/admin' # optional
|
|
25
24
|
config.application_id = '321322131' # required
|
|
26
25
|
config.application_secret = '123123asdasd' # required
|
data/lib/artsy-auth/config.rb
CHANGED
|
@@ -3,14 +3,12 @@ module ArtsyAuth
|
|
|
3
3
|
extend self
|
|
4
4
|
|
|
5
5
|
attr_accessor :artsy_api_url
|
|
6
|
-
attr_accessor :artsy_url
|
|
7
6
|
attr_accessor :application_id
|
|
8
7
|
attr_accessor :application_secret
|
|
9
8
|
attr_accessor :callback_url
|
|
10
9
|
|
|
11
10
|
def reset
|
|
12
11
|
self.artsy_api_url = nil
|
|
13
|
-
self.artsy_url = nil
|
|
14
12
|
self.callback_url = '/'
|
|
15
13
|
self.application_id = nil
|
|
16
14
|
self.application_secret = nil
|
data/lib/artsy-auth/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: artsy-auth
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Artsy
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-04-
|
|
11
|
+
date: 2017-04-04 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: omniauth-oauth2
|