Svelixir.Config.Auth (svelixir v0.11.0)

Copy Markdown

Authentication surfaces — the auth: section.

local is derived: oidc and saml both issue app tokens through that same path, so either one forces it. Svelixir.Config.Otp applies the implication, and also enforces that any auth at all requires project.type: :web.

local/oidc/saml are the canonical names. The scaffolder skills reach the same three switches as options.local_auth/oidc_auth/saml_auth; those spellings are retired and are not accepted as input. See the mapping table in Svelixir.Config.

Summary

Functions

Returns the enabled auth methods, sorted.

Builds this section, and any nested block, from input.

Types

t()

@type t() :: %Svelixir.Config.Auth{local: boolean(), oidc: boolean(), saml: boolean()}

Functions

enabled(auth)

@spec enabled(t()) :: [atom()]

Returns the enabled auth methods, sorted.

Svelixir.Config.Otp uses this to name what was requested when auth is rejected on an :otp project.

new!(input \\ [])

@spec new!(keyword() | map()) :: t()

Builds this section, and any nested block, from input.

valid?(self)