omniauth-msunet 1.0.2 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6fd0c7bae1d9ae0c5dfb334385bf172701a29f5b
4
- data.tar.gz: b850e88fe74294a8d62e409a74fa0faf5722eea8
3
+ metadata.gz: e145f947c14607fbeb56a9606f933e327cd997af
4
+ data.tar.gz: 04fc166639330f15eb72c8599171fcf1c6a065d9
5
5
  SHA512:
6
- metadata.gz: 4856f0e5c8eb59e4c097431781a435dac7dff14c73715e699670d342a5c6c92e2de0aff5c86a9aaf80132d14f13cf16dc7632af8bfab0da42178609567d150c6
7
- data.tar.gz: c1a048f6e1ddfdf68b6a28292d60d217a87ffe61fe1a16c5ba0bbeb1dee3b2d65869409b27066add5637aca81dd5532f9def42d8f4d09c1fe9b866937966d038
6
+ metadata.gz: 486ebb24e033f651e6b1e46448392a529ccff9264944e6feebaede08d6dee13758b336c65ca7b5ce97f28b25dca1c70725d57023e040a0460159a1b499115689
7
+ data.tar.gz: c35487c9e37eb6030f1090c9a885002fb61e7f01ae256ed78f9d18b0ef3810f522c15be4574d9757b243665e7f48bac1bfc59d1af40d5382af474af7b2068bc1
@@ -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
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.1.0
4
+
5
+ * Change service hostname from oauth.ais.msu.edu to oauth.itservices.msu.edu
6
+
3
7
  ## 1.0.2
4
8
 
5
9
  * Clean-up some code and formatting
data/Gemfile CHANGED
@@ -1,4 +1,5 @@
1
1
  source 'http://rubygems.org'
2
2
 
3
- # Specify your gem's dependencies in omniauth-msunet.gemspec
3
+ gem 'rack', '< 2.0.1', platform: :ruby_21
4
+
4
5
  gemspec
data/README.md CHANGED
@@ -1,15 +1,20 @@
1
- # OmniAuth MSUnet
1
+ # OmniAuth MSU NetID
2
2
 
3
- This is the official OmniAuth strategy gem for authenticating to [Michigan State University](http://www.msu.edu) MSUnet using OAuth2. To use this gem you'll need the following:
3
+ [![Build Status](https://travis-ci.org/Michigan-State-University/omniauth-msunet.svg?branch=master)](https://travis-ci.org/Michigan-State-University/omniauth-msunet)
4
+ [![Dependency Status](https://gemnasium.com/Michigan-State-University/omniauth-oauth2.svg)](https://gemnasium.com/Michigan-State-University/omniauth-oauth2)
4
5
 
5
- * Contact MSU IT Services at 517-432-6200 to request to register your application.
6
- * Provide IT Services with a callback URL, which is where to send successful MSUnet authentication requests back to your application. Note: this must be a HTTPS address.
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', :git => 'https://gitlab.msu.edu/tm/omniauth-msunet.git'```
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":"MSUNet OAuth2 Auth-n"
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.
@@ -0,0 +1,5 @@
1
+ require 'rake/version_task'
2
+
3
+ Rake::VersionTask.new do |task|
4
+ task.with_git_tag = true
5
+ end
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 1.1.0
@@ -1,3 +1,2 @@
1
1
  require 'omniauth-oauth2'
2
- require 'omniauth-msunet/version'
3
2
  require 'omniauth/strategies/msunet'
@@ -5,7 +5,7 @@ module OmniAuth
5
5
  module Strategies
6
6
  class MSUnet < OmniAuth::Strategies::OAuth2
7
7
  option :client_options, {
8
- site: "https://oauth.ais.msu.edu",
8
+ site: "https://oauth.itservices.msu.edu",
9
9
  authorize_url: "/oauth/authorize",
10
10
  token_url: "/oauth/token"
11
11
  }
@@ -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.authors = ['Troy Murray', 'Andrew Tomaka']
6
- gem.email = ['tm@msu.edu', 'atomaka@msu.edu']
7
- gem.summary = %q{Michigan State University MSUnet OmniAuth strategy.}
8
- gem.description = %q{Official OmniAuth strategy for authenticating against the Michigan State University MSUnet OAuth2 provider.}
9
- gem.homepage = "https://gitlab.msu.edu/msu-middleware-group/omniauth-msunet"
10
- gem.license = 'MSU'
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.ais.msu.edu')
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.2
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-04-04 00:00:00.000000000 Z
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
- - MSU
122
+ - Nonstandard
93
123
  metadata: {}
94
124
  post_install_message:
95
125
  rdoc_options: []
@@ -1,5 +0,0 @@
1
- module OmniAuth
2
- module MSUnet
3
- VERSION = "1.0.2"
4
- end
5
- end