omniauth-marvin 1.0.0 → 1.0.1
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/.gitignore +1 -0
- data/README.md +12 -2
- data/lib/omniauth/marvin/version.rb +1 -1
- data/lib/omniauth/strategies/marvin.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e84e0c90cacd480409a7b99ed86a7467dab9bbe5
|
4
|
+
data.tar.gz: 768fd3a77f7faad3119d47d4818b5986382caf66
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 153097b95326b1455c88b8c08df07f34d41b441b77b3014336081ed0048e148641559e6ee5216ade432d6ff01ae4754e0ad1d66fd5fb41a2ac775011613ce5a9
|
7
|
+
data.tar.gz: b7332c17a18ad237e0df9071ee3114a58234730358cea6221d3bed7ea81f788092cb1e6cba76a71c73373720de6b1c843fa29ef9b0e119fbfd889e269569d18f
|
data/.gitignore
CHANGED
data/README.md
CHANGED
@@ -9,13 +9,21 @@ OmniAuth OAuth2 strategy for 42 School.
|
|
9
9
|
Add this line to your application's Gemfile:
|
10
10
|
|
11
11
|
```ruby
|
12
|
-
gem 'omniauth-marvin',
|
12
|
+
gem 'omniauth-marvin', '~> 1.0.1'
|
13
|
+
``
|
14
|
+
|
15
|
+
Or, install it yourself like below:
|
16
|
+
|
17
|
+
```
|
18
|
+
gem install omniauth-marvin
|
13
19
|
```
|
14
20
|
|
15
21
|
run `bundle install`
|
16
22
|
|
17
23
|
## Usage
|
18
24
|
|
25
|
+
**(Skip this if you want to use the gem with Devise to authenticate users)**
|
26
|
+
|
19
27
|
Register your application on 42's intranet to receive an API Key.
|
20
28
|
|
21
29
|
Here's an example for adding the middleware to a Rails app in `config/initializers/omniauth.rb`
|
@@ -28,9 +36,11 @@ end
|
|
28
36
|
|
29
37
|
You can now access the OmniAuth 42 OAuth2 URL: `/auth/marvin`
|
30
38
|
|
39
|
+
Read the <a href="https://github.com/intridea/omniauth/wiki" target="_blank">Omniauth Wiki</a> or see this <a href="http://railscasts.com/episodes/241-simple-omniauth" target="_blank">RailsCast</a> for an example on how to use this Rack middleware without any other gem.
|
40
|
+
|
31
41
|
## Devise
|
32
42
|
|
33
|
-
If you wish to use this gem with devise, do
|
43
|
+
If you wish to use this gem with devise, do **NOT** use the code snippet above in the Usage section. Instead, follow these steps:
|
34
44
|
|
35
45
|
Add the devise gem to your Gemfile.
|
36
46
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniauth-marvin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samy KACIMI
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-11-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: omniauth-oauth2
|
@@ -95,7 +95,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
95
95
|
version: '0'
|
96
96
|
requirements: []
|
97
97
|
rubyforge_project:
|
98
|
-
rubygems_version: 2.4.
|
98
|
+
rubygems_version: 2.4.5.1
|
99
99
|
signing_key:
|
100
100
|
specification_version: 4
|
101
101
|
summary: OmniAuth OAuth2 strategy for 42 School
|