rsb-auth 0.9.1
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 +15 -0
- data/README.md +76 -0
- data/Rakefile +25 -0
- data/app/controllers/concerns/rsb/auth/ensure_identity_complete.rb +72 -0
- data/app/controllers/concerns/rsb/auth/rate_limitable.rb +20 -0
- data/app/controllers/rsb/auth/account/login_methods_controller.rb +85 -0
- data/app/controllers/rsb/auth/account/sessions_controller.rb +31 -0
- data/app/controllers/rsb/auth/account_controller.rb +99 -0
- data/app/controllers/rsb/auth/admin/identities_controller.rb +402 -0
- data/app/controllers/rsb/auth/admin/sessions_management_controller.rb +27 -0
- data/app/controllers/rsb/auth/application_controller.rb +50 -0
- data/app/controllers/rsb/auth/invitations_controller.rb +31 -0
- data/app/controllers/rsb/auth/password_resets_controller.rb +46 -0
- data/app/controllers/rsb/auth/registrations_controller.rb +104 -0
- data/app/controllers/rsb/auth/sessions_controller.rb +109 -0
- data/app/controllers/rsb/auth/verifications_controller.rb +29 -0
- data/app/helpers/rsb/auth/user_agent_helper.rb +22 -0
- data/app/mailers/rsb/auth/application_mailer.rb +10 -0
- data/app/mailers/rsb/auth/auth_mailer.rb +33 -0
- data/app/models/rsb/auth/application_record.rb +10 -0
- data/app/models/rsb/auth/credential/email_password.rb +9 -0
- data/app/models/rsb/auth/credential/phone_password.rb +16 -0
- data/app/models/rsb/auth/credential/username_password.rb +9 -0
- data/app/models/rsb/auth/credential.rb +122 -0
- data/app/models/rsb/auth/identity.rb +62 -0
- data/app/models/rsb/auth/invitation.rb +55 -0
- data/app/models/rsb/auth/password_reset_token.rb +36 -0
- data/app/models/rsb/auth/session.rb +44 -0
- data/app/services/rsb/auth/account_service.rb +140 -0
- data/app/services/rsb/auth/authentication_service.rb +86 -0
- data/app/services/rsb/auth/invitation_service.rb +53 -0
- data/app/services/rsb/auth/password_reset_service.rb +48 -0
- data/app/services/rsb/auth/registration_service.rb +108 -0
- data/app/services/rsb/auth/session_service.rb +47 -0
- data/app/services/rsb/auth/verification_service.rb +30 -0
- data/app/views/layouts/rsb/auth/application.html.erb +76 -0
- data/app/views/rsb/auth/account/_identity_fields.html.erb +3 -0
- data/app/views/rsb/auth/account/confirm_destroy.html.erb +45 -0
- data/app/views/rsb/auth/account/login_methods/show.html.erb +92 -0
- data/app/views/rsb/auth/account/show.html.erb +110 -0
- data/app/views/rsb/auth/admin/credentials/_email_password.html.erb +34 -0
- data/app/views/rsb/auth/admin/credentials/_phone_password.html.erb +34 -0
- data/app/views/rsb/auth/admin/credentials/_username_password.html.erb +34 -0
- data/app/views/rsb/auth/admin/identities/index.html.erb +76 -0
- data/app/views/rsb/auth/admin/identities/new.html.erb +46 -0
- data/app/views/rsb/auth/admin/identities/new_credential.html.erb +45 -0
- data/app/views/rsb/auth/admin/identities/show.html.erb +180 -0
- data/app/views/rsb/auth/admin/sessions_management/index.html.erb +69 -0
- data/app/views/rsb/auth/auth_mailer/invitation.html.erb +4 -0
- data/app/views/rsb/auth/auth_mailer/password_reset.html.erb +4 -0
- data/app/views/rsb/auth/auth_mailer/verification.html.erb +4 -0
- data/app/views/rsb/auth/credentials/_email_password_login.html.erb +36 -0
- data/app/views/rsb/auth/credentials/_email_password_signup.html.erb +45 -0
- data/app/views/rsb/auth/credentials/_icon.html.erb +21 -0
- data/app/views/rsb/auth/credentials/_phone_password_login.html.erb +33 -0
- data/app/views/rsb/auth/credentials/_phone_password_signup.html.erb +45 -0
- data/app/views/rsb/auth/credentials/_selector.html.erb +43 -0
- data/app/views/rsb/auth/credentials/_username_password_login.html.erb +33 -0
- data/app/views/rsb/auth/credentials/_username_password_signup.html.erb +54 -0
- data/app/views/rsb/auth/invitations/show.html.erb +40 -0
- data/app/views/rsb/auth/password_resets/edit.html.erb +41 -0
- data/app/views/rsb/auth/password_resets/new.html.erb +27 -0
- data/app/views/rsb/auth/registrations/new.html.erb +55 -0
- data/app/views/rsb/auth/sessions/new.html.erb +47 -0
- data/config/locales/account.en.yml +65 -0
- data/config/locales/admin.en.yml +26 -0
- data/config/locales/credentials.en.yml +11 -0
- data/config/locales/seo.en.yml +28 -0
- data/config/routes.rb +34 -0
- data/db/migrate/20260208100001_create_rsb_auth_identities.rb +12 -0
- data/db/migrate/20260208100002_create_rsb_auth_credentials.rb +20 -0
- data/db/migrate/20260208100003_create_rsb_auth_sessions.rb +18 -0
- data/db/migrate/20260208100004_create_rsb_auth_password_reset_tokens.rb +15 -0
- data/db/migrate/20260208100005_add_verification_to_rsb_auth_credentials.rb +9 -0
- data/db/migrate/20260208100006_create_rsb_auth_invitations.rb +19 -0
- data/db/migrate/20260211100001_add_revoked_at_to_rsb_auth_credentials.rb +16 -0
- data/db/migrate/20260212100001_add_deleted_at_to_rsb_auth_identities.rb +10 -0
- data/db/migrate/20260214172956_add_recovery_email_to_rsb_auth_credentials.rb +8 -0
- data/lib/generators/rsb/auth/install/install_generator.rb +31 -0
- data/lib/generators/rsb/auth/views/views_generator.rb +197 -0
- data/lib/rsb/auth/configuration.rb +59 -0
- data/lib/rsb/auth/credential_conflict_error.rb +21 -0
- data/lib/rsb/auth/credential_definition.rb +39 -0
- data/lib/rsb/auth/credential_deprecation_bridge.rb +81 -0
- data/lib/rsb/auth/credential_registry.rb +96 -0
- data/lib/rsb/auth/credential_settings_registrar.rb +118 -0
- data/lib/rsb/auth/engine.rb +187 -0
- data/lib/rsb/auth/lifecycle_handler.rb +71 -0
- data/lib/rsb/auth/settings_schema.rb +74 -0
- data/lib/rsb/auth/test_helper.rb +139 -0
- data/lib/rsb/auth/version.rb +9 -0
- data/lib/rsb/auth.rb +49 -0
- metadata +192 -0
metadata
ADDED
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: rsb-auth
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.9.1
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Aleksandr Marchenko
|
|
8
|
+
bindir: bin
|
|
9
|
+
cert_chain: []
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
11
|
+
dependencies:
|
|
12
|
+
- !ruby/object:Gem::Dependency
|
|
13
|
+
name: bcrypt
|
|
14
|
+
requirement: !ruby/object:Gem::Requirement
|
|
15
|
+
requirements:
|
|
16
|
+
- - "~>"
|
|
17
|
+
- !ruby/object:Gem::Version
|
|
18
|
+
version: '3.1'
|
|
19
|
+
type: :runtime
|
|
20
|
+
prerelease: false
|
|
21
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
22
|
+
requirements:
|
|
23
|
+
- - "~>"
|
|
24
|
+
- !ruby/object:Gem::Version
|
|
25
|
+
version: '3.1'
|
|
26
|
+
- !ruby/object:Gem::Dependency
|
|
27
|
+
name: rails
|
|
28
|
+
requirement: !ruby/object:Gem::Requirement
|
|
29
|
+
requirements:
|
|
30
|
+
- - ">="
|
|
31
|
+
- !ruby/object:Gem::Version
|
|
32
|
+
version: '8.0'
|
|
33
|
+
type: :runtime
|
|
34
|
+
prerelease: false
|
|
35
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
36
|
+
requirements:
|
|
37
|
+
- - ">="
|
|
38
|
+
- !ruby/object:Gem::Version
|
|
39
|
+
version: '8.0'
|
|
40
|
+
- !ruby/object:Gem::Dependency
|
|
41
|
+
name: rsb-settings
|
|
42
|
+
requirement: !ruby/object:Gem::Requirement
|
|
43
|
+
requirements:
|
|
44
|
+
- - '='
|
|
45
|
+
- !ruby/object:Gem::Version
|
|
46
|
+
version: 0.9.1
|
|
47
|
+
type: :runtime
|
|
48
|
+
prerelease: false
|
|
49
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
50
|
+
requirements:
|
|
51
|
+
- - '='
|
|
52
|
+
- !ruby/object:Gem::Version
|
|
53
|
+
version: 0.9.1
|
|
54
|
+
- !ruby/object:Gem::Dependency
|
|
55
|
+
name: useragent
|
|
56
|
+
requirement: !ruby/object:Gem::Requirement
|
|
57
|
+
requirements:
|
|
58
|
+
- - "~>"
|
|
59
|
+
- !ruby/object:Gem::Version
|
|
60
|
+
version: '0.16'
|
|
61
|
+
type: :runtime
|
|
62
|
+
prerelease: false
|
|
63
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
64
|
+
requirements:
|
|
65
|
+
- - "~>"
|
|
66
|
+
- !ruby/object:Gem::Version
|
|
67
|
+
version: '0.16'
|
|
68
|
+
description: Flexible identity system with pluggable credential types. Ships with
|
|
69
|
+
email+password. Extensible via credential registry for OAuth, OTP, passkeys, etc.
|
|
70
|
+
email:
|
|
71
|
+
- alex@marchenko.me
|
|
72
|
+
executables: []
|
|
73
|
+
extensions: []
|
|
74
|
+
extra_rdoc_files: []
|
|
75
|
+
files:
|
|
76
|
+
- LICENSE
|
|
77
|
+
- README.md
|
|
78
|
+
- Rakefile
|
|
79
|
+
- app/controllers/concerns/rsb/auth/ensure_identity_complete.rb
|
|
80
|
+
- app/controllers/concerns/rsb/auth/rate_limitable.rb
|
|
81
|
+
- app/controllers/rsb/auth/account/login_methods_controller.rb
|
|
82
|
+
- app/controllers/rsb/auth/account/sessions_controller.rb
|
|
83
|
+
- app/controllers/rsb/auth/account_controller.rb
|
|
84
|
+
- app/controllers/rsb/auth/admin/identities_controller.rb
|
|
85
|
+
- app/controllers/rsb/auth/admin/sessions_management_controller.rb
|
|
86
|
+
- app/controllers/rsb/auth/application_controller.rb
|
|
87
|
+
- app/controllers/rsb/auth/invitations_controller.rb
|
|
88
|
+
- app/controllers/rsb/auth/password_resets_controller.rb
|
|
89
|
+
- app/controllers/rsb/auth/registrations_controller.rb
|
|
90
|
+
- app/controllers/rsb/auth/sessions_controller.rb
|
|
91
|
+
- app/controllers/rsb/auth/verifications_controller.rb
|
|
92
|
+
- app/helpers/rsb/auth/user_agent_helper.rb
|
|
93
|
+
- app/mailers/rsb/auth/application_mailer.rb
|
|
94
|
+
- app/mailers/rsb/auth/auth_mailer.rb
|
|
95
|
+
- app/models/rsb/auth/application_record.rb
|
|
96
|
+
- app/models/rsb/auth/credential.rb
|
|
97
|
+
- app/models/rsb/auth/credential/email_password.rb
|
|
98
|
+
- app/models/rsb/auth/credential/phone_password.rb
|
|
99
|
+
- app/models/rsb/auth/credential/username_password.rb
|
|
100
|
+
- app/models/rsb/auth/identity.rb
|
|
101
|
+
- app/models/rsb/auth/invitation.rb
|
|
102
|
+
- app/models/rsb/auth/password_reset_token.rb
|
|
103
|
+
- app/models/rsb/auth/session.rb
|
|
104
|
+
- app/services/rsb/auth/account_service.rb
|
|
105
|
+
- app/services/rsb/auth/authentication_service.rb
|
|
106
|
+
- app/services/rsb/auth/invitation_service.rb
|
|
107
|
+
- app/services/rsb/auth/password_reset_service.rb
|
|
108
|
+
- app/services/rsb/auth/registration_service.rb
|
|
109
|
+
- app/services/rsb/auth/session_service.rb
|
|
110
|
+
- app/services/rsb/auth/verification_service.rb
|
|
111
|
+
- app/views/layouts/rsb/auth/application.html.erb
|
|
112
|
+
- app/views/rsb/auth/account/_identity_fields.html.erb
|
|
113
|
+
- app/views/rsb/auth/account/confirm_destroy.html.erb
|
|
114
|
+
- app/views/rsb/auth/account/login_methods/show.html.erb
|
|
115
|
+
- app/views/rsb/auth/account/show.html.erb
|
|
116
|
+
- app/views/rsb/auth/admin/credentials/_email_password.html.erb
|
|
117
|
+
- app/views/rsb/auth/admin/credentials/_phone_password.html.erb
|
|
118
|
+
- app/views/rsb/auth/admin/credentials/_username_password.html.erb
|
|
119
|
+
- app/views/rsb/auth/admin/identities/index.html.erb
|
|
120
|
+
- app/views/rsb/auth/admin/identities/new.html.erb
|
|
121
|
+
- app/views/rsb/auth/admin/identities/new_credential.html.erb
|
|
122
|
+
- app/views/rsb/auth/admin/identities/show.html.erb
|
|
123
|
+
- app/views/rsb/auth/admin/sessions_management/index.html.erb
|
|
124
|
+
- app/views/rsb/auth/auth_mailer/invitation.html.erb
|
|
125
|
+
- app/views/rsb/auth/auth_mailer/password_reset.html.erb
|
|
126
|
+
- app/views/rsb/auth/auth_mailer/verification.html.erb
|
|
127
|
+
- app/views/rsb/auth/credentials/_email_password_login.html.erb
|
|
128
|
+
- app/views/rsb/auth/credentials/_email_password_signup.html.erb
|
|
129
|
+
- app/views/rsb/auth/credentials/_icon.html.erb
|
|
130
|
+
- app/views/rsb/auth/credentials/_phone_password_login.html.erb
|
|
131
|
+
- app/views/rsb/auth/credentials/_phone_password_signup.html.erb
|
|
132
|
+
- app/views/rsb/auth/credentials/_selector.html.erb
|
|
133
|
+
- app/views/rsb/auth/credentials/_username_password_login.html.erb
|
|
134
|
+
- app/views/rsb/auth/credentials/_username_password_signup.html.erb
|
|
135
|
+
- app/views/rsb/auth/invitations/show.html.erb
|
|
136
|
+
- app/views/rsb/auth/password_resets/edit.html.erb
|
|
137
|
+
- app/views/rsb/auth/password_resets/new.html.erb
|
|
138
|
+
- app/views/rsb/auth/registrations/new.html.erb
|
|
139
|
+
- app/views/rsb/auth/sessions/new.html.erb
|
|
140
|
+
- config/locales/account.en.yml
|
|
141
|
+
- config/locales/admin.en.yml
|
|
142
|
+
- config/locales/credentials.en.yml
|
|
143
|
+
- config/locales/seo.en.yml
|
|
144
|
+
- config/routes.rb
|
|
145
|
+
- db/migrate/20260208100001_create_rsb_auth_identities.rb
|
|
146
|
+
- db/migrate/20260208100002_create_rsb_auth_credentials.rb
|
|
147
|
+
- db/migrate/20260208100003_create_rsb_auth_sessions.rb
|
|
148
|
+
- db/migrate/20260208100004_create_rsb_auth_password_reset_tokens.rb
|
|
149
|
+
- db/migrate/20260208100005_add_verification_to_rsb_auth_credentials.rb
|
|
150
|
+
- db/migrate/20260208100006_create_rsb_auth_invitations.rb
|
|
151
|
+
- db/migrate/20260211100001_add_revoked_at_to_rsb_auth_credentials.rb
|
|
152
|
+
- db/migrate/20260212100001_add_deleted_at_to_rsb_auth_identities.rb
|
|
153
|
+
- db/migrate/20260214172956_add_recovery_email_to_rsb_auth_credentials.rb
|
|
154
|
+
- lib/generators/rsb/auth/install/install_generator.rb
|
|
155
|
+
- lib/generators/rsb/auth/views/views_generator.rb
|
|
156
|
+
- lib/rsb/auth.rb
|
|
157
|
+
- lib/rsb/auth/configuration.rb
|
|
158
|
+
- lib/rsb/auth/credential_conflict_error.rb
|
|
159
|
+
- lib/rsb/auth/credential_definition.rb
|
|
160
|
+
- lib/rsb/auth/credential_deprecation_bridge.rb
|
|
161
|
+
- lib/rsb/auth/credential_registry.rb
|
|
162
|
+
- lib/rsb/auth/credential_settings_registrar.rb
|
|
163
|
+
- lib/rsb/auth/engine.rb
|
|
164
|
+
- lib/rsb/auth/lifecycle_handler.rb
|
|
165
|
+
- lib/rsb/auth/settings_schema.rb
|
|
166
|
+
- lib/rsb/auth/test_helper.rb
|
|
167
|
+
- lib/rsb/auth/version.rb
|
|
168
|
+
homepage: https://github.com/Rails-SaaS-Builder/rails-saas-builder
|
|
169
|
+
licenses:
|
|
170
|
+
- LGPL-3.0
|
|
171
|
+
metadata:
|
|
172
|
+
source_code_uri: https://github.com/Rails-SaaS-Builder/rails-saas-builder
|
|
173
|
+
bug_tracker_uri: https://github.com/Rails-SaaS-Builder/rails-saas-builder/issues
|
|
174
|
+
changelog_uri: https://github.com/Rails-SaaS-Builder/rails-saas-builder/blob/master/CHANGELOG.md
|
|
175
|
+
rdoc_options: []
|
|
176
|
+
require_paths:
|
|
177
|
+
- lib
|
|
178
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
179
|
+
requirements:
|
|
180
|
+
- - ">="
|
|
181
|
+
- !ruby/object:Gem::Version
|
|
182
|
+
version: '3.2'
|
|
183
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
184
|
+
requirements:
|
|
185
|
+
- - ">="
|
|
186
|
+
- !ruby/object:Gem::Version
|
|
187
|
+
version: '0'
|
|
188
|
+
requirements: []
|
|
189
|
+
rubygems_version: 3.6.8
|
|
190
|
+
specification_version: 4
|
|
191
|
+
summary: Identity & authentication engine for Rails SaaS Builder
|
|
192
|
+
test_files: []
|