alula-ruby 2.5.0 → 2.6.0

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: a4bf132a58d1ada8a5b3f51a93ae98c2756d5607182310ebfcbe61a81bc328ab
4
- data.tar.gz: 9e71b484dfcccf5c08c2d9952dc74e5d1d217f47c81cb8b024e527fe9abf8e63
3
+ metadata.gz: 7e51b7f36321feadae1b87401320b5d85f544a724c484680fe1e73124e1e4776
4
+ data.tar.gz: c11764b061d10c3132cbea8353f87992ee4608345d382c2c7590fc046c4e318e
5
5
  SHA512:
6
- metadata.gz: 54f05a24a5164d534141b1217da494941e964d91e81c6ef5c38df3f1b698f2aded03b777f9c793504adc9bbf6d4a2c371470507598c2c37eb18b6b24ab4a57bd
7
- data.tar.gz: 35b71cfc4669eda49793dd0a440448e22d626012156c8c372e111fed4e5b7261ba74882be830c21cafdf0d7625bb74a1b3551224bff532170a659047e259cd14
6
+ metadata.gz: 4b3d4bf6aa24737497ea58e400d326f0b8fba47221880a10ebbb98911c121915b72ebe9e110b22facfbe1e6ac14e965239a696af648b610d3e6586df5fe49c8c
7
+ data.tar.gz: af06c0421b28d2421da2c7352b4d546e5d55d5cca5e04e907d822e376d7f112945d945456fb9e295cd98e97f3496dd0517f2c2f4641fe584ddce5cc7b3ed5d28
data/VERSION.md CHANGED
@@ -2,6 +2,7 @@
2
2
 
3
3
  | Version | Date | Description |
4
4
  | ------- | ------------| --------------------------------------------------------------------------- |
5
+ | v2.6.0 | 2025-01-09 | Add ability to request specific scopes for impersonator tokens |
5
6
  | v2.5.0 | 2025-01-06 | Add country/state fields to dealer, device, and user |
6
7
  | v2.4.0 | 2024-12-19 | Add DeviceUser and HelixUser Revision relationships |
7
8
  | v2.3.0 | 2024-12-17 | Add Video Register Proc |
@@ -6,10 +6,10 @@ module Alula
6
6
  # Helper class to generate OAuth access tokens (core API) and JWT tokens (VSP API)
7
7
  class TokenExchange
8
8
  class << self
9
- def token_for_user(user_id)
9
+ def token_for_user(user_id, opts = {}, scope: nil)
10
10
  url = '/rest/v1/oauth/accesstokens'
11
11
  payload = { data: { attributes: { userId: user_id } } }
12
- opts = {}
12
+ payload[:data][:attributes][:scope] = scope if scope
13
13
 
14
14
  response = Alula::Client.request(:post, url, payload, opts)
15
15
 
data/lib/alula/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Alula
4
- VERSION = '2.5.0'
4
+ VERSION = '2.6.0'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alula-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.5.0
4
+ version: 2.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Titus Johnson
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-01-06 00:00:00.000000000 Z
11
+ date: 2025-01-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty