% oauth_tokens = rodauth.scope.instance_variable_get(:@oauth_tokens) %> <% tokens_count = oauth_tokens.count %> <% if tokens_count.zero? %>
No oauth tokens yet!
<% else %><=% rodauth.oauth_tokens_token_label %> | <=% rodauth.oauth_tokens_refresh_token_label %> | <=% rodauth.oauth_tokens_expires_in_label %> | <=% rodauth.oauth_tokens_revoked_at_label %> | <=% rodauth.oauth_tokens_scopes_label %> | <%= 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 rodauth.oauth_token_revoke_button, class: "btn btn-danger" %> <% end %> <% end %> |