Skip to main content

Module native

Module native 

Source

StructsΒ§

NativeQuery πŸ”’
NativeSubmit πŸ”’

EnumsΒ§

Flow πŸ”’

ConstantsΒ§

LOGIN_TOKEN_LENGTH πŸ”’

StaticsΒ§

BOUND_HTML πŸ”’
LOGIN_HTML πŸ”’
REGISTER_HTML πŸ”’
TOKEN_FIELD πŸ”’

FunctionsΒ§

authenticate_local πŸ”’
Authenticate through the local branch of an authorization request.
complete_redirect πŸ”’
Redirects with 303 so the browser cannot replay the password form into the completion or callback route.
do_register πŸ”’
error_block πŸ”’
native_get_route πŸ”’
Renders the native login or registration page for a pending authorization, device, or account flow.
native_submit πŸ”’
native_submit_route πŸ”’
Authenticates submitted credentials and sends the login token to the authorization completion, device-consent, or account-management callback.
parse_flow πŸ”’
provider_choice πŸ”’
provider_redirect πŸ”’
Send the browser to the provider chosen on the login page.
record_accepted_terms πŸ”’
render_bound πŸ”’
Offer only the provider a pending request is bound to.
render_login πŸ”’
render_page πŸ”’
Render the page for a flow, reading an authorization request’s binding.
render_register πŸ”’
render_sso_options πŸ”’
List each provider as a link that binds the pending request to it.
render_submit_error πŸ”’
Re-render the page a failed submission came from, carrying its error.
require_native πŸ”’
sso_choices πŸ”’
Providers the login page offers, as the client login flows list them.
terms_block πŸ”’
verify_credentials πŸ”’
Authenticate a local account by password, mirroring the /login password flow (password_login): password-origin accounts only, uniform error.

Type AliasesΒ§

AccountAction πŸ”’
DeviceId πŸ”’
IdpId πŸ”’
ProviderChoice πŸ”’