Hello,
I am trying to add pow assent routes to a button, But I am running into an error. The informations are below:
config.exs
config :profilo, :pow_assent,
providers: [
github: [
client_id: "secret",
client_secret: "secret",
strategy: PowAssent.Strategy.Github
]
]
templates\pow\session\new.html.eex
<h1>Sign in</h1>
<%= form_for @changeset, @action, [as: :user], fn f -> %>
<%= if @changeset.action do %>
<div class="alert alert-danger">
<p>Oops, something went wrong! Please check the errors below.</p>
</div>
<% end %>
<%= label f, @changeset.data.__struct__.pow_user_id_field() %>
<%= text_input f, @changeset.data.__struct__.pow_user_id_field() %>
<%= error_tag f, @changeset.data.__struct__.pow_user_id_field() %>
<%= label f, :password %>
<%= password_input f, :password %>
<%= error_tag f, :password %>
<div>
<%= submit "Sign in" %>
</div>
<% end %>
<span><%= link "Register", to: Routes.pow_registration_path(@conn, :new) %></span>
<div><%= link "Register with Github", to: Routes.pow_assent_authorization_path(@conn, :new, providers: "github") %></div>
<div><%= link "Register with Github", to: "/auth/github/new " %></div>
Error:
equest: GET /auth/provider/new
** (exit) an exception was raised:
** (PowAssent.Config.ConfigError) No provider configuration available for provider.