Struct kvarn_auth::Builder

source ·
pub struct Builder { /* private fields */ }
Expand description

You can use multiple authentication setups on a single site, but make sure that the respective Builder::with_cookie_paths do not overlap. You MUST set with_cookie_path to use more than 1 auth setup.

Implementations§

source§

impl Builder

source

pub fn new() -> Self

Create a new builder. Use Self::build or Self::build_validate to get a Config.

source

pub fn with_auth_page_name(self, auth_page_name: impl Into<String>) -> Self

Sets the URL endpoint where your frontend authenticates to.