Skip to content

Commit

Permalink
Draft OAuth setup
Browse files Browse the repository at this point in the history
  • Loading branch information
byewokko committed Mar 23, 2023
1 parent fedb210 commit 65f0cb2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/web-authz-userinfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 65f0cb2

Please sign in to comment.