AshAuthentication.Phoenix.Components.OAuth2 (ash_authentication_phoenix v2.4.7)

View Source

Generates a sign-in button for OAuth2.

Component hierarchy

This is the top-most strategy-specific component, nested below AshAuthentication.Phoenix.Components.SignIn.

Props

  • strategy - The strategy configuration as per AshAuthentication.Info.strategy/2. Required.
  • overrides - A list of override modules.
  • gettext_fn - Optional text translation function.

Overrides

This component provides the following overrides:

  • :root_class - CSS classes for the root div element.
  • :link_class - CSS classes for the a element.
  • :icon_class - CSS classes for the icon SVG.

See AshAuthentication.Phoenix.Overrides for more information.

Summary

Types

props()

@type props() :: %{
  :strategy => AshAuthentication.Strategy.t(),
  optional(:auth_routes_prefix) => String.t(),
  optional(:overrides) => [module()],
  optional(:gettext_fn) => {module(), atom()}
}

Functions

icon(assigns)