omniauth-roblox 0.0.1 → 0.0.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0bf2f52cc783b6a23260c21901b9404ea3efc4564b3a8f8331a299501ff0c7c1
4
- data.tar.gz: b51116d747e5362dcbacd427c3ac0b7097b07bd0d6868c0ee5fe5e8fb3796e1c
3
+ metadata.gz: 2dd6d4d68f0d8d55aec4ca6d6c85cef7f1a4e7e91d6500b6310a94bd2dac73d7
4
+ data.tar.gz: 736f6ae03d00d819fa58d5a3dba63add7d102462c716c3d6cb29a9b24212af94
5
5
  SHA512:
6
- metadata.gz: f82761ea7895efc0cfaee69e4996446749d05a4e72a2140478ab5f10005566912ea04455a5f717a0ace28aec35d62afe64b8a8d5bd932aefebb9600f37c4a630
7
- data.tar.gz: 3b5bb51b61a4828433cdd5d7b1c30ea4d33858773486fede900c326aa4656d82b86d04d6aea27c707206e4d6d8014cf2d709dad2e73e435a4b77cc6a2aa2cfb2
6
+ metadata.gz: 3de492655bebbe58639ff622d6e876f271ac72afd0bb1ca56bc343095e3178d63c8f458fd815844af80558b8513f341bc81bac31512703dd136f926bd777a431
7
+ data.tar.gz: 3b959e4e80414d53205c44e8de51cd0086f0f9bb18b876edd1b3a3dd4efb4a50f86de8fa7a89ba1fc6102e313c3a9df465e976928b27a599b5c7f3b2a07276ab
data/README.md ADDED
@@ -0,0 +1,29 @@
1
+ # OmniAuth Roblox
2
+ OmniAuth strategy for Roblox
3
+
4
+ ## Installation
5
+ Add to your `Gemfile`
6
+ ```
7
+ gem 'omniauth-roblox'
8
+ ```
9
+ Run `bundle install`
10
+
11
+ ## Setup
12
+ ⚠️ Roblox's OAuth API is currently private access only ⚠️
13
+
14
+ - Go to https://create.roblox.com/credentials
15
+ - Fill out the fields and select your scopes
16
+
17
+ ## Usage
18
+ An example of adding this middleware to your Rails app in `config/initializers/omniauth.rb`
19
+ ```rb
20
+ Rails.application.config.middleware.use OmniAuth::Builder do
21
+ provider :roblox, ENV['RBX_CLIENT_ID'], ENV['RBX_CLIENT_SECRET']
22
+ end
23
+ ```
24
+
25
+ ## Configuration Options
26
+ - `scope`: No scopes are currently set by default, Roblox requires the `openid` scope at the minimum.
27
+ - `image_type`: The type of image that should be returned by roblox, defaults to `headshot`. Allowed values: `[empty string]` (full body), `bust`, and `headshot`.
28
+ - `jwt_leeway`: Amount of leeway in seconds passed to the JWT library, only works with version 2.1 or earlier.
29
+ - `skip_image`: If this is set to `true`, no image url will be returned.
@@ -40,7 +40,6 @@ module OmniAuth
40
40
  info do
41
41
  {
42
42
  name: raw_info['name'],
43
- email: "#{SecureRandom.hex(18)}@notre.al",
44
43
  nickname: user_info['nickname'],
45
44
  image: image_url,
46
45
  # This is provided in the `profile` claim, but is not included if the `profile` scope is not set
@@ -1,5 +1,5 @@
1
1
  module OmniAuth
2
2
  module Roblox
3
- VERSION = '0.0.1'
3
+ VERSION = '0.0.2'
4
4
  end
5
- end
5
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-roblox
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Wolftallemo
@@ -61,6 +61,7 @@ files:
61
61
  - Gemfile
62
62
  - Gemfile.lock
63
63
  - LICENSE
64
+ - README.md
64
65
  - Rakefile
65
66
  - lib/omniauth-roblox.rb
66
67
  - lib/omniauth-roblox/omniauth/strategies/roblox.rb
@@ -85,7 +86,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
85
86
  - !ruby/object:Gem::Version
86
87
  version: '0'
87
88
  requirements: []
88
- rubygems_version: 3.3.22
89
+ rubygems_version: 3.2.5
89
90
  signing_key:
90
91
  specification_version: 4
91
92
  summary: OmniAuth strategy for Roblox