Authorize Application

<%= @application.name %> is requesting access to your account.

This application will be able to:

    <% if @scopes.include?("openid") %>
  • Verify your identity
  • <% end %> <% if @scopes.include?("email") %>
  • Access your email address (<%= Current.session.user.email_address %>)
  • <% end %> <% if @scopes.include?("profile") %>
  • Access your profile information
  • <% end %> <% if @scopes.include?("groups") %>
  • Access your group memberships
  • <% end %>

You'll be redirected to:

<%= @redirect_uri %>

<%= form_with url: oauth_consent_path, method: :post, class: "space-y-3" do |form| %> <%= form.submit "Authorize", class: "w-full flex justify-center py-2 px-4 border border-transparent rounded-md shadow-sm text-sm font-medium text-white bg-blue-600 hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500" %> <%= button_tag "Deny", type: :submit, name: :deny, value: "1", class: "w-full flex justify-center py-2 px-4 border border-gray-300 rounded-md shadow-sm text-sm font-medium text-gray-700 bg-white hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500" %> <% end %>