2019-03-20 17:25:48 +00:00
|
|
|
<h2>Sign in with external provider</h2>
|
2019-03-15 14:08:03 +00:00
|
|
|
|
2019-03-27 12:39:35 +00:00
|
|
|
<%= form_for @conn, o_auth_path(@conn, :prepare_request), [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 %>
|
|
|
|
|
2019-04-05 12:12:02 +00:00
|
|
|
<%= for strategy <- Pleroma.Config.oauth_consumer_strategies() do %>
|
2019-03-27 12:39:35 +00:00
|
|
|
<%= submit "Sign in with #{String.capitalize(strategy)}", name: "provider", value: strategy %>
|
|
|
|
<% end %>
|
2019-03-15 14:08:03 +00:00
|
|
|
<% end %>
|