• Home
  • Categories
  • Recent
  • Popular
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development
Skins
  • Light
  • Default
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Quartz
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Slate
  • Solar
  • Superhero
  • Vapor
Collapse

Community

Aritra SinhaA

Aritra Sinha

@Aritra Sinha
About
Posts
1
Topics
1
Groups
0
Followers
0
Following
0

Topics

  • Aritra SinhaA

    Using Session Sharing Plugin with Rails Application

    Scheduled Pinned Locked Moved NodeBB Plugins
    0 Votes
    1 Posts
    145 Views

    Aritra SinhaA

    Re: [nodebb-plugin-session-sharing] Session Sharing

    I am trying to use this plugin to connect the authentication process of my Rails Application and NodeBB (both of them are running locally on different ports)

    jwt_secret = "myS3cr3tk3y" payload = { :id => current_user.id, :username => current_user.username } puts payload token = JWT.encode payload, jwt_secret, 'HS256' puts token decoded_token = JWT.decode token, jwt_secret, true, { algorithm: 'HS256' } puts decoded_token session[:nodebb_token] = { value: token, HttpOnly:true }

    This is the code for writing the cookies.

    Screenshot from 2021-03-13 22-48-11.png
    This is the configuration for the plugin.
    Is something wrong with my code or the configuration?? Can someone help me find out the issue?? @julian


  • Login

  • Don't have an account? Register

  • Login or register to search.

  • First post
    Last post
0
  • Home
  • Categories
  • Recent
  • Popular
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development
  • Login

  • Don't have an account? Register

  • Login or register to search.