omniauth-naranya_id 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: c4711dada90933e432f48d98714255757b639097
4
+ data.tar.gz: cdca19404edb5e966db62ca1112b422f94ef5843
5
+ SHA512:
6
+ metadata.gz: e838aa519f8f92eb42988330d8e93f792250697a0c237b2603d06a12ea8ef0d40c74d63406f613c1a46037b6767caf6d9b99b1e1857489bd7d5066bad0dc5b78
7
+ data.tar.gz: c895b918b6872427338bb2ba5956cc6a691eb168e70a341ad91b93fe95d68f1541282b48688598fa83af45b167505674b4442bfbd519855e2da55095578f4e1e
data/.gitignore ADDED
@@ -0,0 +1,23 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ Gemfile.lock
7
+ InstalledFiles
8
+ _yardoc
9
+ coverage
10
+ doc/
11
+ lib/bundler/man
12
+ pkg
13
+ rdoc
14
+ spec/reports
15
+ test/tmp
16
+ test/version_tmp
17
+ tmp
18
+ *.bundle
19
+ *.so
20
+ *.o
21
+ *.a
22
+ mkmf.log
23
+ /.ruby-version
data/.rspec ADDED
@@ -0,0 +1 @@
1
+ --colour
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in omniauth-naranya_id.gemspec
4
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2014 Roberto Quintanilla
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,129 @@
1
+ # OmniAuth NaranyaID
2
+
3
+ This gem contains the NaranyaID strategy for OmniAuth.
4
+
5
+ NaranyaID uses OAuth 1.0a.
6
+
7
+ ## Before You Begin
8
+
9
+ You should have already installed OmniAuth into your app; if not, read the [OmniAuth README](https://github.com/intridea/omniauth) to get started.
10
+
11
+ Currently, the consumer must be set up by the admins of NaranyaID. The generated consumer key and consumer secret must be obtained from the admins responsible of setting up the consumer in NaranyaID.
12
+
13
+ ## Using This Strategy
14
+
15
+ First start by adding this gem to your Gemfile:
16
+
17
+ ```ruby
18
+ gem 'omniauth-naranya_id'
19
+ ```
20
+
21
+ If you need to use the latest HEAD version, you can do so with:
22
+
23
+ ```ruby
24
+ gem 'omniauth-naranya_id', git: 'ssh://git.naranya.net/naranya-market/omniauth-naranya-id'
25
+ ```
26
+
27
+ Next, tell OmniAuth about this provider. For a Rails app, your `config/initializers/omniauth.rb` file should look like this:
28
+
29
+ ```ruby
30
+ Rails.application.config.middleware.use OmniAuth::Builder do
31
+ provider :naranya_id, "CONSUMER_KEY", "CONSUMER_SECRET"
32
+ end
33
+ ```
34
+
35
+ Replace CONSUMER_KEY and CONSUMER_SECRET with the appropriate values you obtained from the admins of NaranyaID earlier.
36
+
37
+ ## Authentication Options
38
+
39
+ No known authentication options available.
40
+
41
+ ## Authentication Hash
42
+ An example auth hash available in `request.env['omniauth.auth']`:
43
+
44
+ ```ruby
45
+ {
46
+ :provider => "naranya_id",
47
+ :uid => "123456",
48
+ :info => {
49
+ :nickname => "johnqpublic",
50
+ :name => "John Q Public",
51
+ :location => "Anytown, USA",
52
+ :image => "http://si0.twimg.com/sticky/default_profile_images/default_profile_2_normal.png",
53
+ :description => "a very normal guy.",
54
+ :urls => {
55
+ :Website => nil,
56
+ :Twitter => "https://twitter.com/johnqpublic"
57
+ }
58
+ },
59
+ :credentials => {
60
+ :token => "a1b2c3d4...", # The OAuth 2.0 access token
61
+ :secret => "abcdef1234"
62
+ },
63
+ :extra => {
64
+ :access_token => "", # An OAuth::AccessToken object
65
+ :raw_info => {
66
+ :name => "John Q Public",
67
+ :listed_count => 0,
68
+ :profile_sidebar_border_color => "181A1E",
69
+ :url => nil,
70
+ :lang => "en",
71
+ :statuses_count => 129,
72
+ :profile_image_url => "http://si0.twimg.com/sticky/default_profile_images/default_profile_2_normal.png",
73
+ :profile_background_image_url_https => "https://twimg0-a.akamaihd.net/profile_background_images/229171796/pattern_036.gif",
74
+ :location => "Anytown, USA",
75
+ :time_zone => "Chicago",
76
+ :follow_request_sent => false,
77
+ :id => 123456,
78
+ :profile_background_tile => true,
79
+ :profile_sidebar_fill_color => "666666",
80
+ :followers_count => 1,
81
+ :default_profile_image => false,
82
+ :screen_name => "",
83
+ :following => false,
84
+ :utc_offset => -3600,
85
+ :verified => false,
86
+ :favourites_count => 0,
87
+ :profile_background_color => "1A1B1F",
88
+ :is_translator => false,
89
+ :friends_count => 1,
90
+ :notifications => false,
91
+ :geo_enabled => true,
92
+ :profile_background_image_url => "http://twimg0-a.akamaihd.net/profile_background_images/229171796/pattern_036.gif",
93
+ :protected => false,
94
+ :description => "a very normal guy.",
95
+ :profile_link_color => "2FC2EF",
96
+ :created_at => "Thu Jul 4 00:00:00 +0000 2013",
97
+ :id_str => "123456",
98
+ :profile_image_url_https => "https://si0.twimg.com/sticky/default_profile_images/default_profile_2_normal.png",
99
+ :default_profile => false,
100
+ :profile_use_background_image => false,
101
+ :entities => {
102
+ :description => {
103
+ :urls => []
104
+ }
105
+ },
106
+ :profile_text_color => "666666",
107
+ :contributors_enabled => false
108
+ }
109
+ }
110
+ }
111
+ ```
112
+
113
+ ## Note on Patches/Pull Requests
114
+
115
+ - Fork the project.
116
+ - Make your feature addition or bug fix.
117
+ - Add tests for it. This is important so I don’t break it in a future version unintentionally.
118
+ - Commit, do not mess with rakefile, version, or history. (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
119
+ - Send me a pull request. Bonus points for topic branches.
120
+
121
+ ## License
122
+
123
+ Copyright (c) 2013 Naranya Innovation Unit
124
+
125
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
126
+
127
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
128
+
129
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/Rakefile ADDED
@@ -0,0 +1,2 @@
1
+ require "bundler/gem_tasks"
2
+
data/lib/naranya_id.rb ADDED
@@ -0,0 +1,66 @@
1
+ require 'oauth'
2
+ require 'active_support'
3
+ module NaranyaId
4
+
5
+ extend ActiveSupport::Autoload
6
+
7
+ autoload :User
8
+
9
+ include ActiveSupport::Configurable
10
+
11
+ CONSUMER_DEFAULTS = {
12
+ # TODO: Eliminar el :signature_method cuando se solucione el problema
13
+ # con la firma del endpoint de access_token de Naranya ID:
14
+ # (Se reestablecerá el default de 'HMAC-SHA1')
15
+ signature_method: "PLAINTEXT",
16
+
17
+ # Sitio de Naranya ID:
18
+ # TODO: Sustituir con el URL de producción (https)
19
+ #site: "http://192.237.215.233:89",
20
+ site: "http://192.237.215.233",
21
+
22
+ scheme: :query_string,
23
+ http_method: :post,
24
+ request_token_path: "/oauthv1/request_token.php",
25
+ access_token_path: "/oauthv1/access_token.php",
26
+ authorize_path: "/oauthv1/authorize.php"
27
+ }.with_indifferent_access.freeze
28
+
29
+ class << self
30
+
31
+ def consumer
32
+ auto_conf unless config.present?
33
+ @@consumer ||= begin
34
+ ::OAuth::Consumer.new config.api_key, config.api_secret, CONSUMER_DEFAULTS.merge( site: CONSUMER_DEFAULTS[:site] + ":89")
35
+ end
36
+ end
37
+
38
+ def setup
39
+ yield config
40
+ end
41
+
42
+ def options
43
+ auto_conf unless config.present?
44
+ opts = config.clone
45
+ opts.delete :api_key
46
+ opts.delete :api_secret
47
+ opts
48
+ end
49
+
50
+ def load_config_from_yml(yml_path, env="production")
51
+ raise "YAML file doesn't exist" unless File.exist?(yml_path)
52
+ yml_config = YAML::load(ERB.new(File.read(yml_path)).result)[env]
53
+ setup { |config| yml_config.each { |key, val| config.send "#{key}=".to_sym, val } }
54
+ end
55
+
56
+ protected
57
+ def auto_conf
58
+ # Cargar configuracion dentro del folder de config en Rails:
59
+ if defined?(Rails)
60
+ yml_path = File.join(Rails.root, 'config', 'naranya_id.yml')
61
+ load_config_from_yml(yml_path, Rails.env) if File.exists?(yml_path)
62
+ end
63
+ end
64
+ end
65
+
66
+ end
@@ -0,0 +1,48 @@
1
+ module NaranyaId
2
+ class User
3
+ include ActiveModel::Model
4
+
5
+ attr_accessor :id, :first_name, :last_name, :email, :gender, :date_of_birth, :screen_name
6
+
7
+ def attributes
8
+ Hash[to_yaml_properties.map { |attr| [attr.to_s[1..-1].to_sym, instance_variable_get(attr)] }]
9
+ end
10
+
11
+ class << self
12
+
13
+ def translate_attributes(attributes)
14
+ translated_attributes = {
15
+ id: attributes[:uuid],
16
+ first_name: attributes[:nombre],
17
+ last_name: attributes[:apellido],
18
+ email: attributes[:email],
19
+ screen_name: attributes[:screenname]
20
+ }
21
+
22
+ translated_attributes[:date_of_birth] = attributes[:nacimiento].to_date if attributes[:nacimiento].present?
23
+ translated_attributes
24
+ end
25
+
26
+ def find_one(options={})
27
+
28
+ token = options.delete :token
29
+ secret = options.delete :secret
30
+
31
+ raise "Token/Secret not provided" unless token.present? and secret.present?
32
+
33
+ api_consumer = NaranyaId.consumer
34
+
35
+ api_access_token = ::OAuth::AccessToken.new api_consumer, token, secret
36
+
37
+ user_info_response = api_access_token.get('/crmcapi/index.php/user')
38
+
39
+ user_info = ActiveSupport::JSON.decode(user_info_response.body).with_indifferent_access
40
+
41
+ self.new translate_attributes(user_info)
42
+
43
+ end
44
+
45
+ end
46
+
47
+ end
48
+ end
@@ -0,0 +1,3 @@
1
+ require 'omniauth-naranya_id/version'
2
+ require 'naranya_id'
3
+ require 'omniauth/strategies/naranya_id'
@@ -0,0 +1,5 @@
1
+ module Omniauth
2
+ module NaranyaId
3
+ VERSION = "0.0.1"
4
+ end
5
+ end
@@ -0,0 +1,68 @@
1
+ require 'omniauth-oauth'
2
+ require 'multi_json'
3
+ require 'naranya_id'
4
+ require 'oauth/signature/plaintext'
5
+
6
+ module OmniAuth
7
+ module Strategies
8
+ class NaranyaId < OmniAuth::Strategies::OAuth
9
+ # Give your strategy a name.
10
+ option :name, "naranya_id"
11
+
12
+ # This is where you pass the options you would pass when
13
+ # initializing your consumer from the OAuth gem.
14
+ option :client_options, ::NaranyaId::CONSUMER_DEFAULTS
15
+
16
+ # These are called after authentication has succeeded. If
17
+ # possible, you should try to set the UID without making
18
+ # additional calls (if the user id is returned with the token
19
+ # or as a URI parameter). This may not be possible with all
20
+ # providers.
21
+ uid do
22
+ raw_info[:id]
23
+ end
24
+
25
+ info do
26
+ {
27
+ uid: raw_info[:id],
28
+ nickname: raw_info[:screen_name],
29
+ name: "#{raw_info[:first_name]} #{raw_info[:last_name]}"
30
+ }
31
+ end
32
+
33
+ extra do
34
+ { 'raw_info' => raw_info }.with_indifferent_access
35
+ end
36
+
37
+ # Provee la informacion consultada del usuario vía el API de Naranya ID ()
38
+ def raw_info
39
+ @raw_info ||= begin
40
+ setup_sdk_key_and_secret! if sdk_key_or_secret_missing? and consumer_key_and_secret_present?
41
+ u = ::NaranyaId::User.find_one(
42
+ token: access_token.params[:oauth_token],
43
+ secret: access_token.params[:oauth_token_secret]
44
+ )
45
+ u.attributes.with_indifferent_access
46
+ rescue ::Errno::ETIMEDOUT
47
+ raise ::Timeout::Error
48
+ end
49
+ end
50
+
51
+ # Indicates if the SDK's api key + secret are missing
52
+ def sdk_key_or_secret_missing?
53
+ !(::NaranyaId.config.has_key?(:api_key) && ::NaranyaId.config.has_key?(:api_secret))
54
+ end
55
+
56
+ # Indicates whether the consumer key and secret where configured in the strategy initializer
57
+ def consumer_key_and_secret_present?
58
+ options.consumer_key.present? && options.consumer_secret.present?
59
+ end
60
+
61
+ # Configures the SDK's key + secret using the strategy's configured key and secret
62
+ def setup_sdk_key_and_secret!
63
+ ::NaranyaId.setup { |c| c.api_key, c.api_secret = options.consumer_key, options.consumer_secret }
64
+ end
65
+
66
+ end
67
+ end
68
+ end
@@ -0,0 +1,32 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'omniauth-naranya_id/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "omniauth-naranya_id"
8
+ spec.version = Omniauth::NaranyaId::VERSION
9
+ spec.authors = ["Roberto Quintanilla"]
10
+ spec.email = ["roberto.quintanilla@naranya.com"]
11
+ spec.summary = %q{Omniauth provider for NaranyaID.}
12
+ spec.description = %q{Omniauth provider for NaranyaID.}
13
+ spec.homepage = "http://www.naranyamarket.com"
14
+ spec.license = "MIT"
15
+
16
+ spec.files = `git ls-files -z`.split("\x0")
17
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
+ spec.test_files = spec.files.grep(%r{^(spec|features)/})
19
+ spec.require_paths = ["lib"]
20
+
21
+ spec.add_dependency "activesupport", "~> 4"
22
+ spec.add_dependency "activemodel", "~> 4"
23
+
24
+ spec.add_runtime_dependency 'omniauth-oauth', '~> 1.0'
25
+
26
+ spec.add_development_dependency 'bundler', "~> 1.6"
27
+ spec.add_development_dependency 'rake'
28
+ spec.add_development_dependency 'rspec'
29
+ spec.add_development_dependency 'rack-test'
30
+ spec.add_development_dependency 'simplecov'
31
+ spec.add_development_dependency 'webmock'
32
+ end
@@ -0,0 +1,43 @@
1
+ require 'spec_helper'
2
+
3
+ describe OmniAuth::Strategies::NaranyaId do
4
+ let(:request) { double('Request', :params => {}, :cookies => {}, :env => {}) }
5
+
6
+ subject do
7
+ args = ['appid', 'secret', @options || {}].compact
8
+ OmniAuth::Strategies::NaranyaId.new(*args).tap do |strategy|
9
+ strategy.stub(:request) {
10
+ request
11
+ }
12
+ end
13
+ end
14
+
15
+ describe 'client options' do
16
+ it 'should have correct name' do
17
+ expect(subject.options.name).to eq 'naranya_id'
18
+ end
19
+
20
+ it 'should have correct site' do
21
+ expect(subject.options.client_options.site).to eq 'http://192.237.215.233'
22
+ end
23
+
24
+ it 'should have correct authorize url' do
25
+ expect(subject.options.client_options.authorize_path).to eq '/oauthv1/authorize.php'
26
+ end
27
+ end
28
+
29
+ describe 'request_phase' do
30
+ context 'with no request params set and x_auth_access_type specified' do
31
+ before do
32
+ subject.stub(:request).and_return(
33
+ double 'Request', { params: {'x_auth_access_type' => 'read'}}
34
+ )
35
+ subject.stub(:old_request_phase).and_return(:whatever)
36
+ end
37
+
38
+ it 'should not break' do
39
+ expect { subject.request_phase }.not_to raise_error
40
+ end
41
+ end
42
+ end
43
+ end
@@ -0,0 +1,18 @@
1
+ $:.unshift File.expand_path('..', __FILE__)
2
+ $:.unshift File.expand_path('../../lib', __FILE__)
3
+ require 'simplecov'
4
+ SimpleCov.start
5
+ require 'rspec'
6
+ require 'rack/test'
7
+ require 'webmock/rspec'
8
+ require 'omniauth'
9
+ require 'omniauth-naranya_id'
10
+
11
+ RSpec.configure do |config|
12
+ config.include WebMock::API
13
+ config.include Rack::Test::Methods
14
+ config.extend OmniAuth::Test::StrategyMacros, type: :strategy
15
+ config.expect_with :rspec do |c|
16
+ c.syntax = :expect
17
+ end
18
+ end
metadata ADDED
@@ -0,0 +1,186 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: omniauth-naranya_id
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Roberto Quintanilla
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-05-06 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: activesupport
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '4'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '4'
27
+ - !ruby/object:Gem::Dependency
28
+ name: activemodel
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '4'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '4'
41
+ - !ruby/object:Gem::Dependency
42
+ name: omniauth-oauth
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '1.0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '1.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: bundler
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '1.6'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '1.6'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rake
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: rspec
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: rack-test
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: simplecov
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: webmock
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
139
+ description: Omniauth provider for NaranyaID.
140
+ email:
141
+ - roberto.quintanilla@naranya.com
142
+ executables: []
143
+ extensions: []
144
+ extra_rdoc_files: []
145
+ files:
146
+ - ".gitignore"
147
+ - ".rspec"
148
+ - Gemfile
149
+ - LICENSE.txt
150
+ - README.md
151
+ - Rakefile
152
+ - lib/naranya_id.rb
153
+ - lib/naranya_id/user.rb
154
+ - lib/omniauth-naranya_id.rb
155
+ - lib/omniauth-naranya_id/version.rb
156
+ - lib/omniauth/strategies/naranya_id.rb
157
+ - omniauth-naranya_id.gemspec
158
+ - spec/omniauth/strategies/naranya_id_spec.rb
159
+ - spec/spec_helper.rb
160
+ homepage: http://www.naranyamarket.com
161
+ licenses:
162
+ - MIT
163
+ metadata: {}
164
+ post_install_message:
165
+ rdoc_options: []
166
+ require_paths:
167
+ - lib
168
+ required_ruby_version: !ruby/object:Gem::Requirement
169
+ requirements:
170
+ - - ">="
171
+ - !ruby/object:Gem::Version
172
+ version: '0'
173
+ required_rubygems_version: !ruby/object:Gem::Requirement
174
+ requirements:
175
+ - - ">="
176
+ - !ruby/object:Gem::Version
177
+ version: '0'
178
+ requirements: []
179
+ rubyforge_project:
180
+ rubygems_version: 2.2.2
181
+ signing_key:
182
+ specification_version: 4
183
+ summary: Omniauth provider for NaranyaID.
184
+ test_files:
185
+ - spec/omniauth/strategies/naranya_id_spec.rb
186
+ - spec/spec_helper.rb