Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
A pure Ruby on Jets authentication system like Devise.
Add this line to your application's Gemfile:
bundle add "revise_auth-jets"
And then execute the following to generate a User
model (optionally adding other fields such as first_name
and last_name
):
$ jets g revise_auth:model User
$ jets db:migrate
$ jets g revise_auth:views
Add
require "active_record"
ActiveRecord::Base.signed_id_verifier_secret = "custom_verfifier_secret"
in your initializers. Set this as an env var
Create your app/mailer/application_mailer.rb
class ApplicationMailer < ActionMailer::Base
default from: 'YOUR_EMAIL@gmail.com'
layout 'mailer'
end
Add your stmp settings in your development.rb ex:
config.action_mailer.default_url_options = { host: 'localhost', port: 3000, protocol: "https" }
config.action_mailer.perform_deliveries = true
config.action_mailer.show_previews = true
config.action_mailer.delivery_method = :smtp
config.action_mailer.smtp_settings = {
address: 'smtp.gmail.com',
port: 587,
domain: 'gmail.com',
user_name: 'USERNAME@gmail.com',
password: 'YOUR_PASS',
authentication: 'plain'}
To get your stmp pass follow these steps
You need to make a password for specific app
Step one: enable 2FA
https://myaccount.google.com/signinoptions/two-step-verification/enroll-welcome Step two: create an app-specific password
https://myaccount.google.com/apppasswords
ReviseAuth is designed around a single User
model.
ReviseAuth only works with a single model to keep things simple. We recommend adding roles to handle other types of users.
You can accomplish this in a few different ways:
roles
attribute on the User
modelFAQs
Unknown package
We found that revise_auth-jets demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.