Skip to content
Snippets Groups Projects
Commit 2b3179af authored by Tomaka, Andrew's avatar Tomaka, Andrew Committed by GitHub
Browse files

Merge pull request #3 from Michigan-State-University/change-oauth-hostname

Change oauth hostname and update documentation
parents c903024b 409312c5
No related branches found
No related tags found
No related merge requests found
# Changelog
## 1.1.0
* Change service hostname from oauth.ais.msu.edu to oauth.itservices.msu.edu
## 1.0.2
* Clean-up some code and formatting
......
# OmniAuth MSUnet
# OmniAuth MSU NetID
[![Build Status](https://travis-ci.org/Michigan-State-University/omniauth-msunet.svg?branch=master)](https://travis-ci.org/Michigan-State-University/omniauth-msunet)
[![Dependency Status](https://gemnasium.com/Michigan-State-University/omniauth-oauth2.svg)](https://gemnasium.com/Michigan-State-University/omniauth-oauth2)
## Description
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:
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:
* Contact MSU IT Services at 517-432-6200 to request to register your application.
* 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.
* 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)
* 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.
* Receive a `client_id` token and `client_secret` token specific for your application.
## Installation
To install this gem you need to add it to your Gemfile as follows:
```gem 'omniauth-msunet', :git => 'https://gitlab.msu.edu/tm/omniauth-msunet.git'```
```gem 'omniauth-msunet'```
## Basic Usage
......@@ -47,7 +47,7 @@ Once the login is completed you should receive the following hash that you can a
"email":"sparty@msu.edu",
"first_name":"John",
"last_name":"Sparty",
"description":"MSUNet OAuth2 Auth-n"
"description":"MSU NetID OAuth2 Auth-n"
}
}
```
......
1.0.2
1.1.0
......@@ -5,7 +5,7 @@ module OmniAuth
module Strategies
class MSUnet < OmniAuth::Strategies::OAuth2
option :client_options, {
site: "https://oauth.ais.msu.edu",
site: "https://oauth.itservices.msu.edu",
authorize_url: "/oauth/authorize",
token_url: "/oauth/token"
}
......
......@@ -21,7 +21,7 @@ describe OmniAuth::Strategies::MSUnet do
describe '#client_options' do
it 'has correct site' do
expect(subject.client.site).to eq('https://oauth.ais.msu.edu')
expect(subject.client.site).to eq('https://oauth.itservices.msu.edu')
end
it 'has correct authorize_url' do
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment