Skip to content

ActionCable authentication #189

Answered by janko
gaizkaeu asked this question in Q&A
Jan 11, 2023 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Hi, I have some ideas, but I've never used Action Cable, so I don't know an easy way to test my suggestions.

That being said, I believe the following might work:

      def find_verified_user
        if rodauth.authenticated?
          rodauth.rails_account
        else
          reject_unauthorized_connection
        end
      end

      def rodauth
        @rodauth ||= RodauthApp.new(env).rodauth
      end

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@gaizkaeu
Comment options

Answer selected by gaizkaeu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants