omniauth-radius 0.0.3 → 0.0.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 96d6869b4b2b07f93e71d0f2ac247b41a86f0804
4
- data.tar.gz: 416e4a30d4a80d075b93628248b1ade2ad707d5a
3
+ metadata.gz: b1c945d82a07a9b826ab4e7ce52e8ddde9af6ce8
4
+ data.tar.gz: cab8b8e6e1818103399d3ce75d0a7fe3fd163471
5
5
  SHA512:
6
- metadata.gz: 88d96aa7e7eb381f9031d8c950046b3d63fef6ea84f44adad86a88640d78f18385cff49969eba0ac97563140e3e94f9fdce9a4003e03cfb8ca1df77626e2e1de
7
- data.tar.gz: 13182e76663e7d60d27ebf02733f71ada6e94ea5edbcb3ddb0fe1cf4991adf0cc9e7a864874500dfdaf2f458ac4cfdd37d780c609ff5a68a39a8d99d6cb9a2cc
6
+ metadata.gz: 1d4e48717df6421a9a7cdc60b7162636ff284507795389b73736564977e8a0fcf5ec33f239c9ce717d2a4515b047934b16dd5cdc88e26665cfb910b81d930f3b
7
+ data.tar.gz: f343dac944b822dad5166372e76f8c1cc6fbea133bd5a283deba0a111f1a0427d9b2de05bcb0c37f26a695891f3574b5cc54831d2cf58b5312c31c6b984a4afe
@@ -1,5 +1,5 @@
1
1
  module Omniauth
2
2
  module Radius
3
- VERSION = "0.0.3"
3
+ VERSION = "0.0.4"
4
4
  end
5
5
  end
@@ -1,12 +1,23 @@
1
1
  require 'omniauth-oauth2'
2
+
3
+ begin
4
+ require 'dotenv'
5
+ Dotenv.load
6
+ rescue LoadError
7
+ end
8
+
2
9
  module OmniAuth
3
10
  module Strategies
4
11
  class Radius < OmniAuth::Strategies::OAuth2
5
12
 
13
+ def self.provider_url
14
+ ENV['RADIUS_OAUTH_PROVIDER_URL'] || "https://account.radiusnetworks.com"
15
+ end
16
+
6
17
  option :client_options, {
7
- :site => "https://account.radiusnetworks.com",
8
- :authorize_url => "https://account.radiusnetworks.com/auth/radius/authorize",
9
- :access_token_url => "https://account.radiusnetworks.com/auth/radius/access_token"
18
+ :site => provider_url,
19
+ :authorize_url => "#{provider_url}/auth/radius/authorize",
20
+ :access_token_url => "#{provider_url}/auth/radius/access_token"
10
21
  }
11
22
 
12
23
  uid { raw_info['id'] }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-radius
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christopher Sexton
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-11-05 00:00:00.000000000 Z
11
+ date: 2013-11-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler