PhoenixKitWeb.Live.Settings.Authorization (phoenix_kit v1.7.192)

Copy Markdown View Source

Authorization settings management LiveView for PhoenixKit.

Manages login page branding and authentication methods including magic links and OAuth provider configuration.

Summary

Functions

Collapsible per-provider OAuth setup guide: the callback-URL box with a copy button, the provider-specific console steps (slot), and the reverse-proxy notice. One component instead of four hand-copied ~95-line blocks.

Callback implementation for Phoenix.LiveView.render/1.

Functions

get_oauth_callback_url(settings, provider)

handle_event(binary, arg2, socket)

Callback implementation for Phoenix.LiveView.handle_event/3.

handle_info(arg, socket)

Callback implementation for Phoenix.LiveView.handle_info/2.

handle_params(params, url, socket)

Callback implementation for Phoenix.LiveView.handle_params/3.

mount(params, session, socket)

Callback implementation for Phoenix.LiveView.mount/3.

oauth_setup_instructions(assigns)

Collapsible per-provider OAuth setup guide: the callback-URL box with a copy button, the provider-specific console steps (slot), and the reverse-proxy notice. One component instead of four hand-copied ~95-line blocks.

Attributes

  • callback_url (:string) (required)
  • copy_hint (:string) (required) - e.g. "Copy this URL to Google Cloud Console".

Slots

  • steps (required) - provider-specific <li> instruction items.

render(assigns)

Callback implementation for Phoenix.LiveView.render/1.

signed_preview_url(file_uuid, variant)