<%= @oauth_application.name %>

<%= display_for @oauth_application, { uid: :client_id }, { secret: :client_secret }, :organization_name, :organization_url, :redirect_uri %>
<%= display_label(@oauth_application, :authorize_url) %>
<%= decidim.oauth_authorization_url(host: @oauth_application.owner.host) %>
<%= display_label(@oauth_application, :site) %>
<%= decidim.root_url(host: @oauth_application.owner.host) %>
<%= display_label(@oauth_application, :authorized_tokens) %>
<%= @oauth_application.authorized_tokens.count %>
<%= display_label(@oauth_application, :authorization_url) %>
<%= decidim.oauth_authorization_url(host: @oauth_application.owner.host, client_id: @oauth_application.uid, redirect_uri: @oauth_application.redirect_uri, response_type: "code") %>