omniauth-msunet 1.0.2 → 1.1.0
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/.travis.yml +13 -0
- data/CHANGELOG.md +4 -0
- data/Gemfile +2 -1
- data/README.md +35 -6
- data/Rakefile +5 -0
- data/VERSION +1 -0
- data/lib/omniauth-msunet.rb +0 -1
- data/lib/omniauth/strategies/msunet.rb +1 -1
- data/omniauth-msunet.gemspec +11 -9
- data/spec/omniauth/strategies/msunet_spec.rb +1 -1
- metadata +34 -4
- data/lib/omniauth-msunet/version.rb +0 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e145f947c14607fbeb56a9606f933e327cd997af
|
|
4
|
+
data.tar.gz: 04fc166639330f15eb72c8599171fcf1c6a065d9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 486ebb24e033f651e6b1e46448392a529ccff9264944e6feebaede08d6dee13758b336c65ca7b5ce97f28b25dca1c70725d57023e040a0460159a1b499115689
|
|
7
|
+
data.tar.gz: c35487c9e37eb6030f1090c9a885002fb61e7f01ae256ed78f9d18b0ef3810f522c15be4574d9757b243665e7f48bac1bfc59d1af40d5382af474af7b2068bc1
|
data/.travis.yml
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
language: ruby
|
|
2
|
+
rvm:
|
|
3
|
+
- 2.1
|
|
4
|
+
- 2.2
|
|
5
|
+
- 2.3.0
|
|
6
|
+
before_install: gem update bundler
|
|
7
|
+
script: bundle exec rspec
|
|
8
|
+
deploy:
|
|
9
|
+
provider: rubygems
|
|
10
|
+
api_key:
|
|
11
|
+
secure: Fw1W/gJ4kyphhm9nZsOA99RKtDUbgAO3PTI2hVIW/WQLqbhry1QIOFNgtoYRnPAcLvKWNEjhYHf3lLtEqR89yHtoL3nJult3VX/m1Ej7+akdDZ+Ab5LQ5WEFJLD+hwH+D3DkVEQLa1hl6fWfb88jvcvZ2+Q3VcD32pCnNTzTOJeO9p5SjlIuEG58FXS6FtpcspvH54hKXmR8XSuKTyCb4XeA1cGwUdr+n+YvZIk08f6jTHorUejlX2LjMuxS81UY9JEGun3AOz/ITF9Tca3aMEkONVBzncfmhPeWMqijqESbYk2FpGiTsD6NTBYuZtKxlwXyhspy0aC9V0aM8An4EPYhKrD2MM77EsQWQU2r5uE7Nx3t1BU5Qxc5UAKdC08+B7tK0HnduFadOxcYwiWPunj3AOur4pZCTNs1NB/4p+tqEWe/d+NBhIRc+ty8LexrQ6pxMPnRhlylkthQ6eTUhikVNN7Thylb9Fa1eFeTNhe+RF53Z/WsNj7s35yDFLa8n9JMnlMOf3ITn3F/GA7ykObk93uGCGaNgMuVgkIPTeh+IGINy4jQ+IYRYEtRVF5DaYODcLycpIIsG2ifpJgHm32sFP7aPhIQXCsdtlSHMwhj4lakgTVO52rthRy6dSH1Bt6f76STzzOuVVYjCQWyJ9rRraQlCn8ZDdVvEWh9fvo=
|
|
12
|
+
on:
|
|
13
|
+
tags: true
|
data/CHANGELOG.md
CHANGED
data/Gemfile
CHANGED
data/README.md
CHANGED
|
@@ -1,15 +1,20 @@
|
|
|
1
|
-
# OmniAuth
|
|
1
|
+
# OmniAuth MSU NetID
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
[](https://travis-ci.org/Michigan-State-University/omniauth-msunet)
|
|
4
|
+
[](https://gemnasium.com/Michigan-State-University/omniauth-oauth2)
|
|
4
5
|
|
|
5
|
-
|
|
6
|
-
|
|
6
|
+
## Description
|
|
7
|
+
|
|
8
|
+
This is the official OmniAuth strategy gem for authenticating to [Michigan State University](https://msu.edu) MSU NetID using OAuth2. To use this gem you'll need the following:
|
|
9
|
+
|
|
10
|
+
* Contact MSU Information Technology Service Desk at 517-432-6200 to request to register your application, or complete the [OAuth 2.0 request form] (https://tech.msu.edu/network/authentication-authorization)
|
|
11
|
+
* Provide MSU Information Technology Identity Management with a callback URL, which is where to send successful MSU NetID authentication requests back to your application. Note: this must be a HTTPS address.
|
|
7
12
|
* Receive a `client_id` token and `client_secret` token specific for your application.
|
|
8
13
|
|
|
9
14
|
## Installation
|
|
10
15
|
|
|
11
16
|
To install this gem you need to add it to your Gemfile as follows:
|
|
12
|
-
```gem 'omniauth-msunet'
|
|
17
|
+
```gem 'omniauth-msunet'```
|
|
13
18
|
|
|
14
19
|
## Basic Usage
|
|
15
20
|
|
|
@@ -42,11 +47,35 @@ Once the login is completed you should receive the following hash that you can a
|
|
|
42
47
|
"email":"sparty@msu.edu",
|
|
43
48
|
"first_name":"John",
|
|
44
49
|
"last_name":"Sparty",
|
|
45
|
-
"description":"
|
|
50
|
+
"description":"MSU NetID OAuth2 Auth-n"
|
|
46
51
|
}
|
|
47
52
|
}
|
|
48
53
|
```
|
|
49
54
|
|
|
55
|
+
## Development
|
|
56
|
+
|
|
57
|
+
1) Clone the repository
|
|
58
|
+
2) Write some tests
|
|
59
|
+
3) Make them pass
|
|
60
|
+
4) Request a pull
|
|
61
|
+
|
|
62
|
+
### Testing
|
|
63
|
+
|
|
64
|
+
`bundle exec rspec`
|
|
65
|
+
|
|
66
|
+
### Releasing
|
|
67
|
+
|
|
68
|
+
Use the [version](https://github.com/stouset/version) gem. See `bundle exec
|
|
69
|
+
rake -T version` for commands. Bumping the version will change the `VERSION`
|
|
70
|
+
file, commit the changes, and create a tag. You can then push the tag to your
|
|
71
|
+
remote:
|
|
72
|
+
|
|
73
|
+
```
|
|
74
|
+
bundle exec rake version:bump # create a minor version bump
|
|
75
|
+
git push # push code changes
|
|
76
|
+
git push origin $(bundle exec rake version) # push new tag
|
|
77
|
+
```
|
|
78
|
+
|
|
50
79
|
## License
|
|
51
80
|
|
|
52
81
|
Please see the LICENSE.md file.
|
data/Rakefile
ADDED
data/VERSION
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
1.1.0
|
data/lib/omniauth-msunet.rb
CHANGED
data/omniauth-msunet.gemspec
CHANGED
|
@@ -1,23 +1,25 @@
|
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
|
2
|
-
require File.expand_path('../lib/omniauth-msunet/version', __FILE__)
|
|
3
2
|
|
|
4
3
|
Gem::Specification.new do |gem|
|
|
5
|
-
gem.
|
|
6
|
-
gem.
|
|
7
|
-
gem.
|
|
8
|
-
gem.
|
|
9
|
-
gem.homepage
|
|
10
|
-
gem.license
|
|
4
|
+
gem.name = 'omniauth-msunet'
|
|
5
|
+
gem.summary = %q{Michigan State University MSUnet OmniAuth strategy.}
|
|
6
|
+
gem.description = %q{Official OmniAuth strategy for authenticating against the Michigan State University MSUnet OAuth2 provider.}
|
|
7
|
+
gem.version = File.read('VERSION')
|
|
8
|
+
gem.homepage = "https://gitlab.msu.edu/msu-middleware-group/omniauth-msunet"
|
|
9
|
+
gem.license = 'Nonstandard'
|
|
10
|
+
|
|
11
|
+
gem.authors = ['Troy Murray', 'Andrew Tomaka']
|
|
12
|
+
gem.email = ['tm@msu.edu', 'atomaka@msu.edu']
|
|
11
13
|
|
|
12
14
|
gem.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
|
13
15
|
gem.files = `git ls-files`.split("\n")
|
|
14
16
|
gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
|
15
|
-
gem.name = "omniauth-msunet"
|
|
16
17
|
gem.require_paths = ["lib"]
|
|
17
|
-
gem.version = OmniAuth::MSUnet::VERSION
|
|
18
18
|
|
|
19
19
|
gem.add_dependency 'omniauth', '~> 1.1'
|
|
20
20
|
gem.add_dependency 'omniauth-oauth2', '~> 1.1'
|
|
21
21
|
gem.add_dependency 'multi_json', '~> 1.7'
|
|
22
22
|
gem.add_development_dependency 'rspec', '~> 3.4'
|
|
23
|
+
gem.add_development_dependency 'rake'
|
|
24
|
+
gem.add_development_dependency 'version'
|
|
23
25
|
end
|
|
@@ -21,7 +21,7 @@ describe OmniAuth::Strategies::MSUnet do
|
|
|
21
21
|
|
|
22
22
|
describe '#client_options' do
|
|
23
23
|
it 'has correct site' do
|
|
24
|
-
expect(subject.client.site).to eq('https://oauth.
|
|
24
|
+
expect(subject.client.site).to eq('https://oauth.itservices.msu.edu')
|
|
25
25
|
end
|
|
26
26
|
|
|
27
27
|
it 'has correct authorize_url' do
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: omniauth-msunet
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0
|
|
4
|
+
version: 1.1.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Troy Murray
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2016-
|
|
12
|
+
date: 2016-11-04 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: omniauth
|
|
@@ -67,6 +67,34 @@ dependencies:
|
|
|
67
67
|
- - "~>"
|
|
68
68
|
- !ruby/object:Gem::Version
|
|
69
69
|
version: '3.4'
|
|
70
|
+
- !ruby/object:Gem::Dependency
|
|
71
|
+
name: rake
|
|
72
|
+
requirement: !ruby/object:Gem::Requirement
|
|
73
|
+
requirements:
|
|
74
|
+
- - ">="
|
|
75
|
+
- !ruby/object:Gem::Version
|
|
76
|
+
version: '0'
|
|
77
|
+
type: :development
|
|
78
|
+
prerelease: false
|
|
79
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
80
|
+
requirements:
|
|
81
|
+
- - ">="
|
|
82
|
+
- !ruby/object:Gem::Version
|
|
83
|
+
version: '0'
|
|
84
|
+
- !ruby/object:Gem::Dependency
|
|
85
|
+
name: version
|
|
86
|
+
requirement: !ruby/object:Gem::Requirement
|
|
87
|
+
requirements:
|
|
88
|
+
- - ">="
|
|
89
|
+
- !ruby/object:Gem::Version
|
|
90
|
+
version: '0'
|
|
91
|
+
type: :development
|
|
92
|
+
prerelease: false
|
|
93
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
94
|
+
requirements:
|
|
95
|
+
- - ">="
|
|
96
|
+
- !ruby/object:Gem::Version
|
|
97
|
+
version: '0'
|
|
70
98
|
description: Official OmniAuth strategy for authenticating against the Michigan State
|
|
71
99
|
University MSUnet OAuth2 provider.
|
|
72
100
|
email:
|
|
@@ -77,19 +105,21 @@ extensions: []
|
|
|
77
105
|
extra_rdoc_files: []
|
|
78
106
|
files:
|
|
79
107
|
- ".gitignore"
|
|
108
|
+
- ".travis.yml"
|
|
80
109
|
- CHANGELOG.md
|
|
81
110
|
- Gemfile
|
|
82
111
|
- LICENSE.md
|
|
83
112
|
- README.md
|
|
113
|
+
- Rakefile
|
|
114
|
+
- VERSION
|
|
84
115
|
- lib/omniauth-msunet.rb
|
|
85
|
-
- lib/omniauth-msunet/version.rb
|
|
86
116
|
- lib/omniauth/strategies/msunet.rb
|
|
87
117
|
- omniauth-msunet.gemspec
|
|
88
118
|
- spec/omniauth/strategies/msunet_spec.rb
|
|
89
119
|
- spec/spec_helper.rb
|
|
90
120
|
homepage: https://gitlab.msu.edu/msu-middleware-group/omniauth-msunet
|
|
91
121
|
licenses:
|
|
92
|
-
-
|
|
122
|
+
- Nonstandard
|
|
93
123
|
metadata: {}
|
|
94
124
|
post_install_message:
|
|
95
125
|
rdoc_options: []
|