[#923] Support for multiple OAuth consumer strategies.
[akkoma] / lib / pleroma / web / templates / o_auth / o_auth / consumer.html.eex
1 <br>
2 <br>
3 <h2>Sign in with external provider</h2>
4
5 <%= for strategy <- Pleroma.Config.get([:auth, :oauth_consumer_strategies], []) do %>
6 <%= form_for @conn, o_auth_path(@conn, :request, strategy), [method: "get"], fn f -> %>
7 <%= hidden_input f, :state, value: Enum.join([@client_id, @redirect_uri, Enum.join(@available_scopes, " "), @state], "|") %>
8 <%= submit "Sign in with #{String.capitalize(strategy)}" %>
9 <% end %>
10 <% end %>