Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update 01-login.md #10381

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions articles/quickstart/webapp/django/01-login.md
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,12 @@ def login(request):
)
```

Note that without an `audience`, you will receive an opaque access token. Obtain an [API identifier](https://auth0.com/docs/secure/tokens/access-tokens/get-access-tokens) and pass that here as the audience claim to obtain a well-formed access token.
```
request, request.build_absolute_uri(reverse("callback"), audience='YOUR API IDENTIFIER')
```


### Finalizing authentication with `/callback`
After your users finish logging in with Auth0, they'll be returned to your application at the `/callback` route. This route is responsible for actually saving the session for the user, so when they visit again later, they won't have to sign back in all over again.

Expand Down