# Does http\_poller plugin supports OAUTH 2.0?

**URL:** <https://discuss.elastic.co/t/does-http-poller-plugin-supports-oauth-2-0/110599>\
**Category:** Logstash\
**Created:** [December 7, 2017, 3:36am UTC](https://discuss.elastic.co/t/does-http-poller-plugin-supports-oauth-2-0/110599 "2017-12-07T03:36:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rkhapre](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rkhapre/32/48333_2.png) [@rkhapre](https://discuss.elastic.co/u/rkhapre)\
**Post date:** [December 7, 2017, 3:36am UTC](https://discuss.elastic.co/t/does-http-poller-plugin-supports-oauth-2-0/110599/1 "2017-12-07T03:36:40Z")

</div>

Hi All,

I have a API which works on OAuth 2.0  
A OAuth 2.0 API requires **Authorization** as header which holds bearer token  
This is generated using Refresh Token, ClientID, Client Secret given values.( this are fixed values)

Currently this Authorization Header expired every 5 minutes, i have to go and generate it manually.I generate this through curl command . So i am not able to keep pipeline alive for a longer period of time.

In order to run my pipeline forever, i need to have this Authorization header token alive all the time.

Note : The API does provide Ruby as one of my client library. With this ruby script also the we can generate Authorization Bearer token

Has anyone tries OAuth 2.0 with http\_poller?. This is common for all OAuth 2.0 APIs

Please let me know how i can achieve the solution

Regards  
Ritesh

---

<div class="post-metadata">

**Author:** ![rkhapre](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rkhapre/32/48333_2.png) [@rkhapre](https://discuss.elastic.co/u/rkhapre)\
**Post date:** [December 9, 2017, 4:37pm UTC](https://discuss.elastic.co/t/does-http-poller-plugin-supports-oauth-2-0/110599/2 "2017-12-09T16:37:33Z")

</div>

Has anyone tried out this? Or any idea how can i achieve this dynamic tokens and still refresh my conf file?

Thanks in advance

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [January 6, 2018, 4:37pm UTC](https://discuss.elastic.co/t/does-http-poller-plugin-supports-oauth-2-0/110599/3 "2018-01-06T16:37:41Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
