omniauth-keltec 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: 0b8e41385dc0eeab2d42019b66c004360609668f
4
- data.tar.gz: 3dcb261c315b39dfecf022d91d3de5c7a0326a68
3
+ metadata.gz: 4f7dea6b4d65627489345bc2ad6dc05e0d4eb1f7
4
+ data.tar.gz: 885a851a585e0da063812846ff04fef57026c2a2
5
5
  SHA512:
6
- metadata.gz: a161507a3bd53e11da7529429b7acf59befa82afc0f50906ff999a0b01961bb33ab1743a0151d5d498d8a7ab5e4493e5ea6941b780fe53d53fce081985a73674
7
- data.tar.gz: 3982723c4c638e9fe4c6d03cc9d15465a7b78b493d6c656475d08b7dc0ecf21aa2bae3b97e9a816a361249936ccfbb99500a920cc1ceddd9bda6d083c38d16f4
6
+ metadata.gz: e10ac57164de41fc3295d0e71425dd5cabfe4855ccea651e48f6a75d05deec1de2cb5468b14cb7e689297dfe02175966a11f4b3a9e57363917288995da447a4c
7
+ data.tar.gz: 94eb5c7c84ac6b00c8817549de0576a1d693071db5f22db32420adce34aaf6f1323973497cdbdb1cd9c0788575a22e2c11fbc0dd18d3033505e60a50e9f97953
data/Gemfile.lock CHANGED
@@ -1,8 +1,8 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- omniauth-keltec (0.0.2)
5
- omniauth-oauth2 (~> 1.3.0)
4
+ omniauth-keltec (0.0.3)
5
+ omniauth-oauth2 (~> 1.3)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Omniauth::Keltec
2
2
 
3
- TODO: Write a gem description
3
+ This is a Keltec OAuth2 Strategy for OmniAuth. This lets you use the accounts from https://accounts.keltec.ch/.
4
4
 
5
5
  ## Installation
6
6
 
@@ -18,4 +18,4 @@ Or install it yourself as:
18
18
 
19
19
  ## Usage
20
20
 
21
- TODO: Write usage instructions here
21
+ A good tutorial on how you can include a OmniAuth strategy with devise: https://github.com/plataformatec/devise/wiki/OmniAuth:-Overview
@@ -1,5 +1,5 @@
1
1
  module OmniAuth
2
2
  module Keltec
3
- VERSION = "0.0.2"
3
+ VERSION = "0.0.3"
4
4
  end
5
5
  end
@@ -26,6 +26,10 @@ module OmniAuth
26
26
  def raw_info
27
27
  @raw_info ||= access_token.get('/api/v1/me.json').parsed
28
28
  end
29
+
30
+ def callback_url
31
+ full_host + script_name + callback_path
32
+ end
29
33
  end
30
34
  end
31
35
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-keltec
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
  - Nicolas Ganz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-02-23 00:00:00.000000000 Z
11
+ date: 2017-02-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler