omniauth-vis 0.1.3 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +13 -0
- data/README.md +6 -6
- data/lib/vis/api.rb +8 -2
- data/omniauth-vis.gemspec +2 -2
- metadata +8 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2311402bef3b4dd30c6cb4d11bfca2b7b5c4b9e8f36e01511ce91051d5f6b54c
|
4
|
+
data.tar.gz: e14a4a71e63c0d77979d7706a6ed3ca966fd05eb9d3dd61c0b3fe970f5398d4f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dcd8da9459a012e00e3992f907a2a77197b1f7342fc3b6912156bdfc7b8319823c44a5648e9ceba8267bb7fcfca3f47ffd0d6a501d1a66b1431e5d9e764b59a6
|
7
|
+
data.tar.gz: f3e35dd275dcc5132dff07a8b90fa5a4416a9fe2053a7a37f1e2b4be89ef9190d50df987e2dfb28db47623097f5068ffc57675bd32d4b695340c5c1b53b5b350
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
# Changelog
|
2
|
+
|
3
|
+
## [0.1.5] - 2025-03-17
|
4
|
+
|
5
|
+
### Fixed
|
6
|
+
|
7
|
+
- include the `scope: default` parameter in the POST Token request, as it is now required by the latest versions of the doorkeeper-gem
|
8
|
+
|
9
|
+
## [0.1.4] - 2025-01-09
|
10
|
+
|
11
|
+
### Added
|
12
|
+
|
13
|
+
- support for DELETE requests
|
data/README.md
CHANGED
@@ -53,7 +53,8 @@ require "vis/api"
|
|
53
53
|
@vis_api.post("api_path", data)
|
54
54
|
```
|
55
55
|
|
56
|
-
|
56
|
+
The API documentation can be found at [https://identity.dhamma.org/doc](https://identity.dhamma.org/doc).
|
57
|
+
It is automatically generated from the VIS API Users Controller code deployed on production, through the `apipie-rails` gem.
|
57
58
|
|
58
59
|
Example
|
59
60
|
|
@@ -64,10 +65,9 @@ Example
|
|
64
65
|
encrypted_password: "xxxxxxxxxx"
|
65
66
|
})
|
66
67
|
```
|
67
|
-
|
68
68
|
## Developers, how to publish new version of the gem
|
69
69
|
|
70
|
-
|
71
|
-
gem
|
72
|
-
gem
|
73
|
-
|
70
|
+
* update the `CHANGELOG.md` file, see https://keepachangelog.com
|
71
|
+
* increase `gem.version` in `omniauth-vis.gemspec`
|
72
|
+
* `gem build omniauth-vis`
|
73
|
+
* `gem push omniauth-vis-X.X.X.gem`
|
data/lib/vis/api.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
#
|
1
|
+
# Vipassana Identity Server Service - for server to server Oauth 2 client_credentials grant flow
|
2
2
|
# gets tokens so we can use the VIS API
|
3
3
|
module Vis
|
4
4
|
class OauthError < StandardError; end
|
@@ -35,7 +35,7 @@ module Vis
|
|
35
35
|
http_client, uri = http_client_and_uri "/oauth/token"
|
36
36
|
request = Net::HTTP::Post.new(uri.request_uri)
|
37
37
|
request.set_form_data({ "client_id" => @client_id, "client_secret" => @client_secret,
|
38
|
-
"grant_type" => "client_credentials" })
|
38
|
+
"grant_type" => "client_credentials", "scope" => "default" })
|
39
39
|
http_client.request(request)
|
40
40
|
end
|
41
41
|
|
@@ -45,6 +45,12 @@ module Vis
|
|
45
45
|
return_response(response)
|
46
46
|
end
|
47
47
|
|
48
|
+
def delete(path)
|
49
|
+
http_client, uri = http_client_and_uri path
|
50
|
+
response = http_client.delete(uri, headers)
|
51
|
+
return_response(response)
|
52
|
+
end
|
53
|
+
|
48
54
|
def post(path, post_params_hash)
|
49
55
|
http_client, uri = http_client_and_uri path
|
50
56
|
response = http_client.post(uri, post_params_hash.to_json, headers)
|
data/omniauth-vis.gemspec
CHANGED
@@ -2,9 +2,9 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |gem|
|
4
4
|
gem.name = 'omniauth-vis'
|
5
|
-
gem.version = '0.1.
|
5
|
+
gem.version = '0.1.5'
|
6
6
|
# gem.license = 'MIT'
|
7
|
-
gem.summary = 'Helper to connect to
|
7
|
+
gem.summary = 'Helper to connect to Vipassana Identity Server'
|
8
8
|
gem.description = 'This allows you to connect to Vipassana identity server with your ruby app'
|
9
9
|
gem.authors = ['Dhamma workers']
|
10
10
|
gem.email = ['sebastian.castro@dhamma.org', 'ryan.johnson@dhamma.org']
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniauth-vis
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dhamma workers
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2025-03-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: omniauth-oauth2
|
@@ -34,6 +34,7 @@ extensions: []
|
|
34
34
|
extra_rdoc_files: []
|
35
35
|
files:
|
36
36
|
- ".gitignore"
|
37
|
+
- CHANGELOG.md
|
37
38
|
- README.md
|
38
39
|
- lib/omniauth/strategies/vis.rb
|
39
40
|
- lib/omniauth_vis.rb
|
@@ -42,7 +43,7 @@ files:
|
|
42
43
|
homepage: https://github.com/dhammaorg/omniauth-vis
|
43
44
|
licenses: []
|
44
45
|
metadata: {}
|
45
|
-
post_install_message:
|
46
|
+
post_install_message:
|
46
47
|
rdoc_options: []
|
47
48
|
require_paths:
|
48
49
|
- lib
|
@@ -57,8 +58,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
57
58
|
- !ruby/object:Gem::Version
|
58
59
|
version: '0'
|
59
60
|
requirements: []
|
60
|
-
rubygems_version: 3.
|
61
|
-
signing_key:
|
61
|
+
rubygems_version: 3.5.23
|
62
|
+
signing_key:
|
62
63
|
specification_version: 4
|
63
|
-
summary: Helper to connect to
|
64
|
+
summary: Helper to connect to Vipassana Identity Server
|
64
65
|
test_files: []
|