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 +4 -4
- data/README.md +4 -3
- data/lib/omniauth/adp_oauth2/version.rb +1 -1
- data/lib/omniauth/strategies/adp_oauth2.rb +2 -9
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7295e43b19dbcaac43e1f4ea72dd17f16f2c29c5
|
4
|
+
data.tar.gz: c08626916de3db21bc6b0235b6e4a3aa0254808e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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-
|
2
|
-
[![
|
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'
|
14
|
+
gem 'omniauth-adp-oauth2'
|
14
15
|
```
|
15
16
|
|
16
17
|
Then `bundle install`.
|
@@ -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.
|
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:
|
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.
|
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
|