Use Forest Admin in Rails app to authenticate access to Sidekiq web view

Hello,

I’m using Forest Admin with a Rails app and have just been setting up Sidekiq and the Sidekiq web view. I wanted to know if it’s possible to restrict access to the sidekiq web view by first checking if the user is authenticated with Forest Admin?

The webview is setup in routes.rb with:

mount Sidekiq::Web, at: '/sidekiq'

and I can namespace this but I’m not sure if there’s a way to check the Forest Admin authentication? Does anyone know if this is possible?

Many thanks,
Jeff

Hello @knoxjeffrey and welcome to the ForestAdmin community,

From what I understand of your message, you want to restrict access to a part of your application (Sidekiq here) to (some of?) your users who are authenticated via ForestAdmin.

I don’t know of an easy / builtin way to do this, but I’ll loop with the team and keep you posted.

Thank you for your patience.

Hi @anon79585656 :wave: that’s exactly right. At the moment I’m using basic auth to protect the sidekiq endpoint but it would be nice to have everything admin related under the same authentication with Forest Admin.

Thank you for looking into this.

Many thanks,
Jeff

Hello @knoxjeffrey,

Can you describe how are made the requests from Forest Admin to your Sidekiq endpoints?