omniauth-mlh 0.3.1 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/README.md +6 -2
- data/lib/omniauth-mlh/version.rb +1 -1
- data/lib/omniauth/strategies/mlh.rb +1 -4
- metadata +6 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 1608c1c551536f2dde7aa485c7b6f61ed4ffa9131805d930f12e65aeb09b25ee
|
4
|
+
data.tar.gz: fcaf372603aede88fc7623f6aa981aefea2467597907a5266ab4f3ba57f4345b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fffcc909ecd51283296ed328d36c5770a6fd0e1d11e8f51f40d9abb67ba0db4ce2b5638d0e83afdbeec01d39ed1393a9dcac311bc6c99d7ae291d7066313f50d
|
7
|
+
data.tar.gz: 8ca616032f69b5e082b02a880a75562d1620594d8fb34c611a05041d2e7217095240a6595aa5cf503b7ed2cf1a06a931ab988c7c91e405b5e64dd29add0eda63
|
data/README.md
CHANGED
@@ -3,13 +3,17 @@
|
|
3
3
|
[![Build Status](https://travis-ci.org/MLH/my-mlh-omniauth.svg?branch=master)](https://travis-ci.org/MLH/my-mlh-omniauth)
|
4
4
|
|
5
5
|
This is the official [OmniAuth](https://github.com/omniauth/omniauth) strategy for
|
6
|
-
authenticating with [MyMLH](https://my.mlh.io). To use it, you'll need to
|
6
|
+
authenticating with [MyMLH](https://my.mlh.io). To use it, you'll need to
|
7
7
|
[register an application](https://my.mlh.io/oauth/applications) and obtain a OAuth Application ID and Secret from MyMLH.
|
8
8
|
|
9
|
-
It now supports
|
9
|
+
It now supports MyMLH API V3. [Read the MyMLH V3 docs here](https://my.mlh.io/docs).
|
10
10
|
|
11
11
|
Once you have done so, you can follow the instructions below:
|
12
12
|
|
13
|
+
## Requirements
|
14
|
+
|
15
|
+
You need to have at least Ruby 2.2.4 to use this gem.
|
16
|
+
|
13
17
|
## Installation
|
14
18
|
|
15
19
|
Add this line to your application's Gemfile:
|
data/lib/omniauth-mlh/version.rb
CHANGED
@@ -23,9 +23,6 @@ module OmniAuth
|
|
23
23
|
:last_name,
|
24
24
|
:level_of_study,
|
25
25
|
:major,
|
26
|
-
:shirt_size,
|
27
|
-
:dietary_restrictions,
|
28
|
-
:special_needs,
|
29
26
|
:date_of_birth,
|
30
27
|
:gender,
|
31
28
|
:phone_number,
|
@@ -35,7 +32,7 @@ module OmniAuth
|
|
35
32
|
end
|
36
33
|
|
37
34
|
def data
|
38
|
-
@data ||= access_token.get('/api/
|
35
|
+
@data ||= access_token.get('/api/v3/user.json').parsed.deep_symbolize_keys[:data] rescue {}
|
39
36
|
end
|
40
37
|
end
|
41
38
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniauth-mlh
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Swift
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-08-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: omniauth
|
@@ -148,7 +148,7 @@ homepage: http://github.com/mlh/omniauth-mlh
|
|
148
148
|
licenses:
|
149
149
|
- MIT
|
150
150
|
metadata: {}
|
151
|
-
post_install_message:
|
151
|
+
post_install_message:
|
152
152
|
rdoc_options: []
|
153
153
|
require_paths:
|
154
154
|
- lib
|
@@ -163,9 +163,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
163
163
|
- !ruby/object:Gem::Version
|
164
164
|
version: '0'
|
165
165
|
requirements: []
|
166
|
-
|
167
|
-
|
168
|
-
signing_key:
|
166
|
+
rubygems_version: 3.0.8
|
167
|
+
signing_key:
|
169
168
|
specification_version: 4
|
170
169
|
summary: Official OmniAuth strategy for My MLH.
|
171
170
|
test_files:
|