Sha256: 1b003ae9b110dd8ecf9ccf4cf7830ee27354e25a356fdaf7eacb7572215df65a

Contents?: true

Size: 1.14 KB

Versions: 33

Compression:

Stored size: 1.14 KB

Contents

<% cred = rodauth.webauthn_credential_options_for_get %>

<%= form_with url: rodauth.webauthn_auth_form_path, method: :post, id: "webauthn-auth-form", data: { credential_options: cred.as_json.to_json, turbo: false }, class: "w-full max-w-sm" do |form| %>
  <%= form.hidden_field rodauth.login_param, value: params[rodauth.login_param] %>
  <%= form.hidden_field rodauth.webauthn_auth_challenge_param, value: cred.challenge %>
  <%= form.hidden_field rodauth.webauthn_auth_challenge_hmac_param, value: rodauth.compute_hmac(cred.challenge) %>
  <%= form.text_field rodauth.webauthn_auth_param, value: "", id: "webauthn-auth", class: "hidden", aria: { hidden: "true" } %>
  <div id="webauthn-auth-button">
    <%= form.submit rodauth.webauthn_auth_button, class: "w-full px-8 py-3 cursor-pointer font-semibold text-sm rounded-md text-white bg-blue-600 hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-600 dark:bg-emerald-400 dark:hover:bg-emerald-500 dark:text-gray-900 dark:focus:ring-emerald-400 dark:focus:ring-offset-current" %>
  </div>
<% end %>

<%= javascript_include_tag rodauth.webauthn_auth_js_path, extname: false %>

Version data entries

33 entries across 33 versions & 2 rubygems

Version Path
rodauth-rails-1.15.2 lib/generators/rodauth/templates/app/views/rodauth/tailwind/webauthn_auth.html.erb
rodauth-rails-1.15.1 lib/generators/rodauth/templates/app/views/rodauth/tailwind/webauthn_auth.html.erb
rodauth-rails-1.15.0 lib/generators/rodauth/templates/app/views/rodauth/tailwind/webauthn_auth.html.erb
plutonium-0.12.14 app/views/rodauth/webauthn_auth.html.erb
plutonium-0.12.13 app/views/rodauth/webauthn_auth.html.erb
plutonium-0.12.12 app/views/rodauth/webauthn_auth.html.erb
plutonium-0.12.11 app/views/rodauth/webauthn_auth.html.erb
plutonium-0.12.10 app/views/rodauth/webauthn_auth.html.erb
plutonium-0.12.9 app/views/rodauth/webauthn_auth.html.erb
plutonium-0.12.8 app/views/rodauth/webauthn_auth.html.erb
plutonium-0.12.7 app/views/rodauth/webauthn_auth.html.erb
plutonium-0.12.5 app/views/rodauth/webauthn_auth.html.erb
plutonium-0.12.4 app/views/rodauth/webauthn_auth.html.erb
plutonium-0.12.3 app/views/rodauth/webauthn_auth.html.erb
plutonium-0.12.2 app/views/rodauth/webauthn_auth.html.erb
plutonium-0.12.1 app/views/rodauth/webauthn_auth.html.erb
plutonium-0.12.0 app/views/rodauth/webauthn_auth.html.erb
plutonium-0.11.2 app/views/rodauth/webauthn_auth.html.erb
plutonium-0.11.1 app/views/rodauth/webauthn_auth.html.erb
plutonium-0.11.0 app/views/rodauth/webauthn_auth.html.erb