logstash-input-centrifyidplatform 1.0.0 → 1.0.1

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
  SHA1:
3
- metadata.gz: fe10692c16ca44f5994687387030b1e5d86d3d71
4
- data.tar.gz: bda9546b17d99d5027eb0b3971e79445a9df074e
3
+ metadata.gz: aa28944d86bc31549eb86b98c4da7fca0d98d720
4
+ data.tar.gz: d9d97e9ff62be780502f3358cb5397f0a597bbd4
5
5
  SHA512:
6
- metadata.gz: 8f1c60ffb65bdf23012f3f941094057417a3b2455d6bf471d9f34e157ea1474428107a3941cef4b9576d28dcc3d8daaac41cc845c659f4b5799dae108e35dc1a
7
- data.tar.gz: 83cd60f040754239d739319dceaae5b960ad0b4e695f02fc37c5d2d1c3ef8428918b910559aaa6ab80d3cd794137de88c3c69b3b7aae454079f9b8c87833608b
6
+ metadata.gz: f7be86b06353cecdffdf2839525ca758683e56590480b03d4328cf97fa4e1c8f0fdf29572551a5c288bcc0bcb0bc0f96c239ad15c359a412f23cd787240bd0c6
7
+ data.tar.gz: 1b8bae4bee77d7780c674de4255a3d8a5b3d0a71e5b403f9a9830f7a4219492d437df998cfd894ed3b05137963b8713fd028729da31aff1bbad510f4458f9853
data/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # Logstash Input Plugin for Centrify Identity Platform
2
2
 
3
+ [![Gem Version](https://badge.fury.io/rb/logstash-input-centrifyidplatform.svg)](https://rubygems.org/gems/logstash-input-centrifyidplatform)
4
+
3
5
  For more detail on using the Centrify Identity Platform logstash plugin, see [instructions](INSTRUCTIONS.md).
4
6
 
5
7
  This is a plugin for [Logstash](https://github.com/elastic/logstash).
@@ -132,6 +132,7 @@ class LogStash::Inputs::Centrifyidplatform < LogStash::Inputs::Base
132
132
  def post_request(queue, bearer_token)
133
133
  post = Net::HTTP::Post.new("#{@query_endpoint}")
134
134
  post["Authorization"] = "Bearer #{bearer_token}"
135
+ post['X-CENTRIFY-NATIVE-CLIENT'] = "True"
135
136
  post.body = JSON.generate({:Script => @eventquery})
136
137
  post['User-Agent'] = "logstash-centrifyidplatform/#{@version}"
137
138
  @logger.debug("Requesting query data: #{JSON.generate({:Script => @eventquery})}")
@@ -151,6 +152,7 @@ class LogStash::Inputs::Centrifyidplatform < LogStash::Inputs::Base
151
152
  login = Net::HTTP::Post.new(@token_endpoint)
152
153
  login['User-Agent'] = "logstash-centrifyidplatform/#{@version}"
153
154
  login['Content-Type'] = "application/x-www-form-urlencoded"
155
+ login['X-CENTRIFY-NATIVE-CLIENT'] = "True"
154
156
  credentials = Base64.strict_encode64 ("#{@username}:#{@password}")
155
157
  @logger.debug("Centrify Identity Platform login credentials: Basic #{credentials}")
156
158
  login["Authorization"] = "Basic #{credentials}"
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'logstash-input-centrifyidplatform'
3
- s.version = '1.0.0'
3
+ s.version = '1.0.1'
4
4
  s.licenses = ['Apache-2.0']
5
5
  s.summary = 'Logstash input plugin for Centrify Identity Platform.'
6
6
  s.description = 'Logstash input plugin for the Centrify Identity Platform RedRock/query feed endpoint https://developer.centrify.com/reference'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-input-centrifyidplatform
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - r32rtb
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-04-21 00:00:00.000000000 Z
11
+ date: 2020-05-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement