has_secure_passkey 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (47) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.md +32 -0
  4. data/Rakefile +8 -0
  5. data/app/assets/javascripts/@github--webauthn-json.js +1 -0
  6. data/app/assets/javascripts/@rails--request.js +2 -0
  7. data/app/assets/javascripts/components/has_secure_passkey.js +3 -0
  8. data/app/assets/javascripts/components/web_authn.js +81 -0
  9. data/app/assets/javascripts/has_secure_passkey.js +406 -0
  10. data/app/assets/stylesheets/has_secure_passkey/application.css +15 -0
  11. data/app/controllers/has_secure_passkey/application_controller.rb +4 -0
  12. data/app/controllers/has_secure_passkey/challenges_controller.rb +6 -0
  13. data/app/helpers/has_secure_passkey/application_helper.rb +32 -0
  14. data/app/mailers/has_secure_passkey/application_mailer.rb +6 -0
  15. data/app/models/has_secure_passkey/application_record.rb +5 -0
  16. data/app/views/has_secure_passkey/challenges/create.turbo_stream.erb +5 -0
  17. data/app/views/layouts/has_secure_passkey/application.html.erb +17 -0
  18. data/config/importmap.rb +1 -0
  19. data/config/routes.rb +3 -0
  20. data/lib/generators/has_secure_passkey/passkeys/passkeys_generator.rb +59 -0
  21. data/lib/generators/has_secure_passkey/passkeys/templates/app/channels/application_cable/connection.rb.tt +16 -0
  22. data/lib/generators/has_secure_passkey/passkeys/templates/app/controllers/concerns/authentication.rb.tt +59 -0
  23. data/lib/generators/has_secure_passkey/passkeys/templates/app/controllers/email_verifications_controller.rb.tt +7 -0
  24. data/lib/generators/has_secure_passkey/passkeys/templates/app/controllers/people_controller.rb.tt +11 -0
  25. data/lib/generators/has_secure_passkey/passkeys/templates/app/controllers/registrations_controller.rb.tt +20 -0
  26. data/lib/generators/has_secure_passkey/passkeys/templates/app/controllers/sessions_controller.rb.tt +20 -0
  27. data/lib/generators/has_secure_passkey/passkeys/templates/app/mailers/email_verification_mailer.rb.tt +7 -0
  28. data/lib/generators/has_secure_passkey/passkeys/templates/app/models/current.rb.tt +4 -0
  29. data/lib/generators/has_secure_passkey/passkeys/templates/app/models/passkey.rb.tt +30 -0
  30. data/lib/generators/has_secure_passkey/passkeys/templates/app/models/person.rb.tt +9 -0
  31. data/lib/generators/has_secure_passkey/passkeys/templates/app/models/session.rb.tt +7 -0
  32. data/lib/generators/has_secure_passkey/passkeys/templates/app/views/email_verification_mailer/verify.html.erb.tt +1 -0
  33. data/lib/generators/has_secure_passkey/passkeys/templates/app/views/email_verification_mailer/verify.text.erb.tt +1 -0
  34. data/lib/generators/has_secure_passkey/passkeys/templates/app/views/email_verifications/show.html.erb.tt +11 -0
  35. data/lib/generators/has_secure_passkey/passkeys/templates/app/views/registrations/create.turbo_stream.erb.tt +7 -0
  36. data/lib/generators/has_secure_passkey/passkeys/templates/app/views/registrations/new.html.erb.tt +16 -0
  37. data/lib/generators/has_secure_passkey/passkeys/templates/test/mailers/previews/email_verification_mailer_preview.rb.tt +7 -0
  38. data/lib/has_secure_passkey/active_record_helpers.rb +48 -0
  39. data/lib/has_secure_passkey/add_passkey.rb +45 -0
  40. data/lib/has_secure_passkey/authenticate_by.rb +49 -0
  41. data/lib/has_secure_passkey/engine.rb +41 -0
  42. data/lib/has_secure_passkey/options_for_create.rb +49 -0
  43. data/lib/has_secure_passkey/options_for_get.rb +34 -0
  44. data/lib/has_secure_passkey/version.rb +3 -0
  45. data/lib/has_secure_passkey.rb +12 -0
  46. data/lib/tasks/has_secure_passkey_tasks.rake +5 -0
  47. metadata +113 -0
