How to get current login username from onebox?

thanks for the reply.

  1. use 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