omniauth-vis 0.0.2 → 0.0.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 629b78fabaac3afbb49bda60037485bf94fd812212b23152c92eb3edb0af57fe
4
- data.tar.gz: d619da57ccd0602c3b81f854e5e5cf0e894ea8d872bdf55fb8ac253ab5c99978
3
+ metadata.gz: d976f9b8df76dd81e4cbfd80fa6936e41adecd869cd342536a8ba23031190a26
4
+ data.tar.gz: '09167697bbdcf67522ac9dd0ed71996ae968f15443f7a71957444264470ed963'
5
5
  SHA512:
6
- metadata.gz: 9c7ff8ee0d11e59c69ae055224decc3bf17cf29bcf53f7d378406817f8d3b3090045fa890bc5f086bac60732d8d779b2b658308a7ae5e67bbe91437cc552db90
7
- data.tar.gz: 9d78c3f003085a28194aa6cfb67750027c7b2e3dd142fecd6f8902a7b728d8a3adbdef9c1b54316ace038b8c2d2be53854befa1056180956cfea53d725b41ac8
6
+ metadata.gz: 9cfffdd74c221e8ecc402d22dd25b3bf3dc8b0324829b7b1093cb7e7476fa82aad5f7bbcf59b77177a979a5dd9601902bac068269c4fe9ed43dbcb0a4bbeb599
7
+ data.tar.gz: 7b34828845d83f0ea0e282e2e470889290fde01284092992842dfea45a06d24c9e63802bd264cb23a9b764db4b9a45fe4a080041cf57fd4809ea004e1a60a59c
data/README.md CHANGED
@@ -40,6 +40,8 @@ You first need to install `omniauth-oauth2` gem, then add a new provider :
40
40
  ```
41
41
  # config/initializers/omniauth.rb
42
42
 
43
+ require "omniauth/strategies/vis"
44
+
43
45
  Rails.application.config.middleware.use OmniAuth::Builder do
44
46
  provider :vis, Rails.application.config.vis["app_id"], Rails.application.config.vis["app_secret"],
45
47
  {
@@ -53,6 +55,7 @@ end
53
55
  `Vis::Api` will implement [Oauth2 Client Credentials Flow](https://auth0.com/docs/get-started/authentication-and-authorization-flow/client-credentials-flow) behind the scene
54
56
 
55
57
  ```
58
+ require "vis/api"
56
59
  @vis_api = Vis::Api.new
57
60
  @vis_service.get("api_path")
58
61
  @vis_service.post("api_path", data)
@@ -17,7 +17,7 @@ module OmniAuth
17
17
 
18
18
  def setup_phase
19
19
  # Authorize extra params
20
- authorized_params = [:locale, :confirm_identity, :allow_sign_up,
20
+ authorized_params = [:locale, :confirm_identity, :allow_sign_up, :app_name,
21
21
  :allowed_external_providers, :extra_agreement_title, :extra_agreement_text]
22
22
  authorized_params.each do |param|
23
23
  request.env['omniauth.strategy'].options[:authorize_params][param] = request.params[param.to_s]
data/omniauth-vis.gemspec CHANGED
@@ -2,13 +2,13 @@
2
2
 
3
3
  Gem::Specification.new do |gem|
4
4
  gem.name = 'omniauth-vis'
5
- gem.version = '0.0.2'
5
+ gem.version = '0.0.4'
6
6
  # gem.license = 'MIT'
7
7
  gem.summary = 'Helper to connect to Vipassna 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']
11
- # gem.homepage = 'https://identity.server.dhamma.org/'
11
+ gem.homepage = 'https://github.com/dhammaorg/omniauth-vis'
12
12
 
13
13
  gem.files = `git ls-files`.split("\n")
14
14
  gem.require_paths = ['lib']
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.0.2
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dhamma workers
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-10-04 00:00:00.000000000 Z
11
+ date: 2023-04-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: omniauth-oauth2
@@ -39,7 +39,7 @@ files:
39
39
  - lib/omniauth_vis.rb
40
40
  - lib/vis/api.rb
41
41
  - omniauth-vis.gemspec
42
- homepage:
42
+ homepage: https://github.com/dhammaorg/omniauth-vis
43
43
  licenses: []
44
44
  metadata: {}
45
45
  post_install_message:
@@ -57,8 +57,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
57
57
  - !ruby/object:Gem::Version
58
58
  version: '0'
59
59
  requirements: []
60
- rubyforge_project:
61
- rubygems_version: 2.7.6.2
60
+ rubygems_version: 3.2.5
62
61
  signing_key:
63
62
  specification_version: 4
64
63
  summary: Helper to connect to Vipassna Identity Server