omniauth_cobot 0.0.2 → 0.1.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 +7 -0
- data/Gemfile +1 -1
- data/Gemfile.lock +26 -8
- data/MIT_LICENSE.txt +1 -1
- data/README.md +1 -0
- data/lib/omniauth/cobot/version.rb +1 -1
- data/lib/omniauth/strategies/cobot.rb +2 -2
- data/omniauth_cobot.gemspec +1 -1
- metadata +17 -24
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: dd04fd27faf858cb8ee7d25e9d1c93402b28f87b34550dc542203fc873495b4f
|
4
|
+
data.tar.gz: e3ea2d9f917c5d67f743a449394ee29b9f517cd7ce297e8d3ae78652324e3038
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 86c1325dae2bddd3aed060f980c6e353e71d51604cef3216c33b7e9808d22692daac63a55ef99f36806936595b71eb57ac93cfebe16032dca2ed67a4d0973704
|
7
|
+
data.tar.gz: d34796ce330e318b1872e74e3e17cd5044fd2ec5abcbda71d089821da685c0142f4d33cdd34eba6296cbefe2f4218d4b1cb70db92f8e02a5761d08d4f21cd300
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,18 +1,33 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
omniauth_cobot (0.0.
|
5
|
-
omniauth
|
4
|
+
omniauth_cobot (0.0.3)
|
5
|
+
omniauth-oauth2 (~> 1.6.0)
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: http://rubygems.org/
|
9
9
|
specs:
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
10
|
+
faraday (0.15.4)
|
11
|
+
multipart-post (>= 1.2, < 3)
|
12
|
+
hashie (3.6.0)
|
13
|
+
jwt (2.1.0)
|
14
|
+
multi_json (1.13.1)
|
15
|
+
multi_xml (0.6.0)
|
16
|
+
multipart-post (2.0.0)
|
17
|
+
oauth2 (1.4.1)
|
18
|
+
faraday (>= 0.8, < 0.16.0)
|
19
|
+
jwt (>= 1.0, < 3.0)
|
20
|
+
multi_json (~> 1.3)
|
21
|
+
multi_xml (~> 0.5)
|
22
|
+
rack (>= 1.2, < 3)
|
23
|
+
omniauth (1.9.0)
|
24
|
+
hashie (>= 3.4.6, < 3.7.0)
|
25
|
+
rack (>= 1.6.2, < 3)
|
26
|
+
omniauth-oauth2 (1.6.0)
|
27
|
+
oauth2 (~> 1.1)
|
28
|
+
omniauth (~> 1.9)
|
29
|
+
rack (2.2.3.1)
|
30
|
+
rake (13.0.1)
|
16
31
|
|
17
32
|
PLATFORMS
|
18
33
|
ruby
|
@@ -20,3 +35,6 @@ PLATFORMS
|
|
20
35
|
DEPENDENCIES
|
21
36
|
omniauth_cobot!
|
22
37
|
rake
|
38
|
+
|
39
|
+
BUNDLED WITH
|
40
|
+
1.16.1
|
data/MIT_LICENSE.txt
CHANGED
data/README.md
CHANGED
@@ -13,5 +13,6 @@ Add the following as an initializer:
|
|
13
13
|
This gives you access to a variable `request.env['omniauth.auth']` in your authentication callback that looks like this:
|
14
14
|
|
15
15
|
* `uid` - the id of the user
|
16
|
+
* `credentials` - `{'token' => '<access token>'}`
|
16
17
|
* `info` - `{'email' => '<user email>', 'picture' => '<url>'}`
|
17
18
|
* `extra` - `{:raw_info => { "id": "<user id>", "email": "<email>", "picture": "<picture url>", "mac_addresses": ["<mac address>"...], "memberships": [{ "space_link": "<https://www.cobot.me/api/spaces/some-space>", "link": "<https://some-space.cobot.me/api/memberships/some-membership>" } ], "admin_of": [ { "space_link": "<https://www.cobot.me/api/spaces/some-space>", "name": "<admin name>" } ] }`
|
@@ -5,8 +5,8 @@ module OmniAuth
|
|
5
5
|
class Cobot < OmniAuth::Strategies::OAuth2
|
6
6
|
option :client_options, {
|
7
7
|
:site => 'https://www.cobot.me',
|
8
|
-
:authorize_url => 'https://www.cobot.me/
|
9
|
-
:token_url => 'https://www.cobot.me/
|
8
|
+
:authorize_url => 'https://www.cobot.me/oauth/authorize',
|
9
|
+
:token_url => 'https://www.cobot.me/oauth/access_token'
|
10
10
|
}
|
11
11
|
|
12
12
|
uid { raw_info['id'] }
|
data/omniauth_cobot.gemspec
CHANGED
metadata
CHANGED
@@ -1,46 +1,41 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniauth_cobot
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
5
|
-
prerelease:
|
4
|
+
version: 0.1.0
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Alexander Lang
|
9
|
-
autorequire:
|
8
|
+
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2022-10-15 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: omniauth-oauth2
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
|
-
- -
|
17
|
+
- - "~>"
|
20
18
|
- !ruby/object:Gem::Version
|
21
|
-
version:
|
19
|
+
version: 1.8.0
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
|
-
- -
|
24
|
+
- - "~>"
|
28
25
|
- !ruby/object:Gem::Version
|
29
|
-
version:
|
26
|
+
version: 1.8.0
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: rake
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
|
-
- -
|
31
|
+
- - ">="
|
36
32
|
- !ruby/object:Gem::Version
|
37
33
|
version: '0'
|
38
34
|
type: :development
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
|
-
- -
|
38
|
+
- - ">="
|
44
39
|
- !ruby/object:Gem::Version
|
45
40
|
version: '0'
|
46
41
|
description: OmniAuth strategy for Cobot
|
@@ -49,7 +44,7 @@ executables: []
|
|
49
44
|
extensions: []
|
50
45
|
extra_rdoc_files: []
|
51
46
|
files:
|
52
|
-
- .gitignore
|
47
|
+
- ".gitignore"
|
53
48
|
- Gemfile
|
54
49
|
- Gemfile.lock
|
55
50
|
- MIT_LICENSE.txt
|
@@ -61,26 +56,24 @@ files:
|
|
61
56
|
- omniauth_cobot.gemspec
|
62
57
|
homepage: http://github.com/cobot/omniauth_cobot
|
63
58
|
licenses: []
|
64
|
-
|
59
|
+
metadata: {}
|
60
|
+
post_install_message:
|
65
61
|
rdoc_options: []
|
66
62
|
require_paths:
|
67
63
|
- lib
|
68
64
|
required_ruby_version: !ruby/object:Gem::Requirement
|
69
|
-
none: false
|
70
65
|
requirements:
|
71
|
-
- -
|
66
|
+
- - ">="
|
72
67
|
- !ruby/object:Gem::Version
|
73
68
|
version: '0'
|
74
69
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
75
|
-
none: false
|
76
70
|
requirements:
|
77
|
-
- -
|
71
|
+
- - ">="
|
78
72
|
- !ruby/object:Gem::Version
|
79
73
|
version: '0'
|
80
74
|
requirements: []
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
specification_version: 3
|
75
|
+
rubygems_version: 3.2.32
|
76
|
+
signing_key:
|
77
|
+
specification_version: 4
|
85
78
|
summary: OmniAuth strategy for Cobot
|
86
79
|
test_files: []
|