Sha256: 23b39fbabadbb1f40feb17e36bfc0aa04d91afea3484e77761c0c03d81084e9e

Contents?: true

Size: 984 Bytes

Versions: 10

Compression:

Stored size: 984 Bytes

Contents

<% oauth_grant = rodauth.scope.instance_variable_get(:@oauth_grant) %>
<%= form_tag rodauth.device_path, method: :post, class: "form-horizontal", id: "device-verification-form" do %>
  <p class="lead">The device with user code <%= oauth_grant[rodauth.oauth_grants_user_code_column] %> would like to access your data.</p>

  <div class="form-group">
    <h1 class="display-6"><%= rodauth.oauth_tokens_scopes_label %></h1>

    <ul class="list-group">
      <% oauth_grant[rodauth.oauth_grants_scopes_column].split(rodauth.oauth_scope_separator).each do |scope| %>
        <li class="list-group-item"><%= scope %></li>
      <% end %>
    </ul>
  </div>
  <%= hidden_field_tag :user_code, rodauth.param("user_code") %>

  <p class="text-center">
    <%= submit_tag rodauth.oauth_device_verification_button, class: "btn btn-outline-primary" %>
    <%= link_to rodauth.oauth_cancel_button, "#{rodauth.device_path}?error=access_denied", class: "btn btn-outline-danger" %>
  </p>
<% end %>

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
rodauth-oauth-0.10.4 lib/generators/rodauth/oauth/templates/app/views/rodauth/device_verification.html.erb
rodauth-oauth-0.10.3 lib/generators/rodauth/oauth/templates/app/views/rodauth/device_verification.html.erb
rodauth-oauth-0.10.2 lib/generators/rodauth/oauth/templates/app/views/rodauth/device_verification.html.erb
rodauth-oauth-0.10.1 lib/generators/rodauth/oauth/templates/app/views/rodauth/device_verification.html.erb
rodauth-oauth-0.10.0 lib/generators/rodauth/oauth/templates/app/views/rodauth/device_verification.html.erb
rodauth-oauth-0.9.3 lib/generators/rodauth/oauth/templates/app/views/rodauth/device_verification.html.erb
rodauth-oauth-0.9.2 lib/generators/rodauth/oauth/templates/app/views/rodauth/device_verification.html.erb
rodauth-oauth-0.9.1 lib/generators/rodauth/oauth/templates/app/views/rodauth/device_verification.html.erb
rodauth-oauth-0.9.0 lib/generators/rodauth/oauth/templates/app/views/rodauth/device_verification.html.erb
rodauth-oauth-0.8.0 lib/generators/rodauth/oauth/templates/app/views/rodauth/device_verification.html.erb