Sha256: 2f17cd590f56386c040f248bd0ce8f344af63a3c255f480f2fd9bd89aba58a4c

Contents?: true

Size: 898 Bytes

Versions: 18

Compression:

Stored size: 898 Bytes

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 } 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: "d-none", aria: { hidden: "true" } %>
  <div id="webauthn-auth-button">
    <div class="form-group mb-3">
      <%= form.submit rodauth.webauthn_auth_button, class: "btn btn-primary" %>
    </div>
  </div>
<% end %>

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

Version data entries

18 entries across 18 versions & 2 rubygems

Version Path
rodauth-rails-2.0.2 lib/generators/rodauth/templates/app/views/rodauth/webauthn_auth.html.erb
rodauth-rails-2.0.1 lib/generators/rodauth/templates/app/views/rodauth/webauthn_auth.html.erb
rodauth-rails-2.0.0 lib/generators/rodauth/templates/app/views/rodauth/webauthn_auth.html.erb
rodauth-rails-1.15.2 lib/generators/rodauth/templates/app/views/rodauth/webauthn_auth.html.erb
rodauth-rails-1.15.1 lib/generators/rodauth/templates/app/views/rodauth/webauthn_auth.html.erb
rodauth-rails-1.15.0 lib/generators/rodauth/templates/app/views/rodauth/webauthn_auth.html.erb
rodauth-rails-1.14.0 lib/generators/rodauth/templates/app/views/rodauth/webauthn_auth.html.erb
plutonium-0.6.2 lib/generators/pu/rodauth/templates/app/views/rodauth/webauthn_auth.html.erb
plutonium-0.6.1 lib/generators/pu/rodauth/templates/app/views/rodauth/webauthn_auth.html.erb
plutonium-0.6.0 lib/generators/pu/rodauth/templates/app/views/rodauth/webauthn_auth.html.erb
plutonium-0.5.0 lib/generators/pu/rodauth/templates/app/views/rodauth/webauthn_auth.html.erb
rodauth-rails-1.13.0 lib/generators/rodauth/templates/app/views/rodauth/webauthn_auth.html.erb
rodauth-rails-1.12.0 lib/generators/rodauth/templates/app/views/rodauth/webauthn_auth.html.erb
rodauth-rails-1.11.0 lib/generators/rodauth/templates/app/views/rodauth/webauthn_auth.html.erb
rodauth-rails-1.10.0 lib/generators/rodauth/templates/app/views/rodauth/webauthn_auth.html.erb
rodauth-rails-1.9.0 lib/generators/rodauth/templates/app/views/rodauth/webauthn_auth.html.erb
rodauth-rails-1.8.0 lib/generators/rodauth/templates/app/views/rodauth/webauthn_auth.html.erb
rodauth-rails-1.7.1 lib/generators/rodauth/templates/app/views/rodauth/webauthn_auth.html.erb