standard_id 0.1.4 → 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 69b5bf55ec553e3b3708be74454f71c489125cfbf940f08b72e0225f3999a785
4
- data.tar.gz: '0908e70df1d46b755d5b00db7b2d1607e6982b10d04f07e47315063934dbe3a2'
3
+ metadata.gz: d55cdf40a33a4f541b1de5ecb1c19f827b92123b63bccd56781da4671944ff45
4
+ data.tar.gz: 714bc65bd0aa6a6913b51c0f59f659f41a425a5a21489103d89624149e3ff61d
5
5
  SHA512:
6
- metadata.gz: dc37d401a1ec647be6750b5ec05f23b633e752704c00e69e8e721230070c574ebf5c52b0f3d515808c4aa59c12172b815f2c6cb20ff0b7c38775e5d7e721ae6f
7
- data.tar.gz: 1987f39eeb1b7fe3924de437ad6de02d05650a84964c3cbb20ac9733dec5a75c5d7a4a288ae543443cd34c16d8eefb00569d85a38679d4693531ff9ae9815418
6
+ metadata.gz: 0625c5efdb00b0e0d8558191c2b8ad7c9512c6ec13a5fe5896393497241f2f8313f8633b3e319358915b00ff33b23a3979b28e32c64fc20664b9a5e513625d5b
7
+ data.tar.gz: 0fb8080e7bee90799d27daa892fb9c221e5d4558b0a5c73916249988f6875793ec54ae2afdc6c93d11b526acee37f23e7350e3f2f47522c67b2e6c37c10e8626
@@ -57,7 +57,13 @@ module StandardId
57
57
  def resolve_account_attributes(social_info, provider)
58
58
  resolver = StandardId.config.social_account_attributes
59
59
  attrs = if resolver.respond_to?(:call)
60
- resolver.call(social_info: social_info, provider: provider)
60
+ payload = {
61
+ social_info: social_info,
62
+ provider: provider
63
+ }
64
+
65
+ filtered_payload = StandardId::Utils::CallableParameterFilter.filter(resolver, payload)
66
+ resolver.call(**filtered_payload)
61
67
  else
62
68
  {
63
69
  email: social_info[:email],
@@ -90,6 +96,7 @@ module StandardId
90
96
 
91
97
  def run_social_callback(provider:, social_info:, provider_tokens:, account:)
92
98
  callback = StandardId.config.social_callback
99
+ return if callback.blank?
93
100
 
94
101
  payload = {
95
102
  provider: provider,
@@ -1,3 +1,3 @@
1
1
  module StandardId
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: standard_id
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jaryl Sim