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_path
s do not overlap. You MUST set with_cookie_path
to use more than
1 auth setup.
Implementations§
source§impl Builder
impl Builder
sourcepub fn new() -> Self
pub fn new() -> Self
Create a new builder.
Use Self::build
or Self::build_validate
to get a Config
.
sourcepub fn with_auth_page_name(self, auth_page_name: impl Into<String>) -> Self
pub fn with_auth_page_name(self, auth_page_name: impl Into<String>) -> Self
Sets the URL endpoint where your frontend authenticates to.