smbcloud-auth 0.4.3-aarch64-linux → 0.4.5-aarch64-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: 8b8312bac0ff6147b9d49fe31c86606189b9ebbea85621f92be27ef3e3adc974
4
- data.tar.gz: e6864e7cd0919a8fc52562b617d808f6e28e9b5365089316a42430a5e37c3386
3
+ metadata.gz: 8830e7ad084cf84ed131e9360eed4e18789d78f6973ac1587143ab72f646f053
4
+ data.tar.gz: 9af749ead9a0990493c097da51821fa9ac0830d909dc00257306d1510b3e5b10
5
5
  SHA512:
6
- metadata.gz: 367b7434869bd45ceaef26656bc3e1d64b3657c8d861483d96d74884063f1f600b30e49c1daaac45fd487c58e5655cec61884b79ce56cb70e3b343dd36749293
7
- data.tar.gz: '0159a960e30de9970700eebb1af3bf2d64623628f11101ea2decb112562b1f71a9348593a812b79b6f333c483b3bbc6bd4f7fc6b45eda20b99696bcf7990fe0c'
6
+ metadata.gz: d069fdd188c4384223f399d89b2f5fb88b3fe3d5ece1c916e65fb3feb55cf02b06aad584b5ca075da19e73449e3a09c74895f596370e28a32fc85f5cc76aeef3
7
+ data.tar.gz: 9753e8d44804836113b003ba96ee0498c5a7958436e9f90295097a74d314e2035ccc8f5fbe1df49b67ba54e75883bdced083d8110da6b206b4153ce20d60aeee
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: aarch64-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