-
Notifications
You must be signed in to change notification settings - Fork 492
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
Access denied - unauthorized #317
Comments
@pooya1361 make sure the type of your client is |
You can check that in Auth0 Dashboard -> Client -> Settings |
Thanks. It works. I wonder where was this in documentation! Is it? |
@pooya1361 we don't have docs for this yet since its part of new features we are adding. |
hey @hzalaz |
@saikatharryc no. |
@hzalaz Ugh, such a simple fix after hours of banging my head against the wall. |
@hzalaz i am using nodeJS and angular2. I changed client type to SPA but still getting this error: Error: access_denied |
my client type is SPA , still i get the same error "acess denied" why?? |
Hi @anurag12chauhan, this doesn't look like a bug in the SDK. Please reach out to our amazing support team at https://support.auth0.com so they can better assist you with your scenario. |
For anyone else that stumbles upon this... I had the same problem with a different solution: in the tutorial it has you create an "Email domain whitelist" rule and it says if you don't turn it off, people won't be able to log in... I thought I turned off, but after 30 minutes of scratching my head, I realized I didn't. So, check that before you go crazy. |
@sdpetersen Thank you so much, literally spent 2 days on this issue, at last your solution worked!! I am so happy. |
Thank you @sdpetersen!!! I had a similar problem. I had a rule that would load the person's picture from function (user, context, callback) {
if (user.user_metadata.picture)
user.picture = user.user_metadata.picture;
callback(null, user, context);
} Bad code!!! If the user has no function (user, context, callback) {
// Make sure that `user_metadata` exists before trying to get
// one of it's properties!!!
if (user.user_metadata && user.user_metadata.picture)
user.picture = user.user_metadata.picture;
callback(null, user, context);
} Moral of the story: bugs in your rules can prevent anyone from logging in! |
I'm still having this issue and both the whitelist and the client type are okay. |
Thank you very much. This worked for me. Can't believe spent hours on this😥 |
Hi,
We are currently using the lock and my task is to change the method to API. I read the whole documentations and gits but it didn't help with my problem. Note that the same user/pass works fine with lock. I also tested this code with user/pass only. The same error occurred.
Here's my code:
Response
Request payload
The text was updated successfully, but these errors were encountered: