omniauth-fitcvut-oauth2 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/omniauth/fitcvut_oauth2/version.rb +1 -1
- data/lib/omniauth/strategies/fitcvut_oauth2.rb +1 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6ecb839cf0ab0ed3afd3ca1d1e3dc345e851aae8
|
4
|
+
data.tar.gz: 183878b2dd1de7dfc0fb097c025bdbc49b1c76b4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ecafc117c6944e5aae5868446df1c37f2b3024ac0fae108854b975b19cfe7a32bfcff7064d0b2edf2864653fc37eeb70ae37cd0a42b2e50599805e7e687b858c
|
7
|
+
data.tar.gz: a4bb6585290ba14af00da42d597d17686d21d15d3763d1074bdb17f2f1a6d93948d736fe5f47a84fa0d881ac87b1409625cfd177c1fd81526369c47ec6e4f8c9
|
data/README.md
CHANGED
@@ -7,7 +7,7 @@ This gem contains the ČVUT/CTU FIT OAuth 2.0 strategy for OmniAuth 1.0.
|
|
7
7
|
Add to your `Gemfile`:
|
8
8
|
|
9
9
|
```ruby
|
10
|
-
gem 'omniauth-fitcvut-oauth2', '~> 0.1
|
10
|
+
gem 'omniauth-fitcvut-oauth2', '~> 0.2.1'
|
11
11
|
```
|
12
12
|
|
13
13
|
Then `bundle install`.
|
@@ -15,7 +15,7 @@ Then `bundle install`.
|
|
15
15
|
## Basic Usage
|
16
16
|
|
17
17
|
use OmniAuth::Builder do
|
18
|
-
provider "
|
18
|
+
provider "fitcvut_oauth2", ENV['FIT_APP_ID'], ENV['FIT_APP_SECRET']
|
19
19
|
end
|
20
20
|
|
21
21
|
## Auth Hash
|
@@ -5,7 +5,7 @@ module OmniAuth
|
|
5
5
|
class FITCVUTOauth2 < OmniAuth::Strategies::OAuth2
|
6
6
|
DEFAULT_SCOPE = 'non-expiring'
|
7
7
|
|
8
|
-
option :name, "
|
8
|
+
option :name, "fitcvut_oauth2"
|
9
9
|
|
10
10
|
option :client_options, {
|
11
11
|
:site => 'https://auth.fit.cvut.cz',
|
@@ -37,4 +37,3 @@ module OmniAuth
|
|
37
37
|
end
|
38
38
|
|
39
39
|
OmniAuth.config.add_camelization 'fitcvut_oauth2', 'FITCVUTOauth2'
|
40
|
-
OmniAuth.config.add_camelization 'fitcvut', 'FITCVUT'
|