- Companion:
- class
Type members
Classlikes
Value members
Concrete methods
Creates a middleware for basic authentication
Creates a middleware for basic authentication
Creates a middleware for basic authentication that checks if the credentials are same as the ones given
Creates a middleware for basic authentication that checks if the credentials are same as the ones given
Creates a middleware for basic authentication using an effectful verification function
Creates a middleware for basic authentication using an effectful verification function
Creates a middleware for bearer authentication that checks the token using the given function
Creates a middleware for bearer authentication that checks the token using the given function
- Value parameters:
- f
: function that validates the token string inside the Bearer Header
Creates a middleware for bearer authentication that checks the token using the given effectful function
Creates a middleware for bearer authentication that checks the token using the given effectful function
- Value parameters:
- f
: function that effectfully validates the token string inside the Bearer Header
Creates a middleware for Cross-Origin Resource Sharing (CORS).
Creates a middleware for Cross-Origin Resource Sharing (CORS).
- See also:
Generates a new CSRF token that can be validated using the csrfValidate middleware.
Generates a new CSRF token that can be validated using the csrfValidate middleware.
CSRF middlewares: To prevent Cross-site request forgery attacks. This middleware is modeled after the double submit cookie pattern. Used in conjunction with csrfValidate middleware.
Validates the CSRF token appearing in the request headers. Typically the
token should be set using the csrfGenerate
middleware.
Validates the CSRF token appearing in the request headers. Typically the
token should be set using the csrfGenerate
middleware.
CSRF middlewares : To prevent Cross-site request forgery attacks. This middleware is modeled after the double submit cookie pattern. Used in conjunction with csrfGenerate middleware
Creates an authentication middleware that only allows authenticated requests to be passed on to the app.
Creates an authentication middleware that only allows authenticated requests to be passed on to the app.
Creates an authentication middleware that only allows authenticated requests to be passed on to the app using an effectful verification function.
Creates an authentication middleware that only allows authenticated requests to be passed on to the app using an effectful verification function.