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 +4 -4
- data/README.md +29 -0
- data/lib/omniauth-roblox/omniauth/strategies/roblox.rb +0 -1
- data/lib/omniauth-roblox/version.rb +2 -2
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2dd6d4d68f0d8d55aec4ca6d6c85cef7f1a4e7e91d6500b6310a94bd2dac73d7
|
4
|
+
data.tar.gz: 736f6ae03d00d819fa58d5a3dba63add7d102462c716c3d6cb29a9b24212af94
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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.
|
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.
|
89
|
+
rubygems_version: 3.2.5
|
89
90
|
signing_key:
|
90
91
|
specification_version: 4
|
91
92
|
summary: OmniAuth strategy for Roblox
|