# HTTP Binding with dynamic Authorization

**URL:** <https://community.openhab.org/t/http-binding-with-dynamic-authorization/85165>\
**Category:** Bindings\
**Created:** [November 9, 2019, 3:43pm UTC](https://community.openhab.org/t/http-binding-with-dynamic-authorization/85165 "2019-11-09T15:43:36Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![rlkoshak](https://community.openhab.org/user_avatar/community.openhab.org/rlkoshak/32/75251_2.png) [@rlkoshak](https://community.openhab.org/u/rlkoshak)\
**Post date:** [November 9, 2019, 5:25pm UTC](https://community.openhab.org/t/http-binding-with-dynamic-authorization/85165/2 "2019-11-09T17:25:04Z")

</div>

> [@colinfitzpatrick](#):
>
> The Authorization expires after an hour. There is a separate request to refresh it. What is the best practice for doing this, and how do I pass it to the command - I couldn’t see how to do that from the documentation.

You will need to switch to using Rules and the sendHTTP actions. You can see an example that does something similar in [OAuth2 using just OH Rules and myopenhab.org](https://community.openhab.org/t/oauth2-using-just-oh-rules-and-myopenhab-org/46680).

---

_[View the full topic](https://community.openhab.org/t/http-binding-with-dynamic-authorization/85165)._
