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 +4 -4
- data/lib/onelogin/api/client.rb +2 -2
- data/lib/onelogin/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2c74691d3135978399a56be269994f8a02e10a2f
|
4
|
+
data.tar.gz: a0909bc388370abf18e914400a227828afe2cc27
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f90e4910a29c0606a8a267e65fc44b5c2a21bd55cb8745b38ad637f8adc6f85802187b5c766528e23a6ac88371a9fddfd7ac403430711d042c5b290dc56e3848
|
7
|
+
data.tar.gz: d46d28fa02a974e90dd88c419890de2b9e187f426a73008687d4356cb9bee327eafbac3c754e0b187dbc71b35ea3c55bb6c435981fbb67e55d227a453b1a9b4f
|
data/lib/onelogin/api/client.rb
CHANGED
@@ -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
|
|
data/lib/onelogin/version.rb
CHANGED