ueberauth_auth0 icon indicating copy to clipboard operation
ueberauth_auth0 copied to clipboard

Replace API calls to `/userinfo` with payload from id_token

Open taj opened this issue 2 years ago • 3 comments

We are going above Auth0's rate limits on a daily basis. After some investigation we realised that the ueberauth_auth0 was making API calls to the /userinfo endpoint every time someone logs in (on callback).

We actually don't need to do this as the user info is returned in the id_token. The id_token follows the the JWT standard.

taj avatar Jan 26 '23 15:01 taj

BTW, have you seen the #175 PR ? It could give you some ideas about your feature ;)

achedeuzot avatar Feb 06 '23 22:02 achedeuzot

@taj In ran the CI but it's red because of a few things :) Have you checked the PR of the previous comment ? It could help ;)

achedeuzot avatar Feb 13 '23 23:02 achedeuzot

@taj In ran the CI but it's red because of a few things :) Have you checked the PR of the previous comment ? It could help ;)

Hey @achedeuzot, sorry was on holiday for the past week, I will try to fix everything this week! :)

taj avatar Feb 20 '23 11:02 taj