# OAuth2 Support in Logstash http input plugin

**URL:** <https://discuss.elastic.co/t/oauth2-support-in-logstash-http-input-plugin/368413>\
**Category:** Logstash\
**Created:** [October 8, 2024, 7:47am UTC](https://discuss.elastic.co/t/oauth2-support-in-logstash-http-input-plugin/368413 "2024-10-08T07:47:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Marcin\_Miklasz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marcin_miklasz/32/137950_2.png) [@Marcin\_Miklasz](https://discuss.elastic.co/u/Marcin_Miklasz)\
**Post date:** [October 8, 2024, 7:47am UTC](https://discuss.elastic.co/t/oauth2-support-in-logstash-http-input-plugin/368413/1 "2024-10-08T07:47:38Z")

</div>

As per Logstash reference docs 8.15 and http input \* Plugin version: v3.8.1 only http basic authentication is supported.  
Please add support for OAuth2 Bearer tokens, otherwise http input plugin is little/no use with any OAuth protected http resources, which are in high majority in 2024.  
It would be beneficial to leverage Logstash Secrets Keystore to store credentials in a secure way and perform OAuth2 without leaving pipeline code.  
There is one post that mentions Ruby workaround [How to generate OAUTH2 token and use REST API to pull logs from Cloud?](https://discuss.elastic.co/t/how-to-generate-oauth2-token-and-use-rest-api-to-pull-logs-from-cloud/166624) but please update the docs and share official documentation as OAuth2 is standard authentication for http.  
Thanks
