Home > database >  get the value from hash map
get the value from hash map

Time:11-22

I have a Rack Request hash from request as given below

# < Rack::Request: 0x0000565215613880
@params = {
    "utf8" => "✓",
    "authenticity_token" => "FcL/ sUVBdR7LePfLG2WMOsJRWuVvg=="
  },

  @env = {
           ---
           ---
           ---
           @delegate = {
              "_csrf_token" => " wgvuiHZm6QNvJjUaIpiYU=",
              "omniauth.params" => {},
              "omniauth.origin" => 
              "https://localhost:3000/users/auth/autologin?abc=xyz",
              "omniauth.state" => "0720b81a9a17dbdgndgn1768fa19a659584b819960"
    },
}>

Can someone please help me to get the value of omniauth.origin ? I tried request.env["omniauth.origin"] but looks like it is not right way to do..

CodePudding user response:

I would try

request.env['rack.session']['omniauth.origin']
  • Related