omniauth-barong-oauth2 1.0.1 → 1.0.2

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
  SHA256:
3
- metadata.gz: 9e8b28d6d0d192fd7134a3b09e1809c3b42cf0ccbc92d435a633ba4c7d668713
4
- data.tar.gz: 956ee00fd0b31ab8afd3709cfa45c5612bacb79c41f12b6faba35558673de91a
3
+ metadata.gz: ab7f980bdc233c79f702a5b87607a279531e91d191ad19c9d345eee4c453cc67
4
+ data.tar.gz: 02ee8790c2f12b53297b79b683df2a5e33ab443c0d1adbc6d7657bf749d47bb7
5
5
  SHA512:
6
- metadata.gz: e90472fbe349eee7fbe24814bc49b17cb7f13e0f6a3ed786a9c4f78f9863a83318cfcf7cdf2bc496c10bf6614b73a614a9d4000f3cf08089aaed3cd2c29f5c74
7
- data.tar.gz: 9486667443a803b4b0defd79e076cf7f536e809b7412d50d099cf71d456c8d990ec35ab2649d161cf0c1ab48a7c9f3d253cd0de9e0580226c1520983eb54e68e
6
+ metadata.gz: 8eab2b57584694eb9021851c4339748b29c738d86c3533b2fe96ddea68164d8b75128969d9ad60edaa7cbf57b58ec8585f6613ab34ff856c18b0412b9939cd5c
7
+ data.tar.gz: 421f10699b429afa2a6513fe39b5ee8af2826a0bc0e0d2d7fb5f9564b92884b54d84258c3e312363dd3a1275f6e6e565161883f51b186d993dbcc17120827788
data/README.md CHANGED
@@ -8,11 +8,11 @@
8
8
  # encoding: UTF-8
9
9
  # frozen_string_literal: true
10
10
 
11
- Rails.logger.warn { "Enabling Barong OAuth2." }
11
+ Rails.logger.info { "Enabling Barong OAuth2." }
12
12
  require "omniauth-barong-oauth2"
13
13
  Rails.application.config.middleware.use OmniAuth::Builder do
14
14
  provider :barong,
15
- ENV.fetch("BARONG_ROOT_URL"),
15
+ ENV.fetch("BARONG_ROOT_URL"), # Can be callable.
16
16
  ENV.fetch("BARONG_CLIENT_ID"),
17
17
  ENV.fetch("BARONG_CLIENT_SECRET"),
18
18
  authorize_path: "/oauth/authorize", # Optional.
@@ -19,7 +19,7 @@ module OmniAuth::Strategies
19
19
  end
20
20
 
21
21
  def root_url
22
- @root_url ||= URI.parse(options.root_url).to_s
22
+ @root_url ||= URI.parse(options.root_url.respond_to?(:call) ? options.root_url.call : options.root_url).to_s
23
23
  end
24
24
 
25
25
  uid { account.fetch("uid") }
@@ -2,5 +2,5 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  module OmniAuthBarongOAuth2
5
- VERSION = "1.0.1"
5
+ VERSION = "1.0.2"
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-barong-oauth2
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yaroslav Konoplov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-08-30 00:00:00.000000000 Z
11
+ date: 2019-09-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: omniauth-oauth2
@@ -94,8 +94,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
94
94
  - !ruby/object:Gem::Version
95
95
  version: '0'
96
96
  requirements: []
97
- rubyforge_project:
98
- rubygems_version: 2.7.6
97
+ rubygems_version: 3.0.3
99
98
  signing_key:
100
99
  specification_version: 4
101
100
  summary: OmniAuth strategy for Barong OAuth2.