Skip to main content

Crate laravel_fortify

Crate laravel_fortify 

Source
Expand description

Laravel Fortify for Laravel Rust: a frontend agnostic authentication backend.

A community port of Laravel Fortify by Rivervo. See the README for installation and usage.

Modules§

actions
Fortify’s actions: Laravel\Fortify\Actions.
contracts
The actions an application implements, and the services it may replace: Laravel\Fortify\Contracts.
events
The events Fortify dispatches: Laravel\Fortify\Events, and the framework’s authentication events that Fortify fires (Illuminate\Auth\Events), which Laravel Rust doesn’t have.
http
Fortify’s routes’ handlers: Laravel\Fortify\Http\Controllers, one module per controller.
input
Reading request input by a field name that the configuration chooses, such as Fortify::username(), as PHP’s $request->input($name) does.
rules
Laravel\Fortify\Rules\Password: Fortify’s own password rule, deprecated in PHP in favour of Laravel’s Password rule (laravel::validation::Rule::password), and kept for parity.

Structs§

Features
Checks which features the application enables: Laravel\Fortify\Features.
Fortify
Fortify’s helpers: Laravel\Fortify\Fortify.
FortifyConfig
Fortify’s settings, with the defaults of the package’s config/fortify.php.
FortifyServiceProvider
Registers Fortify’s configuration, migration, and routes, and holds the application’s customizations: PHP’s FortifyServiceProvider and the Fortify::*() calls of the published App\Providers\FortifyServiceProvider.
Limiters
The rate limiters of Fortify’s routes: fortify.limiters.
LoginNext
The rest of the login pipeline, which ends with the login response.
LoginRateLimiter
Throttles failed logins: five a minute for each username and IP address: Laravel\Fortify\LoginRateLimiter.
LoginRequest
The login request that passes through the login pipeline: Laravel\Fortify\Http\Requests\LoginRequest.
Misconfigured
A misconfiguration that Fortify reports as a server error, such as a view that the application didn’t give: the PHP container’s “target is not instantiable” exceptions.
PasskeyOptions
The options of Feature::Passkeys: the array passed to Features::passkeys().
PasskeyPaths
fortify.paths.passkey.
PasskeysConfig
The passkey settings: fortify.passkeys.
PasskeysServiceProvider
Laravel\Fortify\PasskeyAuthenticatable and the passkeys provider, from laravel-passkey. Registers the package’s configuration, the passkeys migration, and the passkey routes for the user model U.
PasswordPaths
fortify.paths.password.
Paths
Custom paths of Fortify’s routes, keyed like fortify.paths. None keeps Fortify’s path.
RecoveryCode
Generates recovery codes: Laravel\Fortify\RecoveryCode.
Redirects
Custom redirects after Fortify’s actions: fortify.redirects. None falls back to FortifyConfig::home (or the action’s own default).
RequirePassword
Requires a recent password confirmation: Laravel’s password.confirm middleware (Illuminate\Auth\Middleware\RequirePassword), which Laravel Rust doesn’t have.
ResponseContext
What a response knows besides the request, as the PHP responses’ constructor arguments.
TwoFactorAuthenticationProvider
The default two-factor provider: time-based one-time passwords (RFC 6238) with SHA-1, six digits, and 30-second steps, as Google Authenticator and PHP’s pragmarx/google2fa use them: Laravel\Fortify\TwoFactorAuthenticationProvider.
TwoFactorOptions
The options of Feature::TwoFactorAuthentication: the array passed to Features::twoFactorAuthentication().
TwoFactorPaths
fortify.paths.two-factor.
UpdatePath
fortify.paths.user-profile-information and fortify.paths.user-password.
VerificationPaths
fortify.paths.verification.

Enums§

Feature
A feature that Fortify can enable, listed in FortifyConfig::features.
ResponseKind
The response contracts that an application may replace, one per Laravel\Fortify\Contracts\*Response interface that Fortify’s service provider binds.
ViewKind
The views that Fortify’s GET routes return, one per *ViewResponse contract.

Traits§

LoginStep
One pipe of the login pipeline, such as AttemptToAuthenticate: a class with a handle($request, $next) method in PHP.
PasskeyAuthenticatable
Laravel\Fortify\PasskeyAuthenticatable and the passkeys provider, from laravel-passkey. A user who can register passkeys and log in with them.
TwoFactorAuthenticatable
A user who can enable two-factor authentication: the TwoFactorAuthenticatable trait.

Functions§

ensure_two_factor_state_is_valid
Keeps the session’s two-factor state valid and handles its transitions: ensureStateIsValid(). Call it on each render of the page that enables two-factor authentication. When confirmation is on and the user left the page without confirming a setup they began, the setup is disabled.
pages
Marks Fortify’s pages for Laravel’s authentication: the login page (where Authenticate sends guests) and the reset password page (which reset emails link to), when Fortify registers their views. Call it in with_auth, as PHP’s route('login') and route('password.reset') find Fortify’s routes by name.
verification_pages
Marks Fortify’s email verification pages: the verification notice (where RequireVerifiedEmail sends unverified users) and the route that verification emails link to. Call it in with_auth with pages when U derives MustVerifyEmail.