omniauth-splitwise 0.1.2 → 0.1.3
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 +4 -4
- data/README.md +2 -2
- data/Rakefile +2 -0
- data/lib/omniauth/strategies/splitwise.rb +3 -1
- data/lib/omniauth-splitwise.rb +3 -1
- data/lib/omniauth_splitwise/version.rb +3 -1
- data/lib/omniauth_splitwise.rb +2 -0
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4f57a76324984f753628766a4e182e59b8389ef7316f1c9f7640583cfcb00fd8
|
|
4
|
+
data.tar.gz: d1cb47c381ae86be5a55e74d60a7234c27f71d90490d999705305342b9894f07
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3712ca486ae0d669993d7b14e665551b3044a2e09ac5345c84b570c5c4ace20274d5ee4beecc8aace2e9cee1999a05fc7f871a75508bd9a44df858f70fde06bc
|
|
7
|
+
data.tar.gz: bfba92145ab57edbf8c7012202f3df319fe2139ab6598f2ab83d9cd48952cc6fa3240ee4b00456270b4d48acd41a1191be73eab9d86fb9b84d322de08c514a6f
|
data/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# OmniAuth Splitwise
|
|
1
|
+
# OmniAuth Splitwise [](https://rubygems.org/gems/omniauth-splitwise)
|
|
2
2
|
|
|
3
3
|
An OmniAuth strategy for authenticating to [Splitwise](http://www.splitwise.com).
|
|
4
4
|
To use it, you'll need to [sign up for a Consumer Key and Secret](https://secure.splitwise.com/oauth_clients).
|
|
@@ -59,7 +59,7 @@ auth = request.env['omniauth.auth']
|
|
|
59
59
|
|
|
60
60
|
token = auth['credentials']['token']
|
|
61
61
|
client = OAuth2::Client.new(ENV["SPLITWISE_KEY"], ENV["SPLITWISE_SECRET"])
|
|
62
|
-
access_token = OAuth2::AccessToken.new(client,
|
|
62
|
+
access_token = OAuth2::AccessToken.new(client, token)
|
|
63
63
|
|
|
64
64
|
# Start making API requests:
|
|
65
65
|
access_token.get('/api/v3.0/get_current_user').parsed
|
data/Rakefile
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
1
3
|
require 'omniauth-oauth2'
|
|
2
4
|
|
|
3
5
|
module OmniAuth
|
|
4
6
|
module Strategies
|
|
5
7
|
class Splitwise < OmniAuth::Strategies::OAuth2
|
|
6
|
-
BASE_SITE = 'https://secure.splitwise.com/'
|
|
8
|
+
BASE_SITE = 'https://secure.splitwise.com/'
|
|
7
9
|
|
|
8
10
|
option :name, "splitwise"
|
|
9
11
|
option :client_options, site: BASE_SITE, auth_scheme: :request_body
|
data/lib/omniauth-splitwise.rb
CHANGED
data/lib/omniauth_splitwise.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: omniauth-splitwise
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Nathan Griffith
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 1980-01-01 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: omniauth-oauth2
|
|
@@ -58,7 +58,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
58
58
|
- !ruby/object:Gem::Version
|
|
59
59
|
version: '0'
|
|
60
60
|
requirements: []
|
|
61
|
-
rubygems_version: 3.
|
|
61
|
+
rubygems_version: 3.5.22
|
|
62
62
|
signing_key:
|
|
63
63
|
specification_version: 4
|
|
64
64
|
summary: Splitwise strategy for OmniAuth
|