Middleware for security and authorization of web apps.