omniauth-identitas 0.1.2 → 0.2.0

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: 3fd2266801e4ee0d30c8a86f709ccd671af7481c
4
- data.tar.gz: e8bcae6b41fed1dad92bf6cc63678cff41edb43e
3
+ metadata.gz: d905c5187378c8e8997bc510faa17518a2dd129c
4
+ data.tar.gz: 7eaa136b7a8ba97ab2fb1caccd47b4081c302115
5
5
  SHA512:
6
- metadata.gz: 284448725a05a73a11caebae9e9d34af3e71f39b5de2bbce255108939a745e09304fc8d42ac23cf7675d3ad81c6a8e34f00082c345c8f0dde8c63268aaa9abf7
7
- data.tar.gz: a33ea5051f3a7cfdd8b0b1682d14ec9d510e8cb4a0c1cd469cf131b702f00089a51287fc16a2aa7dee8301fca013fe7b53cfb17e9420326dab2e038f57cf49ee
6
+ metadata.gz: 67c38ffaeefb5f4363819e183365ec3ca5420331eb16828f709a19412ef9717065eee52f52415663dacde51549f9645ea8772cff0b91e01d01d796000803562a
7
+ data.tar.gz: 9f8a94efdb6377d23854a3a627c17a38676b65dd36c034746fa5705adcf272e7d5eb965e2f885a3160cd1c3ba9bff2fb47af0e69e6ee022c573432e06740439a
data/README.md CHANGED
@@ -31,7 +31,9 @@ Add Rack middleware in `config/initializers/omniauth.rb` :
31
31
  ```ruby
32
32
 
33
33
  Rails.application.config.middleware.use OmniAuth::Builder do
34
- provider :identitas, "API_KEY", "API_SECRET"
34
+ provider :identitas, "API_KEY", "API_SECRET", client_options: {
35
+ site: "CUSTOM_URL"
36
+ }
35
37
  end
36
38
  ```
37
39
 
@@ -42,11 +44,12 @@ If you are using [devise](https://github.com/plataformatec/devise) :
42
44
 
43
45
  ```ruby
44
46
  config.omniauth :identitas, "API_KEY", "API_SECRET",
45
- callback_url: "API_KEY"
47
+ callback_url: "API_KEY",
48
+ client_options: {
49
+ site: "CUSTOM_URL"
50
+ }
46
51
  ```
47
52
 
48
- If you are using staging version, add `ENV["IDENTITAS_SITE"] = 'http://api.identitas.extrainteger.com'` in your `boot.rb` just before `require 'bundler/setup'`.
49
-
50
53
  ## Development
51
54
 
52
55
  After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
@@ -1,5 +1,5 @@
1
1
  module Omniauth
2
2
  module Identitas
3
- VERSION = "0.1.2"
3
+ VERSION = "0.2.0"
4
4
  end
5
5
  end
@@ -7,7 +7,7 @@ module OmniAuth
7
7
  option :name, :identitas
8
8
 
9
9
  option :client_options, {
10
- site: ENV["IDENTITAS_SITE"] ? ENV["IDENTITAS_SITE"] : "https://api.identitas.com",
10
+ site: "https://api.identitas.com",
11
11
  authorize_url: "/oauth/authorize"
12
12
  }
13
13
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-identitas
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - yunanhelmy
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-11-15 00:00:00.000000000 Z
11
+ date: 2017-11-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: omniauth-oauth2