All Questions
Tagged with ruby authentication
709
questions
0
votes
1
answer
65
views
Ruby's Net::SSH is limited to 3 authentication tries while OpenSSH client is not
I'm having a really weird problem where when I connect to an SSH server (that has a pretty standard default configuration, including a default MaxAuthTries of 6) using Net::SSH, the connection fails ...
0
votes
0
answers
131
views
Rails API application - JWT authentication with Refresh token
I am trying to implement refresh token route in my existing Rails API application. JWT authentication should work the same way in any programming language or framework but in my case it's Rails.
...
0
votes
1
answer
40
views
SQLite3 and Rack Basic Auth cannot use username as execution parameter
Consider the following code snippet:
require "sqlite3"
db = SQLite3::Database.new "my.db"
p db.execute("select * from user where name = ?", ["my_user_name"])
...
0
votes
1
answer
139
views
facing error in JWT authentication in rails
This is the error I am getting while hitting { http://localhost:3000/users } to create a new user but facing the below issue.
JWT::DecodeError in UsersController#index
Nil JSON web token
Extracted ...
0
votes
1
answer
30
views
Can't able to create a simple login page in Rails
routes.rb
Rails.application.routes.draw do
get '/login' , to: 'sessions#new'
post '/login', to: "sessions#create"
end
sessions_controller.rb
class SessionsController < ...
1
vote
1
answer
215
views
How to detect a failed login attempt with the Devise gem?
I would like to detect failed login attempts and I want to avoid monkey-patching.
Initially, I thought that I can simply use the Warden before_failure hook:
Warden::Manager.before_failure do |env, ...
0
votes
0
answers
42
views
I try to open users/new but I get routing error
I am a programmer who is just starting out, but I don't know how to fix this error since I don't see any flaws in it
I need help to continue with the project
Routes
Rails.application.routes.draw do
...
0
votes
2
answers
32
views
Postal mail server codebase; "logged_in?" method not defined in ApplicationController
I just got to know of postal a few days ago and I'm very excited about all the features it offers out of the box for free. But as a junior rails dev, I'm tempted to play around with it to see if I can ...
0
votes
1
answer
85
views
How should Authorization be done using React
I am Practicing on a Project and using Rails as a api backend and React as Front end framework. I have implemented Authentication in React but now how I am got stuck at the question of how to ...
0
votes
1
answer
38
views
Rails Devise : serial alerts repeating
I'm working on my login page with the Devise Gem. I encounter this weird thing when i click on the buttons. The messages displays itself at the end of the former one instead of replacing it. Do you ...
2
votes
1
answer
295
views
Generate a GCP Bearer token using Ruby
I want to generate a authbearer token using a service account ruby library just like we do it using gcloud: gcloud auth application-default print-access-token
I have written a simple piece of code:
...
0
votes
1
answer
160
views
how to let users only delete their own reviews Ruby on Rails?
Im new to rails and working on my project.When a user logs into his account i want to give him the ability to delete only his reviews and not the reviews of others.Currently one is able to log in an ...
0
votes
1
answer
143
views
The custom field in devise user model is not being verified before login
I am a beginner in Ruby on Rails and I have been trying to solve this issue for a long time but I have not seen any success so far.
In my project I am using devise for User authentication. In the user ...
1
vote
1
answer
182
views
How can I solve this issue for the login?
Hi Everyone I will appreciate if someone can help me with this error:
I'm building a ruby on rails app using Devise Gem.
--Error--
undefined method `...
0
votes
0
answers
161
views
BCrypt::Errors::InvalidHash in SessionsController#create Rails 'invalid hash'
Error
BCrypt::Errors::InvalidHash in SessionsController#create
invalid hash
Request
Parameters:
{"authenticity_token"=>"[FILTERED]", "email"=>[""], "...