smbcloud-auth 0.4.3-x86_64-linux → 0.4.5-x86_64-linux

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: 203d1ce735a32f6720d0063360a0fea7bb8e789af1dabf0a48f812130d7bd776
4
- data.tar.gz: 0c12178f92b1da77339ff1dcb56d63f698fc0a61f1f79dd67036e54133c5adbd
3
+ metadata.gz: 1d09e93c18e6dc2a7f8aa7a38a0307ba14f6d4b6ba861fd99596d9ac4d7668bb
4
+ data.tar.gz: efc62c7a9ebb601dc064026bce6fb84a66274af6754c18dbdf3984f0dc10f2b5
5
5
  SHA512:
6
- metadata.gz: 7214406d4cc0916e2b3364102869a73d57b1b577a0f0e94b4ec178f9ee9e67dc72ca066b35078b27b7f3e21c43df0125f4a4edd3a7d039f82542c005fc91f01f
7
- data.tar.gz: f970eae355b271a77e16b2a6098145c34106ec414805ff36cbbddf01f9c4d0ac85620898f636a54bd2317ab3bfc43e5ea2baceed3b838700cf475c7bfc3e63a0
6
+ metadata.gz: 13e9b63192a13a59d5e73e6a6782e27ce31c9aa613fd3690489874703aebace32db724bed7d414a4fabcea48210f253e8d95455fd3f556417ca777dd45e3b5cf
7
+ data.tar.gz: fae1c5ca69f937ead4be1b1ab85aa669a32ebd339678fc4e2a88fae59ea86015cd7c0469ac3f54a7c20db4a2a5235ea1d3da851feca3fddcf12d630e57faa6ec
data/lib/auth/auth.so CHANGED
Binary file
data/lib/auth/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Auth
4
- VERSION = '0.4.3'
4
+ VERSION = '0.4.5'
5
5
  end
data/lib/auth.rb CHANGED
@@ -45,6 +45,16 @@ module SmbCloud
45
45
  raise Auth.send(:normalize_error, e)
46
46
  end
47
47
 
48
+ # Requests password-reset instructions for the given email. The endpoint
49
+ # never reveals whether the account exists (no enumeration), and calling
50
+ # it again re-issues the token, so this also serves the "resend reset
51
+ # instructions" flow. Returns { code:, message: }.
52
+ def reset_password(email:)
53
+ Auth.send(:parse_json, Auth.__reset_password_with_client(environment, app_id, app_secret, email))
54
+ rescue RuntimeError => e
55
+ raise Auth.send(:normalize_error, e)
56
+ end
57
+
48
58
  def me(access_token:)
49
59
  Auth.send(:parse_json, Auth.__me_with_client(environment, app_id, app_secret, access_token))
50
60
  rescue RuntimeError => e
@@ -77,6 +87,10 @@ module SmbCloud
77
87
  client(environment:, app_id:, app_secret:).login(email:, password:)
78
88
  end
79
89
 
90
+ def reset_password_with_client(environment:, app_id:, app_secret:, email:)
91
+ client(environment:, app_id:, app_secret:).reset_password(email:)
92
+ end
93
+
80
94
  def me_with_client(environment:, app_id:, app_secret:, access_token:)
81
95
  client(environment:, app_id:, app_secret:).me(access_token:)
82
96
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smbcloud-auth
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.3
4
+ version: 0.4.5
5
5
  platform: x86_64-linux
6
6
  authors:
7
7
  - Seto Elkahfi
8
8
  bindir: exe
9
9
  cert_chain: []
10
- date: 2026-06-12 00:00:00.000000000 Z
10
+ date: 2026-06-19 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: json