omniauth-identitas 0.1.2 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +7 -4
- data/lib/omniauth/identitas/version.rb +1 -1
- data/lib/omniauth/strategies/identitas.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d905c5187378c8e8997bc510faa17518a2dd129c
|
4
|
+
data.tar.gz: 7eaa136b7a8ba97ab2fb1caccd47b4081c302115
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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.
|
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-
|
11
|
+
date: 2017-11-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: omniauth-oauth2
|