Skip to content

Commit

Permalink
feat: update the Authorize example with how to get Credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
trgiangdo committed Dec 25, 2024
1 parent 195c21a commit d179c41
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/userman/advanced_features/auth/authorization.md
Original file line number Diff line number Diff line change
Expand Up @@ -266,10 +266,10 @@ require authorization will find the information in the context.
The general usage of the `Authorize^` context is shown in the following example.

```python
from taipy.auth import Authorize
from taipy.auth import Authorize, login

# Get Credentials from Authentication
credentials = ...
# Get a valid Credentials from Authentication
credentials = login("user1", "pass123")

with Authorize(credentials):
...
Expand Down

0 comments on commit d179c41

Please sign in to comment.