metadata ADDED
@@ -0,0 +1,113 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: has_secure_passkey
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Nick Pezza
8
+ bindir: bin
9
+ cert_chain: []
10
+ date: 2024-10-31 00:00:00.000000000 Z
11
+ dependencies:
12
+ - !ruby/object:Gem::Dependency
13
+ name: rails
14
+ requirement: !ruby/object:Gem::Requirement
15
+ requirements:
16
+ - - ">="
17
+ - !ruby/object:Gem::Version
18
+ version: 8.0.0.rc2
19
+ type: :runtime
20
+ prerelease: false
21
+ version_requirements: !ruby/object:Gem::Requirement
22
+ requirements:
23
+ - - ">="
24
+ - !ruby/object:Gem::Version
25
+ version: 8.0.0.rc2
26
+ - !ruby/object:Gem::Dependency
27
+ name: webauthn
28
+ requirement: !ruby/object:Gem::Requirement
29
+ requirements:
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
33
+ type: :runtime
34
+ prerelease: false
35
+ version_requirements: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - ">="
38
+ - !ruby/object:Gem::Version
39
+ version: '0'
40
+ email:
41
+ - pezza@hey.com
42
+ executables: []
43
+ extensions: []
44
+ extra_rdoc_files: []
45
+ files:
46
+ - MIT-LICENSE
47
+ - README.md
48
+ - Rakefile
49
+ - app/assets/javascripts/@github--webauthn-json.js
50
+ - app/assets/javascripts/@rails--request.js
51
+ - app/assets/javascripts/components/has_secure_passkey.js
52
+ - app/assets/javascripts/components/web_authn.js
53
+ - app/assets/javascripts/has_secure_passkey.js
54
+ - app/assets/stylesheets/has_secure_passkey/application.css
55
+ - app/controllers/has_secure_passkey/application_controller.rb
56
+ - app/controllers/has_secure_passkey/challenges_controller.rb
57
+ - app/helpers/has_secure_passkey/application_helper.rb
58
+ - app/mailers/has_secure_passkey/application_mailer.rb
59
+ - app/models/has_secure_passkey/application_record.rb
60
+ - app/views/has_secure_passkey/challenges/create.turbo_stream.erb
61
+ - app/views/layouts/has_secure_passkey/application.html.erb
62
+ - config/importmap.rb
63
+ - config/routes.rb
64
+ - lib/generators/has_secure_passkey/passkeys/passkeys_generator.rb
65
+ - lib/generators/has_secure_passkey/passkeys/templates/app/channels/application_cable/connection.rb.tt
66
+ - lib/generators/has_secure_passkey/passkeys/templates/app/controllers/concerns/authentication.rb.tt
67
+ - lib/generators/has_secure_passkey/passkeys/templates/app/controllers/email_verifications_controller.rb.tt
68
+ - lib/generators/has_secure_passkey/passkeys/templates/app/controllers/people_controller.rb.tt
69
+ - lib/generators/has_secure_passkey/passkeys/templates/app/controllers/registrations_controller.rb.tt
70
+ - lib/generators/has_secure_passkey/passkeys/templates/app/controllers/sessions_controller.rb.tt
71
+ - lib/generators/has_secure_passkey/passkeys/templates/app/mailers/email_verification_mailer.rb.tt
72
+ - lib/generators/has_secure_passkey/passkeys/templates/app/models/current.rb.tt
73
+ - lib/generators/has_secure_passkey/passkeys/templates/app/models/passkey.rb.tt
74
+ - lib/generators/has_secure_passkey/passkeys/templates/app/models/person.rb.tt
75
+ - lib/generators/has_secure_passkey/passkeys/templates/app/models/session.rb.tt
76
+ - lib/generators/has_secure_passkey/passkeys/templates/app/views/email_verification_mailer/verify.html.erb.tt
77
+ - lib/generators/has_secure_passkey/passkeys/templates/app/views/email_verification_mailer/verify.text.erb.tt
78
+ - lib/generators/has_secure_passkey/passkeys/templates/app/views/email_verifications/show.html.erb.tt
79
+ - lib/generators/has_secure_passkey/passkeys/templates/app/views/registrations/create.turbo_stream.erb.tt
80
+ - lib/generators/has_secure_passkey/passkeys/templates/app/views/registrations/new.html.erb.tt
81
+ - lib/generators/has_secure_passkey/passkeys/templates/test/mailers/previews/email_verification_mailer_preview.rb.tt
82
+ - lib/has_secure_passkey.rb
83
+ - lib/has_secure_passkey/active_record_helpers.rb
84
+ - lib/has_secure_passkey/add_passkey.rb
85
+ - lib/has_secure_passkey/authenticate_by.rb
86
+ - lib/has_secure_passkey/engine.rb
87
+ - lib/has_secure_passkey/options_for_create.rb
88
+ - lib/has_secure_passkey/options_for_get.rb
89
+ - lib/has_secure_passkey/version.rb
90
+ - lib/tasks/has_secure_passkey_tasks.rake
91
+ homepage: https://github.com/npezza93/has_secure_passkey
92
+ licenses:
93
+ - MIT
94
+ metadata:
95
+ rubygems_mfa_required: 'true'
96
+ rdoc_options: []
97
+ require_paths:
98
+ - lib
99
+ required_ruby_version: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ required_rubygems_version: !ruby/object:Gem::Requirement
105
+ requirements:
106
+ - - ">="
107
+ - !ruby/object:Gem::Version
108
+ version: '0'
109
+ requirements: []
110
+ rubygems_version: 3.6.0.dev
111
+ specification_version: 4
112
+ summary: Add passkey support to Rails
113
+ test_files: []