omniauth-myvr 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/example/config.ru +3 -0
- data/lib/omniauth/strategies/myvr.rb +1 -1
- data/omniauth-myvr.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c1c83d612d11500b8eab232e27f04c0f2c9f4fda
|
4
|
+
data.tar.gz: cb1454846da86dad3df714b067a21f5d5e433087
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9c89e958da41a0cc76b945f328cf9ccd91cde42fde02f5e0064203eb0ff799acf031864c22a97dbc947bd05cf9fff3c729cf9f000601ac2057f272e2f8226d3d
|
7
|
+
data.tar.gz: 43ec194ad4b38884721bb6b32634106e2304657c7171c7c81fb21c7acd054c3de61d6e5696aa596a90120520bc1ba64b773750997acd4257ad990ca0bb781cb4
|
data/example/config.ru
CHANGED
@@ -8,6 +8,9 @@ require 'sinatra'
|
|
8
8
|
require 'omniauth'
|
9
9
|
require '../lib/omniauth_myvr'
|
10
10
|
|
11
|
+
ENV['BASE_SCOPE_URL'] ||= 'http://local.api.myvr.com:8000/auth/'
|
12
|
+
ENV['MYVR_KEY'] ||= '811f088e585dd0e4beaba9e758059f02'
|
13
|
+
ENV['MYVR_SECRET'] ||= '6e33b7189bc37bdeb571f94c366b6ef5'
|
11
14
|
# Do not use for production code.
|
12
15
|
# This is only to make setup easier when running through the sample.
|
13
16
|
#
|
@@ -6,7 +6,7 @@ require 'uri'
|
|
6
6
|
module OmniAuth
|
7
7
|
module Strategies
|
8
8
|
class Myvr < OmniAuth::Strategies::OAuth2
|
9
|
-
BASE_SCOPE_URL = "https://api.myvr.com/auth/"
|
9
|
+
BASE_SCOPE_URL = ENV.fetch('BASE_SCOPE_URL', "https://api.myvr.com/auth/")
|
10
10
|
BASE_SCOPES = %w[profile email openid]
|
11
11
|
DEFAULT_SCOPE = "email,profile"
|
12
12
|
|
data/omniauth-myvr.gemspec
CHANGED
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
|
|
3
3
|
|
4
4
|
Gem::Specification.new do |s|
|
5
5
|
s.name = "omniauth-myvr"
|
6
|
-
s.version = "0.0.
|
6
|
+
s.version = "0.0.5"
|
7
7
|
s.authors = ["CJ Avilla"]
|
8
8
|
s.email = ["cjavilla@gmail.com"]
|
9
9
|
s.homepage = "https://github.com/w1zeman1p/omniauth-myvr"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniauth-myvr
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- CJ Avilla
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-06-
|
11
|
+
date: 2016-06-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: omniauth
|