# How to get current login username from onebox?

**URL:** <https://meta.discourse.org/t/how-to-get-current-login-username-from-onebox/57061>\
**Category:** Development\
**Created:** [February 7, 2017, 1:45pm UTC](https://meta.discourse.org/t/how-to-get-current-login-username-from-onebox/57061 "2017-02-07T13:45:13Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![suanfazu](https://avatars.discourse-cdn.com/v4/letter/s/f04885/32.png) [@suanfazu](https://meta.discourse.org/u/suanfazu)\
**Post date:** [February 9, 2017, 1:47pm UTC](https://meta.discourse.org/t/how-to-get-current-login-username-from-onebox/57061/3 "2017-02-09T13:47:10Z")

</div>

thanks for the reply.

1. use [request\_store](https://rubygems.org/gems/request_store/), save user to request\_store in onebox controller
2. not found a solution, have to override the source (lib/onebox/discourse\_onebox\_sanitize\_config.rb) on rebuild
3. seems so, but it’s ok for me

---

_[View the full topic](https://meta.discourse.org/t/how-to-get-current-login-username-from-onebox/57061)._
