glass_sdk 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: eee01ec30e9584a7562c596b4a70d334e824ceaa
4
- data.tar.gz: 69f889ce96893af1d3278afd6a702c885a9cf237
3
+ metadata.gz: 047a7dbb44c45aa24e6a7961a3d29cfa7458a144
4
+ data.tar.gz: 80dcd5aedff4a908c8c719f0e6780f6782440718
5
5
  SHA512:
6
- metadata.gz: ca7ebc4bd61d76c0431c59c5e4fab18edc602bad62d673bd24d8af05a6d3b4b1a84f50416887791b9f59e85a80ba0db773560943c8e6b795428c7745b26f78a6
7
- data.tar.gz: 6592533d3b8bcc2dcbb6a634709d475e64e430c216b9ff821424b42281736a597f4a98ce74a644d55d2b6f7317d0085cc996e12e7ad36b20f978485024c53eca
6
+ metadata.gz: 4aad486b8da93c6094f8fe10eb12042c4989b635d23fdca1ff1d1f6f56667f5decdffb4fd33f0c5263b58e376a1ca8a351a301312d0eb898b3cad3ad172b6702
7
+ data.tar.gz: 13ab302af88447586e35f96eb4f6f38f0f9b49b7cbebe11078c20b061101742a68dd82aa5266ad100c6529841eb39e6577c2d4e161cf35a7147b3e5f90dc3459
@@ -11,4 +11,5 @@ GlassSdk.setup do |config|
11
11
 
12
12
  # your need html templaet path
13
13
  config.template_path = "#{Rails.root}/lib/views"
14
+ config.redirect_uri = "https://localhost:3000/oauth2callback" #setting your oauth callback
14
15
  end
@@ -6,9 +6,9 @@ module GlassSdk
6
6
 
7
7
  # 用户认证基类
8
8
  class OAuth
9
- def initialize(redirect_uri)
9
+ def initialize
10
10
  @base_uri = "https://accounts.google.com"
11
- @redirect_uri = redirect_uri
11
+ @redirect_uri = GlassSdk.redirect_uri
12
12
  @access_type = 'offline'
13
13
  @approval_prompt = 'force'
14
14
 
@@ -1,3 +1,3 @@
1
1
  module GlassSdk
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
data/lib/glass_sdk.rb CHANGED
@@ -11,7 +11,7 @@ module GlassSdk
11
11
  end
12
12
 
13
13
  class << self
14
- attr_accessor :client_id, :client_secret, :scope, :template_path
14
+ attr_accessor :client_id, :client_secret, :scope, :template_path, :redirect_uri
15
15
  end
16
16
 
17
17
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: glass_sdk
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
  - mj