% oauth_tokens_ds = rodauth.scope.instance_variable_get(:@oauth_tokens) %> <% tokens_count = oauth_tokens_ds.count %> <% if tokens_count.zero? %>
No oauth tokens yet!
<% else %>Token | Refresh Token | Expires in | Revoked at | Scopes | <%= tokens_count %> |
---|---|---|---|---|---|
<%= oauth_token[rodauth.oauth_tokens_token_column] %> |
<%= oauth_token[rodauth.oauth_tokens_refresh_token_column] %> |
<%= oauth_token[rodauth.oauth_tokens_expires_in_column] %> | <%= oauth_token[rodauth.oauth_tokens_revoked_at_column] %> | <%= oauth_token[rodauth.oauth_tokens_scopes_column] %> | <% if !oauth_token[rodauth.oauth_tokens_revoked_at_column] %> <%= form_tag rodauth.revoke_path, method: :post do %> <%= hidden_field_tag :token_type_hint, "access_token" %> <%= hidden_field_tag :token, oauth_token[rodauth.oauth_tokens_token_column] %> <%= submit_tag "Revoke", class: "btn btn-danger" %> <% end %> <% end %> |