omniauth-gocardless-connect 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 2805fcad8803e0b1fa5447625e2f0ca1263285ac76ad2e021e07ecb00410908e
|
4
|
+
data.tar.gz: f1715f76b1c2f31ea3b8f210dcb652de5cd3370d30dd77a7d6a92a83d905a1a7
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 9e8216cb052ff7e57a5a4bc1c40f1eea751d7c8e843c7dd68bf798a71f2ab7bd9b63721f3345019e41be6779222e7392eef28f20de07dad2ab81839b92af59ff
|
7
|
+
data.tar.gz: 191772767240af6794c087a74611278fd5e9dae57d24a7cb832179ddd7d22797c5d1826002c37370f94011da4d6013665c633026089421f270bea41674d10d81
|
@@ -0,0 +1,29 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module OmniAuth
|
4
|
+
module Strategies
|
5
|
+
class GocardlessConnect < OmniAuth::Strategies::OAuth2
|
6
|
+
option :name, :gocardless_connect
|
7
|
+
|
8
|
+
option :client_options, {
|
9
|
+
site: 'https://connect.gocardless.com',
|
10
|
+
authorize_url: '/oauth/authorize',
|
11
|
+
token_url: '/oauth/access_token'
|
12
|
+
}
|
13
|
+
|
14
|
+
option :authorize_params, scope: 'read_write'
|
15
|
+
option :authorize_options, %i[scope initial_view state]
|
16
|
+
|
17
|
+
uid do
|
18
|
+
request.params['email']
|
19
|
+
end
|
20
|
+
|
21
|
+
info do
|
22
|
+
{
|
23
|
+
email: access_token.params['email'],
|
24
|
+
organisation_id: access_token.params['organisation_id']
|
25
|
+
}
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
metadata
ADDED
@@ -0,0 +1,75 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: omniauth-gocardless-connect
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Dan Quinney
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2019-12-03 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: omniauth
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.9'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.9'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: omniauth-oauth2
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '1.6'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '1.6'
|
41
|
+
description: OmniAuth strategy for Gocardless Connect
|
42
|
+
email:
|
43
|
+
- danq@dial9.co.uk
|
44
|
+
executables: []
|
45
|
+
extensions: []
|
46
|
+
extra_rdoc_files: []
|
47
|
+
files:
|
48
|
+
- lib/omniauth-gocardless-connect.rb
|
49
|
+
- lib/omniauth-gocardless-connect/version.rb
|
50
|
+
- lib/omniauth/strategies/gocardless_connect.rb
|
51
|
+
homepage: https://github.com/danquinney/omniauth-gocardless-connect
|
52
|
+
licenses:
|
53
|
+
- MIT
|
54
|
+
metadata: {}
|
55
|
+
post_install_message:
|
56
|
+
rdoc_options: []
|
57
|
+
require_paths:
|
58
|
+
- lib
|
59
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
60
|
+
requirements:
|
61
|
+
- - ">="
|
62
|
+
- !ruby/object:Gem::Version
|
63
|
+
version: '0'
|
64
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
requirements: []
|
70
|
+
rubyforge_project:
|
71
|
+
rubygems_version: 2.7.6.2
|
72
|
+
signing_key:
|
73
|
+
specification_version: 4
|
74
|
+
summary: OmniAuth strategy for Gocardless Connect
|
75
|
+
test_files: []
|