Repository is archived
No commit activity in last 3 years
No release in over 3 years
Provides OAuth2 credentials negotiation on an Elasticsearch transport
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

 Project Readme
OAuth2 Elasticsearch Transport
==============================

Provides OAuth2 credentials negotiation on an Elasticsearch transport.

Usage:

Elasticsearch::Client.new(
  url: 'https://elasticsearch-server.no',
  transport_class: OAuth2ElasticsearchTransport,
  oauth2: {
    id: 'id',
    secret: 'secret',
    options: {
      site: 'https://credentials-server.no'
    }
  }
)

All options are passed to Elasticsearch::Client - i.e.: log, logger. The oauth2.id, oauth2.secret and oauth2.options options are converted into the respective parameters for OAuth2::Client - i.e.: 'id', 'secret', site: 'https://credentials-server.no', token_url: '/token'.

============================
Copyright (c) 2014 Globo.com
See license for details.