action_auth 0.2.6 → 0.2.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/action_auth/user.rb +1 -1
- data/app/views/action_auth/sessions/index.html.erb +1 -1
- data/app/views/layouts/action_auth/application-full-width.html.erb +1 -1
- data/app/views/layouts/action_auth/application.html.erb +1 -1
- data/config/routes.rb +1 -1
- data/lib/action_auth/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d8811e289816e2dfabd2b7437b6f877abd02064151218f3be79ef05572ccfd4a
|
4
|
+
data.tar.gz: be2a7a8b5e8f63c9f6b5f76e04a828f2ac05974f8fd2ba19a244e562ef92eca1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c78ba18c296297ec6057ee91b0b9ed5d28813e2cd4f0786a297064f79105877b30730d64ee41743c42402027457971e121ba8913d74ce975a9a2a05498a26ce5
|
7
|
+
data.tar.gz: 66dfffe305815384216de8ebe9beb6d2195050a4a28d231c432aa1b92d80bca87cac4056685fe3cdfa1bfd63829265f20a468385757d25e8c4de2a13ca4dd8b9
|
@@ -5,7 +5,7 @@ module ActionAuth
|
|
5
5
|
has_many :action_auth_sessions, dependent: :destroy,
|
6
6
|
class_name: "ActionAuth::Session", foreign_key: "action_auth_user_id"
|
7
7
|
|
8
|
-
if ActionAuth.configuration
|
8
|
+
if ActionAuth.configuration&.webauthn_enabled?
|
9
9
|
has_many :action_auth_webauthn_credentials, dependent: :destroy,
|
10
10
|
class_name: "ActionAuth::WebauthnCredential", foreign_key: "action_auth_user_id"
|
11
11
|
end
|
@@ -6,7 +6,7 @@
|
|
6
6
|
<%= csp_meta_tag %>
|
7
7
|
<%= stylesheet_link_tag "action_auth/application", media: "all" %>
|
8
8
|
<%= javascript_include_tag "action_auth/application", "data-turbo-track": "reload", type: "module" %>
|
9
|
-
<% if ActionAuth.configuration
|
9
|
+
<% if ActionAuth.configuration&.webauthn_enabled? %>
|
10
10
|
<%= tag :meta, name: :webauthn_auth_url, content: action_auth.webauthn_credential_authentications_url %>
|
11
11
|
<%= tag :meta, name: :webauthn_cred_url, content: action_auth.webauthn_credentials_url %>
|
12
12
|
<%= tag :meta, name: :webauthn_redirect_url, content: action_auth.sessions_url %>
|
@@ -6,7 +6,7 @@
|
|
6
6
|
<%= csp_meta_tag %>
|
7
7
|
<%= stylesheet_link_tag "action_auth/application", media: "all" %>
|
8
8
|
<%= javascript_include_tag "action_auth/application", "data-turbo-track": "reload", type: "module" %>
|
9
|
-
<% if ActionAuth.configuration
|
9
|
+
<% if ActionAuth.configuration&.webauthn_enabled? %>
|
10
10
|
<%= tag :meta, name: :webauthn_auth_url, content: action_auth.webauthn_credential_authentications_url %>
|
11
11
|
<%= tag :meta, name: :webauthn_cred_url, content: action_auth.webauthn_credentials_url %>
|
12
12
|
<%= tag :meta, name: :webauthn_redirect_url, content: action_auth.sessions_url %>
|
data/config/routes.rb
CHANGED
@@ -11,7 +11,7 @@ ActionAuth::Engine.routes.draw do
|
|
11
11
|
resource :password_reset, only: [:new, :edit, :create, :update]
|
12
12
|
end
|
13
13
|
|
14
|
-
if ActionAuth.configuration
|
14
|
+
if ActionAuth.configuration&.webauthn_enabled?
|
15
15
|
resources :webauthn_credentials, only: [:new, :create, :destroy] do
|
16
16
|
post :options, on: :collection, as: 'options_for'
|
17
17
|
end
|
data/lib/action_auth/version.rb
CHANGED