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 +4 -4
- data/lib/auth/auth.so +0 -0
- data/lib/auth/version.rb +1 -1
- data/lib/auth.rb +14 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8830e7ad084cf84ed131e9360eed4e18789d78f6973ac1587143ab72f646f053
|
|
4
|
+
data.tar.gz: 9af749ead9a0990493c097da51821fa9ac0830d909dc00257306d1510b3e5b10
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d069fdd188c4384223f399d89b2f5fb88b3fe3d5ece1c916e65fb3feb55cf02b06aad584b5ca075da19e73449e3a09c74895f596370e28a32fc85f5cc76aeef3
|
|
7
|
+
data.tar.gz: 9753e8d44804836113b003ba96ee0498c5a7958436e9f90295097a74d314e2035ccc8f5fbe1df49b67ba54e75883bdced083d8110da6b206b4153ce20d60aeee
|
data/lib/auth/auth.so
CHANGED
|
Binary file
|
data/lib/auth/version.rb
CHANGED
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.
|
|
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-
|
|
10
|
+
date: 2026-06-19 00:00:00.000000000 Z
|
|
11
11
|
dependencies:
|
|
12
12
|
- !ruby/object:Gem::Dependency
|
|
13
13
|
name: json
|