Sha256: 88f1db8deaeba4deed661be6ddb58a766e576b1747eae792c66e83a3cd5422e6
Contents?: true
Size: 1.94 KB
Versions: 13
Compression:
Stored size: 1.94 KB
Contents
<% oauth_grants = rodauth.scope.instance_variable_get(:@oauth_grants) %> <% grants_count = oauth_grants.count %> <% if grants_count.zero? %> <p><%= rodauth.oauth_no_grants_text %></p> <% else %> <table class="table"> <thead> <tr> <th scope="col"><=% rodauth.oauth_grants_type_label %></th> <th scope="col"><=% rodauth.oauth_grants_token_label %></th> <th scope="col"><=% rodauth.oauth_grants_refresh_token_label %></th> <th scope="col"><=% rodauth.oauth_grants_expires_in_label %></th> <th scope="col"><=% rodauth.oauth_grants_revoked_at_label %></th> <th scope="col"><=% rodauth.oauth_grants_scopes_label %></th> <th scope="col"><span class="badge badge-pill badge-dark"><%= grants_count %></span> </tr> </thead> <tbody> <% oauth_grants.each do |oauth_grant| %> <tr> <td><%= oauth_grant[rodauth.oauth_grants_type_column] %></td> <td><code class="token"><%= oauth_grant[rodauth.oauth_grants_token_column] %></code></td> <td><code class="token"><%= oauth_grant[rodauth.oauth_grants_refresh_token_column] %></code></td> <td><%= oauth_grant[rodauth.oauth_grants_expires_in_column] %></td> <td><%= oauth_grant[rodauth.oauth_grants_revoked_at_column] %></td> <td><%= oauth_grant[rodauth.oauth_grants_scopes_column] %></td> <td> <% if !oauth_grant[rodauth.oauth_grants_revoked_at_column] %> <%= form_tag rodauth.revoke_path, method: :post do %> <%= hidden_field_tag :token_type_hint, "access_token" %> <%= hidden_field_tag :token, oauth_grant[rodauth.oauth_grants_token_column] %> <%= submit_tag rodauth.oauth_grant_revoke_button, class: "btn btn-danger" %> <% end %> <% end %> </td> </tr> <% end %> </tbody> </table> <%= rodauth.oauth_management_pagination_links(@oauth_grants) %> <% end %>
Version data entries
13 entries across 13 versions & 1 rubygems