omniauth-g5 0.3.0 → 0.3.1

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: b6b7ffb6c317118d285c8b16f030e6237b79383e
4
- data.tar.gz: 9909020b687642335d8a6487349f4818db47d605
3
+ metadata.gz: 9f4ab60ede660142150f2c0c3442ee9cec279961
4
+ data.tar.gz: fee9062aaa5064f9dcfd39f4c43fadc72d043e82
5
5
  SHA512:
6
- metadata.gz: c42225051cf91f1c502017af0d501530b88ff4d84e096f707372597f684cc6955c5d100c7d85f65aa7c8963cf1068b6cf0a87b71472f01f9d20ef92b0510e1fc
7
- data.tar.gz: a851e83c340227e6a32f6e3c64c54fc4b24f54d5fdc20caca24cd5c0d750d50878eccfd22a67c308a3f1390e5e33c922b30ec7f86b413ec324ee7819749a7666
6
+ metadata.gz: 3a01cd42b6322da36d894f37c218ac6153d66fd68dcd8a823e62fb93afdbdfcecb0be2935d9b19e221cc20ba97e026877ecd425b434caf779fd2ef6ef43c2fcd
7
+ data.tar.gz: 8e10b49e28d5a6eba43be7b7aed23d988b037db01e9e3fbe2db72a292e69df920d6229fa7c2a58f79c6cc93f738499c1d5f3ef51cb97cb0191b2c13234f64546
@@ -1,3 +1,13 @@
1
+ ## v0.3.1 (2015-11-19)
2
+ * Pinned version of omniauth-auth2 to 1.3.1 since 1.4.0 removes a `callback_url`
3
+ method required for the Auth Workflow.
4
+ Expecting to be fixed by https://github.com/doorkeeper-gem/doorkeeper/issues/737
5
+
6
+ ## v0.3.0 (2015-06-01)
7
+
8
+ * Added resource type and urn to roles
9
+ ([#9](https://github.com/G5/omniauth-g5/pull/9))
10
+
1
11
  ## v0.2.0 (2015-05-20)
2
12
 
3
13
  * Added new fields to auth hash for user name, phone, title, and organization.
data/README.md CHANGED
@@ -8,7 +8,7 @@ This is the [OmniAuth][omniauth] strategy for authenticating to G5 via
8
8
 
9
9
  ## Current version
10
10
 
11
- 0.2.0
11
+ 0.3.1
12
12
 
13
13
  ## Requirements
14
14
 
@@ -83,8 +83,11 @@ specifically uses the following subset of the full
83
83
  not necessarily match the G5 client name. For example, it could be the name
84
84
  of a department or business unit within the client's organization.
85
85
  * `roles` - the array of roles assigned to the user (may be empty)
86
- * `uid` - the unique identifier of the role on the auth server
87
86
  * `name` - the name of the role in snakecase
87
+ * `type` - the type of resource to which the role is scoped (e.g. "GLOBAL".
88
+ "G5Updatable::Client", "G5Updatable::Location")
89
+ * `urn` - the urn of the resource of which the role is scoped (may be nil
90
+ for global roles)
88
91
  * `raw_info` - a hash representation of the full JSON response from the G5
89
92
  auth server
90
93
 
@@ -112,10 +115,10 @@ For example:
112
115
  "phone_number"=>"(555) 555-5555",
113
116
  "organization_name"=>"Test Org",
114
117
  "title"=>"Tester",
115
- "roles"=>[{"id"=>4,"name"=>"viewer"}]},
118
+ "roles"=>[{"name"=>"viewer","type"=>"GLOBAL","urn"=>nil}]},
116
119
  "title"=>"Tester",
117
120
  "organization_name"=>"Test Org",
118
- "roles" => [{"uid"=>4,"name"=>"viewer"}]}}
121
+ "roles"=>[{"name"=>"viewer","type"=>"GLOBAL","urn"=>nil}]}}
119
122
  ```
120
123
 
121
124
  ## Authors
@@ -1,5 +1,5 @@
1
1
  module OmniAuth
2
2
  module G5
3
- VERSION = '0.3.0'
3
+ VERSION = '0.3.1'
4
4
  end
5
5
  end
@@ -17,7 +17,8 @@ Gem::Specification.new do |gem|
17
17
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
18
18
  gem.require_paths = ["lib"]
19
19
 
20
- gem.add_dependency('omniauth-oauth2', '~> 1.1')
20
+ # Pinning version to 1.3.1 since 1.4.0 removes the `callback_url` method required for our oauth workflow
21
+ gem.add_dependency('omniauth-oauth2', '= 1.3.1')
21
22
 
22
23
  gem.add_development_dependency('rspec', '~> 3.2')
23
24
  gem.add_development_dependency('rspec-its')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-g5
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Maeve Revels
@@ -9,22 +9,22 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-06-01 00:00:00.000000000 Z
12
+ date: 2015-11-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: omniauth-oauth2
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  requirements:
18
- - - "~>"
18
+ - - '='
19
19
  - !ruby/object:Gem::Version
20
- version: '1.1'
20
+ version: 1.3.1
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
- - - "~>"
25
+ - - '='
26
26
  - !ruby/object:Gem::Version
27
- version: '1.1'
27
+ version: 1.3.1
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: rspec
30
30
  requirement: !ruby/object:Gem::Requirement