Documentation
    Preparing search index...

    Interface AstroRbacOptions

    Options for configuring AstroRbacMiddleware.

    interface AstroRbacOptions {
        enableTarpitSleep?: boolean;
        forbiddenRedirectPath?: string;
        loginRedirectPath?: string;
        userResolver?: AstroUserResolver;
    }
    Index

    Properties

    enableTarpitSleep?: boolean

    Whether to inject tarpit delay asynchronously before proceeding

    forbiddenRedirectPath?: string

    URL path to redirect forbidden users for HTML pages (defaults to "/403")

    loginRedirectPath?: string

    URL path to redirect unauthenticated users for HTML pages (defaults to "/login")

    userResolver?: AstroUserResolver

    Custom extractor function to retrieve the user context from Astro context