1 <h2>Sign in with external provider</h2>
3 <%= form_for @conn, o_auth_path(@conn, :prepare_request), [as: "authorization", method: "get"], fn f -> %>
4 <div style="display: none">
5 <%= render @view_module, "_scopes.html", Map.merge(assigns, %{form: f}) %>
8 <%= hidden_input f, :client_id, value: @client_id %>
9 <%= hidden_input f, :redirect_uri, value: @redirect_uri %>
10 <%= hidden_input f, :state, value: @state %>
12 <%= for strategy <- Pleroma.Config.oauth_consumer_strategies() do %>
13 <%= submit "Sign in with #{String.capitalize(strategy)}", name: "provider", value: strategy %>