devise-one-time-passwordable 0.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/LICENSE +20 -0
- data/README.md +40 -0
- data/Rakefile +10 -0
- data/app/assets/config/devise_one_time_passwordable_manifest.js +0 -0
- data/config/routes.rb +4 -0
- data/lib/devise/one_time_passwordable/engine.rb +8 -0
- data/lib/devise/one_time_passwordable/version.rb +7 -0
- data/lib/devise/one_time_passwordable.rb +9 -0
- data/lib/tasks/devise/one/time/passwordable_tasks.rake +5 -0
- metadata +88 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: c30209087f5d964de39a31b976406d564a2bdfb411af3e9343d05adb3ce71877
|
4
|
+
data.tar.gz: 94c798017928a21213b0478740f83d24061a3b1e341f1ef00491a8e863325f91
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 516cadeae9f0b3e4e198b5cb24153430c248704390438c52465354887349aea411ee3c26f4875753a82d0faeefecc066adf493675dd61023d48de012dacee9e0
|
7
|
+
data.tar.gz: '0707294eaa3618075aee3eba6989cba801db645b6b8197a80f73a3a60b10c3c7bd4cf4b42f2c6f0ff17058be878da614ef7a185c54dcac5959d8ea2905b8664e'
|
data/LICENSE
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright 2023 nejdetkadir
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
a copy of this software and associated documentation files (the
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
9
|
+
the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be
|
12
|
+
included in all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,40 @@
|
|
1
|
+
[](https://badge.fury.io/rb/devise-one-time-passwordable)
|
2
|
+

|
3
|
+

|
4
|
+
[](https://github.com/rubocop/rubocop)
|
5
|
+

|
6
|
+
|
7
|
+
# Devise::One::Time::Passwordable
|
8
|
+
This Devise extension adds a session mechanism to allow users to authenticate with one-time passwords. Users will receive a one-time password to log in to the system, and they can only use it to log in once.
|
9
|
+
|
10
|
+
## Usage
|
11
|
+
How to use my plugin.
|
12
|
+
|
13
|
+
## Installation
|
14
|
+
|
15
|
+
Install the gem and add to the application's Gemfile by executing:
|
16
|
+
```bash
|
17
|
+
$ bundle add devise-one-time-passwordable
|
18
|
+
```
|
19
|
+
|
20
|
+
Or add the following line to the application's Gemfile:
|
21
|
+
```ruby
|
22
|
+
gem 'devise-one-time-passwordable', github: 'nejdetkadir/devise-otp', branch: 'main'
|
23
|
+
```
|
24
|
+
|
25
|
+
If bundler is not being used to manage dependencies, install the gem by executing:
|
26
|
+
```bash
|
27
|
+
gem install devise-one-time-passwordable
|
28
|
+
```
|
29
|
+
|
30
|
+
After that, you need to generate relevant migrations and locales by executing:
|
31
|
+
```bash
|
32
|
+
$ rails generate devise_otp:install
|
33
|
+
```
|
34
|
+
|
35
|
+
## Contributing
|
36
|
+
|
37
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/nejdetkadir/devise-otp. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/nejdetkadir/devise-otp/blob/main/CODE_OF_CONDUCT.md).
|
38
|
+
|
39
|
+
## License
|
40
|
+
The gem is available as open source under the terms of the [MIT License](LICENSE).
|
data/Rakefile
ADDED
File without changes
|
data/config/routes.rb
ADDED
metadata
ADDED
@@ -0,0 +1,88 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: devise-one-time-passwordable
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- nejdetkadir
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2023-04-12 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: devise
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 4.7.2
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 4.7.2
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rails
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 6.0.0
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 6.0.0
|
41
|
+
description: |-
|
42
|
+
This Devise extension adds the ability for users to authenticate with one-time passwords, enabling a more secure session mechanism.
|
43
|
+
When logging in, users will receive a unique one-time password that they can use to access the system.
|
44
|
+
This password is valid for only one use, ensuring that each login is secure and that users cannot reuse an old password to access their account.
|
45
|
+
This extension provides a simple and effective way to improve the security of your application and protect against password attacks.
|
46
|
+
email:
|
47
|
+
- nejdetkadir.550@gmail.com
|
48
|
+
executables: []
|
49
|
+
extensions: []
|
50
|
+
extra_rdoc_files: []
|
51
|
+
files:
|
52
|
+
- LICENSE
|
53
|
+
- README.md
|
54
|
+
- Rakefile
|
55
|
+
- app/assets/config/devise_one_time_passwordable_manifest.js
|
56
|
+
- config/routes.rb
|
57
|
+
- lib/devise/one_time_passwordable.rb
|
58
|
+
- lib/devise/one_time_passwordable/engine.rb
|
59
|
+
- lib/devise/one_time_passwordable/version.rb
|
60
|
+
- lib/tasks/devise/one/time/passwordable_tasks.rake
|
61
|
+
homepage: https://github.com/nejdetkadir/devise-otp
|
62
|
+
licenses:
|
63
|
+
- MIT
|
64
|
+
metadata:
|
65
|
+
homepage_uri: https://github.com/nejdetkadir/devise-otp
|
66
|
+
source_code_uri: https://github.com/nejdetkadir/devise-otp
|
67
|
+
post_install_message:
|
68
|
+
rdoc_options: []
|
69
|
+
require_paths:
|
70
|
+
- lib
|
71
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: 2.7.0
|
76
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
77
|
+
requirements:
|
78
|
+
- - ">="
|
79
|
+
- !ruby/object:Gem::Version
|
80
|
+
version: '0'
|
81
|
+
requirements: []
|
82
|
+
rubygems_version: 3.4.10
|
83
|
+
signing_key:
|
84
|
+
specification_version: 4
|
85
|
+
summary: This Devise extension adds a session mechanism to allow users to authenticate
|
86
|
+
with one-time passwords. Users will receive a one-time password to log in to the
|
87
|
+
system, and they can only use it to log in once
|
88
|
+
test_files: []
|