logto-io / logto

🧑‍🚀 The better identity infrastructure for developers and the open-source alternative to Auth0.
https://logto.io
Mozilla Public License 2.0
8.69k stars 440 forks source link

feature request: Python guide does not reflect some dependencies #4675

Open afonso-pereira opened 1 year ago

afonso-pereira commented 1 year ago

The Python logto guide requires a Python Version higher or equal to 3.10 The protected decorator requires wraps image

Python recognizes a syntax error in the example code for home page, specifically on the concatenation with
`return (

Get local ID token claims

    client.getIdTokenClaims().model_dump_json(exclude_unset=True)
    + "<br>"
    # Fetch user info from Logto userinfo endpoint
    (await client.fetchUserInfo()).model_dump_json(exclude_unset=True)
    + "<br><a href='/sign-out'>Sign out</a>"
)`

Furthermore, the part of this code that requires log in to be seen, does not properly display when accessing the / route

prithvihehe commented 1 year ago

hey @afonso-pereira I'd like to work on this issue

github-actions[bot] commented 1 year ago

This issue is stale because it has been open for 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.