artsy-auth 0.1.5 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8ada8281ebccc37c590fadc4437297c9532f5b53
4
- data.tar.gz: 268546c0ec15eba63341d8d0d4aabecee9087b8a
3
+ metadata.gz: 305fecf03e68be0bdf3318a8fc2101f8c3c0f353
4
+ data.tar.gz: 85ee69bbefe9a059e277b7c6e9303a1aee50cf2c
5
5
  SHA512:
6
- metadata.gz: 3c08d5cdbec65dc6a8619ce954be786fe7ec7da2c12952141ed60fc9e721432abdc73912f024d19e2f75a3f3781ff9521f54d5a1e0033aabbef3a7d014cc6a06
7
- data.tar.gz: f1e554ba44a8262bbcb33273986a7ec537bb0666956a7068ca5d8fe2cfa1241b267e59e515c910bad2753b0cc3b7cb99d15527decc83555aa48b6da589e55fec
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 `artsy_url` which will be used to redirect `sign_out` to proper location, and `artsy_api_url` for login.
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
@@ -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
@@ -10,7 +10,7 @@ module ArtsyAuth
10
10
 
11
11
  def destroy
12
12
  reset_session
13
- redirect_to "#{ArtsyAuth.config.artsy_url}/users/sign_out"
13
+ redirect_to "#{ArtsyAuth.config.artsy_api_url}/users/sign_out"
14
14
  end
15
15
 
16
16
  protected
@@ -1,3 +1,3 @@
1
1
  module ArtsyAuth
2
- VERSION = '0.1.5'.freeze
2
+ VERSION = '0.1.6'.freeze
3
3
  end
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.5
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-03 00:00:00.000000000 Z
11
+ date: 2017-04-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: omniauth-oauth2