diff --git a/examples/web-authz-userinfo.py b/examples/web-authz-userinfo.py index 12103fcab..8bd9598b6 100644 --- a/examples/web-authz-userinfo.py +++ b/examples/web-authz-userinfo.py @@ -78,7 +78,8 @@ async def initialize(self): container.WebApp.router.add_get('/user', self.get_userinfo) @asab.web.authz.userinfo_handler - async def get_userinfo(self, request, *, userinfo): + @asab.web.tenant + async def get_userinfo(self, request, *, userinfo, tenant): message = "Hi {}, your email is {}".format( userinfo.get("preferred_username"), userinfo.get("email")