Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
dorlugasigal authored Feb 4, 2024
1 parent 6305820 commit 1a1e8a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ Or directly to your web api route:
async def user(request: Request, token=Depends(oauth2_scheme(options=api_options))):
return request.user
```

**It's important to have the `Request` object set as the first parameter for your endpoint**
> if you are inspecting the `request.user` object, you will find all the user's property retrieved from **Azure AD**.
You can specify **scopes** and / or **roles**, using **decorators**, to be checked before accessing your web api:
Expand Down

0 comments on commit 1a1e8a9

Please sign in to comment.