onelogin 1.0.3 → 1.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8a853d4babb81062c1848521170d52d214790795
4
- data.tar.gz: b05724bd5d05456367fc6156a1a142e1520a1dc4
3
+ metadata.gz: 2c74691d3135978399a56be269994f8a02e10a2f
4
+ data.tar.gz: a0909bc388370abf18e914400a227828afe2cc27
5
5
  SHA512:
6
- metadata.gz: d0d58e6cd9c59d3dc9c532c48884c316a1e14f5f59f6524de078c4caea08df37c5a9e92d194250846316f72a520c1ac579d95d9ca208b1a12a7f4937d9875ca5
7
- data.tar.gz: 2f6ac6069d8ca15c0f705c103be55f50dd2258fdc8a381a64557fd7b1a08f91906ea87e2321d8035cd4eca752fcc78fa1e6c513f2102ab10541ac38ad5884268
6
+ metadata.gz: f90e4910a29c0606a8a267e65fc44b5c2a21bd55cb8745b38ad637f8adc6f85802187b5c766528e23a6ac88371a9fddfd7ac403430711d042c5b290dc56e3848
7
+ data.tar.gz: d46d28fa02a974e90dd88c419890de2b9e187f426a73008687d4356cb9bee327eafbac3c754e0b187dbc71b35ea3c55bb6c435981fbb67e55d227a453b1a9b4f
@@ -933,7 +933,7 @@ module OneLogin
933
933
  # @return [SessionTokenInfo] if the action succeed
934
934
  #
935
935
  # @see {https://developers.onelogin.com/api-docs/1/users/verify-factor Verify Factor documentation}
936
- def get_session_token_verified(device_id, state_token, otp_token=nil)
936
+ def get_session_token_verified(device_id, state_token, otp_token=nil, allowed_origin='')
937
937
  clean_error
938
938
  prepare_token
939
939
 
@@ -951,7 +951,7 @@ module OneLogin
951
951
 
952
952
  response = HTTParty.post(
953
953
  url,
954
- headers: authorized_headers,
954
+ headers: authorized_headers.merge({ 'Custom-Allowed-Origin-Header-1' => allowed_origin }),
955
955
  body: data.to_json
956
956
  )
957
957
 
@@ -1,3 +1,3 @@
1
1
  module OneLogin
2
- VERSION = "1.0.3"
2
+ VERSION = "1.0.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: onelogin
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - OneLogin