omniauth-adp-oauth2 0.0.1 → 0.0.2

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: 13b52eae3117f543c5def0a7eabb8c22b8ea2ec2
4
- data.tar.gz: ebb044384966c7d6048eccd91aa923a5be686220
3
+ metadata.gz: 7295e43b19dbcaac43e1f4ea72dd17f16f2c29c5
4
+ data.tar.gz: c08626916de3db21bc6b0235b6e4a3aa0254808e
5
5
  SHA512:
6
- metadata.gz: d4c454b1318b5a04575bdefe473307494e8e7c9d323ea7fff9c5517fcd6e036dc87a6bb264278bd84280866c551ecfd5eb364f243208184bbd3338b00ebce7f2
7
- data.tar.gz: 1a28198f88c10741073015f93b72c301657df091a11906b4fb873c1e6eda97bb615ea96fc678f4e752afb0c28c8ca53e4d92d20ea0826365e8ee995de7e4c64d
6
+ metadata.gz: 97f168d9be3d000f9cd0124dad4337421ae8d1c57b672a59bd8e6caf959924668b29b12e0b73756f2faec433fc98ba9f75fb6e698dd646b281c8bc71bc28cb50
7
+ data.tar.gz: 5b84671f7c903878dea62e684754c3d3bd74d333a3c76b4cca4a83d4ff3e32ffcc1b063f3939fd543f333afac477601f90b2031d322b7eaa3af6c427702884cf
data/README.md CHANGED
@@ -1,5 +1,6 @@
1
- [![Gem Version](https://badge.fury.io/rb/omniauth-google-oauth2.svg)](https://badge.fury.io/rb/omniauth-google-oauth2)
2
- [![Build Status](https://travis-ci.org/zquestz/omniauth-google-oauth2.png)](https://travis-ci.org/zquestz/omniauth-google-oauth2)
1
+ [![Gem Version](https://badge.fury.io/rb/omniauth-adp-oauth2.svg)](https://badge.fury.io/rb/omniauth-adp-oauth2)
2
+ [![Code Climate](https://codeclimate.com/github/dahal/omniauth-adp-oauth2/badges/gpa.svg)](https://codeclimate.com/github/dahal/omniauth-adp-oauth2)
3
+ [![Issue Count](https://codeclimate.com/github/dahal/omniauth-adp-oauth2/badges/issue_count.svg)](https://codeclimate.com/github/dahal/omniauth-adp-oauth2)
3
4
 
4
5
  # OmniAuth ADP OAuth2 Strategy
5
6
 
@@ -10,7 +11,7 @@ Strategy to authenticate with ADP via OpenID CConnect in OmniAuth.
10
11
  Add to your `Gemfile`:
11
12
 
12
13
  ```ruby
13
- gem 'omniauth-adp-oauth2', github: 'dahal/omniauth-adp-oauth2'
14
+ gem 'omniauth-adp-oauth2'
14
15
  ```
15
16
 
16
17
  Then `bundle install`.
@@ -1,5 +1,5 @@
1
1
  module OmniAuth
2
2
  module AdpOauth2
3
- VERSION = '0.0.1'
3
+ VERSION = '0.0.2'
4
4
  end
5
5
  end
@@ -6,14 +6,7 @@ require 'uri'
6
6
  module OmniAuth
7
7
  module Strategies
8
8
  class AdpOauth2 < OmniAuth::Strategies::OAuth2
9
- DEFAULT_SCOPE = %w(
10
- api
11
- openid
12
- profile
13
- hr.workerInformationManagement.workerManagement.workerViewing.worker.read
14
- hr.workerInformationManagement.workerManagement.associateManagement.associate.read
15
- hr.workerInformationManagement.workerManagement.employeeManagement.employee.read
16
- )
9
+ DEFAULT_SCOPE = %w(api openid profile)
17
10
 
18
11
  option :name, 'adp_oauth2'
19
12
  option :skip_jwt, false
@@ -21,7 +14,7 @@ module OmniAuth
21
14
  option :authorize_options, %i(response_type client_id redirect_uri scope state)
22
15
 
23
16
  option :client_options, {
24
- :site => 'https://accounts.adp.com',
17
+ :site => ENV['ADP_AUTH_HOST'] || 'https://accounts.adp.com',
25
18
  :authorize_url => '/auth/oauth/v2/authorize',
26
19
  :token_url => '/auth/oauth/v2/token'
27
20
  }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-adp-oauth2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Puru Dahal
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-08-22 00:00:00.000000000 Z
11
+ date: 2017-05-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: omniauth
@@ -118,7 +118,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
118
118
  version: '0'
119
119
  requirements: []
120
120
  rubyforge_project:
121
- rubygems_version: 2.4.5.1
121
+ rubygems_version: 2.5.2
122
122
  signing_key:
123
123
  specification_version: 4
124
124
  summary: A ADP OpenID/OAuth2 strategy for OmniAuth 1.x