forked from AkkomaGang/akkoma
c3f12cf3c3
Registration and authorization-related params are wrapped in "authorization" in order to reduce edge cases number and simplify handling logic.
13 lines
584 B
Elixir
13 lines
584 B
Elixir
<h2>Sign in with external provider</h2>
|
|
|
|
<%= form_for @conn, o_auth_path(@conn, :prepare_request), [as: "authorization", method: "get"], fn f -> %>
|
|
<%= render @view_module, "_scopes.html", Map.put(assigns, :form, f) %>
|
|
|
|
<%= hidden_input f, :client_id, value: @client_id %>
|
|
<%= hidden_input f, :redirect_uri, value: @redirect_uri %>
|
|
<%= hidden_input f, :state, value: @state %>
|
|
|
|
<%= for strategy <- Pleroma.Config.oauth_consumer_strategies() do %>
|
|
<%= submit "Sign in with #{String.capitalize(strategy)}", name: "provider", value: strategy %>
|
|
<% end %>
|
|
<% end %>
|