2016-11-15 17:56:03 -05:00
|
|
|
- content_for :page_title do
|
|
|
|
= t('doorkeeper.authorizations.new.title')
|
|
|
|
|
2022-03-01 10:48:58 -05:00
|
|
|
.form-container.simple_form
|
2016-12-29 10:54:54 -05:00
|
|
|
.oauth-prompt
|
2022-03-01 10:48:58 -05:00
|
|
|
%h3= t('doorkeeper.authorizations.new.title')
|
2016-10-22 13:38:47 -04:00
|
|
|
|
2022-03-01 10:48:58 -05:00
|
|
|
%p= t('doorkeeper.authorizations.new.prompt_html', client_name: content_tag(:strong, @pre_auth.client.name))
|
2016-10-22 13:38:47 -04:00
|
|
|
|
2022-03-01 10:48:58 -05:00
|
|
|
%h3= t('doorkeeper.authorizations.new.review_permissions')
|
2016-10-22 13:38:47 -04:00
|
|
|
|
2022-03-01 10:48:58 -05:00
|
|
|
%ul.permissions-list
|
|
|
|
- grouped_scopes(@pre_auth.scopes).each do |scope|
|
|
|
|
%li.permissions-list__item
|
|
|
|
.permissions-list__item__icon
|
|
|
|
= fa_icon('check')
|
|
|
|
.permissions-list__item__text
|
|
|
|
.permissions-list__item__text__title
|
|
|
|
= t(scope.key, scope: [:doorkeeper, :grouped_scopes, :title])
|
|
|
|
.permissions-list__item__text__type
|
|
|
|
= t(scope.access, scope: [:doorkeeper, :grouped_scopes, :access])
|
|
|
|
|
|
|
|
.actions
|
2024-06-14 05:49:10 -04:00
|
|
|
= form_with url: oauth_authorization_path do |form|
|
|
|
|
= form.hidden_field :client_id,
|
|
|
|
value: @pre_auth.client.uid
|
|
|
|
= form.hidden_field :redirect_uri,
|
|
|
|
value: @pre_auth.redirect_uri
|
|
|
|
= form.hidden_field :state,
|
|
|
|
value: @pre_auth.state
|
|
|
|
= form.hidden_field :response_type,
|
|
|
|
value: @pre_auth.response_type
|
|
|
|
= form.hidden_field :scope,
|
|
|
|
value: @pre_auth.scope
|
|
|
|
= form.button t('doorkeeper.authorizations.buttons.authorize'),
|
|
|
|
type: :submit
|
2022-03-01 10:48:58 -05:00
|
|
|
|
2024-06-14 05:49:10 -04:00
|
|
|
= form_with url: oauth_authorization_path, method: :delete do |form|
|
|
|
|
= form.hidden_field :client_id,
|
|
|
|
value: @pre_auth.client.uid
|
|
|
|
= form.hidden_field :redirect_uri,
|
|
|
|
value: @pre_auth.redirect_uri
|
|
|
|
= form.hidden_field :state,
|
|
|
|
value: @pre_auth.state
|
|
|
|
= form.hidden_field :response_type,
|
|
|
|
value: @pre_auth.response_type
|
|
|
|
= form.hidden_field :scope,
|
|
|
|
value: @pre_auth.scope
|
|
|
|
= form.button t('doorkeeper.authorizations.buttons.deny'),
|
|
|
|
type: :submit,
|
|
|
|
class: 'negative'
|