From 65f0cb27418d7c65421bf6de2f9ddc443a3bcb60 Mon Sep 17 00:00:00 2001 From: "robin.hruska@teskalabs.com" Date: Thu, 23 Mar 2023 15:18:58 +0100 Subject: [PATCH] Draft OAuth setup --- examples/web-authz-userinfo.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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")