ruby on rails - How To Authenticate With Keys In ActionCable -


i able authenticate cookies in actioncable using cookies.signed[:user_id] can't figure out how using keys. example, sending authorization header when establishing connection.

the variable accessible in applicationcable::connection class cookies. other variables (params , headers) not available.

any ideas?

i able authenticate sending authentication keys when subscribing channel. if keys invalid, calls connection.send(:reject_unauthorized_connection) in channel.


Comments

Popular posts from this blog

wordpress - (T_ENDFOREACH) php error -

Export Excel workseet into txt file using vba - (text and numbers with formulas) -

Using django-mptt to get only the categories that have items -