lotus-auth0 0.0.2 → 0.0.3

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: 393b6026dcc47cf6506f8f188c20950e00f06f80
4
- data.tar.gz: fa22122c30c19d5c990d920d90ab2387b7d2523f
3
+ metadata.gz: 5bb0719d3ae0feaa868a6e18d74e4c18a38ea857
4
+ data.tar.gz: fb3a17942157100218c9f09de7ec8456ce4a909a
5
5
  SHA512:
6
- metadata.gz: 3b03145ac650298cf217ff1e1b9faa86ac1255f9d94b920b77f8227e67f48fecff82bf54a198bf44c9a2b7b390507485000580f82747f90ee395e3f40ca8287d
7
- data.tar.gz: 5b3989e0da8cdffc14c146324d0836e4e6a6e33fc0f5d95ed6c6811a6f536c361e2ca53ed6deeeaecab43f6a310bc34677d8827dcfaf821da45a72769dd64b91
6
+ metadata.gz: 4994bfb3da007831d048dbb0743389f56f1c3d0baa7fe210e082631c8e9009a18ecbc04cb1a7a32dd7bf2dc6b2c1d9cc57fee33f27dc7fbbd875f82feaa3505b
7
+ data.tar.gz: 6b473c28835904e9fa7accf54b8147c306a349f9397f691d29169d3bbb347594d16a6e22ec78e59bb76d79b7bb09b0290c5f0ac558ef280db99ed6e7d4b9dd06
@@ -2,9 +2,18 @@ require 'lotus/model'
2
2
  require 'lotus/entity'
3
3
 
4
4
  require 'lotus/auth0/version'
5
+ require 'lotus/auth0/config'
6
+
5
7
  require 'lotus/model/adapters/auth0_adapter'
6
8
 
7
9
  module Lotus
8
10
  module Auth0
11
+ def self.configure
12
+ yield configuration
13
+ end
14
+
15
+ def self.configuration
16
+ @configuration ||= Configuration.new
17
+ end
9
18
  end
10
19
  end
@@ -0,0 +1,7 @@
1
+ module Lotus
2
+ module Auth0
3
+ class Configuration
4
+ attr_accessor :client_id, :client_secret, :domain, :client_token
5
+ end
6
+ end
7
+ end
@@ -1,5 +1,5 @@
1
1
  module Lotus
2
2
  module Auth0
3
- VERSION = '0.0.2'
3
+ VERSION = '0.0.3'
4
4
  end
5
5
  end
@@ -13,8 +13,8 @@ module Lotus
13
13
  def initialize(_mapped_collection, _name, _identity)
14
14
  raise InvalidCollectionName unless allowed_collection_names.include?(_name.to_s)
15
15
 
16
- @client_token = ENV['AUTH0_TOKEN']
17
- @client_domain = ENV['AUTH0_DOMAIN']
16
+ @client_token = Lotus::Auth0.configuration.client_token
17
+ @client_domain = Lotus::Auth0.configuration.domain
18
18
 
19
19
  @client = Auth0Client.new(
20
20
  api_version: 2,
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lotus-auth0
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Taylor Finnell
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-11-20 00:00:00.000000000 Z
11
+ date: 2015-11-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: auth0
@@ -88,6 +88,7 @@ extensions: []
88
88
  extra_rdoc_files: []
89
89
  files:
90
90
  - lib/lotus-auth0.rb
91
+ - lib/lotus/auth0/config.rb
91
92
  - lib/lotus/auth0/version.rb
92
93
  - lib/lotus/model/adapters/auth0/collection.rb
93
94
  - lib/lotus/model/adapters/auth0/command.rb