View Source AshAuthentication.Phoenix.Components.SignIn (ash_authentication_phoenix v1.4.5)

Renders sign in mark-up for an authenticated resource.

This means that it will render sign-in UI for all of the authentication strategies for a resource.

For each strategy configured on the resource a component name is inferred (e.g. AshAuthentication.Strategy.Password becomes AshAuthentication.Phoenix.Components.Strategy.Passowrd) and is rendered into the output.

component-hierarchy

Component hierarchy

This is the top-most authentication component.

Children:

  • AshAuthentication.Phoenix.Components.Strategy.Password.
  • AshAuthentication.Phoenix.Components.Strategy.OAuth2.

overrides

Overrides

This component provides the following overrides:

  • :root_class - CSS class for the root div element.
  • :show_banner - Whether or not to show the banner.
  • :strategy_class - CSS class for a div surrounding each strategy component.

See AshAuthentication.Phoenix.Overrides for more information.

props

Props

  • overrides - A list of override modules.

Link to this section Summary

Link to this section Types

@type props() :: %{optional(:overrides) => [module()]}