-
Notifications
You must be signed in to change notification settings - Fork 232
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
Keep getting {"errors":["Authorized users only."]}. Auth headers not set #146
Comments
same problem here, are you using ng-resource too? |
Solved with this: #36 |
Yes ng-resource as well |
Can you post an example of your service? |
'use strict';
I noticed i get the problem when i use my resMgr.register(). But even after careful observation there doesn't seem to be anything wrong with the function |
I had the same error using Rails as backend, after days researching I found the problem resided on the rails side(nothing to do with Authorization). The error message was a bit misleading. Check your backend related logic. My 2 cents. |
@ronniebermejo what was wrong in your rails? |
@IamNaN i had a method named ''transaction' which was overwriting a super method. |
Another possible fact: When you use cancan (or cancancan actually) you need to define correctly the permissions, locally sometimes that just ignored, but in the server (heroku for example) they can piss you up. @IamNaN @ronniebermejo |
I can register and log in successfully but after that all requests to the server for does not include these headers access-token, expiry, Referer, token-type, uid and hence i keep getting {"errors":["Authorized users only."]}.
When i do a validateUser it sends the headers and validates successfully. Is there anything else i am missing?
This is my .config
.config(function($authProvider) {
$authProvider.configure({
apiUrl: '/api'
});
})
The text was updated successfully, but these errors were encountered: