lex-microsoft_teams 0.6.30 → 0.6.31
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2cb9b484690573e09d2ba51b41fd68d9778411e4cae5107df637c5ba61aa0c77
|
|
4
|
+
data.tar.gz: 5019f9a889aa838b72f8b0b0479b6940eab55172d9ce3664a051dd1cf39c7135
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ebdafd3cd70fe3defb892dbee2a7ea98065c8bc0499df082da875086eff68007482c2caadbd68970a57b3bc017d4954dea4cfe196803dc3cc93f611f493663df
|
|
7
|
+
data.tar.gz: 3a03664ceac7e263dad40a91a4ded1142538ea3b303e3cdcdf854dd7c65bc6316e5d7e947cddac29007522eb8393a5eacb0639ffb12313076c0b2ae70f12d0af
|
data/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
## [Unreleased]
|
|
4
4
|
|
|
5
|
+
## [0.6.31] - 2026-03-31
|
|
6
|
+
|
|
7
|
+
### Fixed
|
|
8
|
+
- `CLI::Auth#login` now correctly extracts token from `result[:result]` (BrowserAuth return format), fixing CLI login never persisting to Vault or storing delegated token
|
|
9
|
+
- `CLI::Auth#store_token` now passes individual keyword args to `store_delegated_token` instead of the raw result hash
|
|
10
|
+
|
|
5
11
|
## [0.6.30] - 2026-03-31
|
|
6
12
|
|
|
7
13
|
### Fixed
|
|
@@ -38,9 +38,10 @@ module Legion
|
|
|
38
38
|
browser_auth = Helpers::BrowserAuth.new(tenant_id: tid, client_id: cid, force_local_server: true)
|
|
39
39
|
result = browser_auth.authenticate
|
|
40
40
|
|
|
41
|
-
|
|
41
|
+
body = result&.dig(:result)
|
|
42
|
+
if body&.dig('access_token')
|
|
42
43
|
log.info('Authentication successful, storing token')
|
|
43
|
-
store_token(
|
|
44
|
+
store_token(body)
|
|
44
45
|
puts 'Teams authenticated successfully.'
|
|
45
46
|
else
|
|
46
47
|
log.warn("Authentication result: #{result&.keys&.join(', ') || 'nil'}")
|
|
@@ -73,9 +74,14 @@ module Legion
|
|
|
73
74
|
{}
|
|
74
75
|
end
|
|
75
76
|
|
|
76
|
-
def store_token(
|
|
77
|
+
def store_token(body)
|
|
77
78
|
cache = Helpers::TokenCache.instance
|
|
78
|
-
cache.store_delegated_token(
|
|
79
|
+
cache.store_delegated_token(
|
|
80
|
+
access_token: body['access_token'],
|
|
81
|
+
refresh_token: body['refresh_token'],
|
|
82
|
+
expires_in: body['expires_in'],
|
|
83
|
+
scopes: body['scope']
|
|
84
|
+
)
|
|
79
85
|
cache.save_to_vault
|
|
80
86
|
log.info('Token stored successfully')
|
|
81
87
|
rescue StandardError => e
|