sorentwo/oban

Oban Web - User Authorization

Closed this issue · 7 comments

Hi, Thank you so much for the amazing platform!
I have one point that I would appreciate help with
I want to use Oban.Web.Resolver for security
fetch the jwt from the conn to get the right user,
I put the oban-web as an iframe inside our admin app,
For the first load, it works because I send to token in the header to get the iframe content,
On the first load, it works fine because the token is found but in all the other clicks I have no control over the requests that are sent and on the resolve_user function it falls
My question is why does every click open a new socket? Wouldn't it be more effective to open one socket and use it to perform all communication?
Do you have a solution that can help me?

Each click shouldn't open a new socket. Can you verify that the live socket connects and it isn't erroring out?

Each socket works until the next click which opens a new socket

Which version of Oban Web are you using? Will you try this with the latest v2.10.0-rc.2?

oban-web 2.9.7

I updated to the latest version - v2.10.0-rc.2
And the problem is solved
Thank you!!

That's great to hear!