<%= t('.application_id') %>:
<%= h @application.uid %>
<%= t('.secret') %>:
<% secret = flash[:application_secret].presence || @application.plaintext_secret %>
<% flash.delete :application_secret %>
<% if secret.blank? && Doorkeeper.config.application_secret_hashed? %>
<%= t('.secret_hashed') %>
<% else %>
<%= secret %>
<% end %>
<% if secret.present? && Doorkeeper.config.application_secret_hashed? %>
<%= t "text_oauth_copy_secret_now" %>
<% end %>
<%= t('.scopes') %>:
<%= safe_join @application.scopes.map{|scope| h l_or_humanize(scope, prefix: 'permission_')}, ", " %>
<%= t('.callback_url') %> | |
---|---|
<%= uri %> | <%= link_to sprite_icon('shield-check', t('doorkeeper.applications.buttons.authorize')), oauth_authorization_path(client_id: @application.uid, redirect_uri: uri, response_type: 'code', scope: @application.scopes), class: 'icon icon-authorize', target: '_blank' %> |