Triggering authentication with /login
Triggering authentication with /login
When visitors to your app visit the /login
route, they'll be redirected to Auth0 to begin the authentication flow.
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.
To inquire User roles
You can use the following code sample:
import requests
url = "
https://dev-s2lge48ro4vtrqmv.us.auth0.com/api/v2/users/:id/roles
"
payload = {}
headers = {
'Accept': 'application/json'
}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)
Last updated