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

missing policies error #6

Open
yoann-trouillet opened this issue Aug 17, 2017 · 3 comments
Open

missing policies error #6

yoann-trouillet opened this issue Aug 17, 2017 · 3 comments

Comments

@yoann-trouillet
Copy link

Hi ,

We are starting a new sailsjs project and we have been using sails-hook-jwt-auth (on our local) - . Everything worked perfectly!

I am now trying to deploy the sails app to an ubuntu instance in AWS.
switched NODE_ENV to 'production' and started the app with node app.js

At this point the app doesn't start - I am getting the error below :

Unknown policy, "authtoken", referenced in config.policies.
Are you sure that policy exists?
It would be located at: /home/ubuntu/leadcaller.io/api/policies/authtoken.js

note : the small 't' in authtoken (instead of authToken).

Our policies.js looks like this :

module.exports.policies = {
'': false,
UserController : {
'
': ['authToken']
},
CampaignController : {
'': ['authToken']
},
LeadController : {
'insert': true,
'process' : ['authToken'],
'show' : ['authToken']
},
AuthController : {
'
': true
}
};

Thanks for your time and any pointers you might have.

Cheers

@robophil
Copy link
Collaborator

Hi,
I'll look into this later today and get back to you.

@swaroopjayanthi9
Copy link

@robophil Any update on this issue?

@robophil
Copy link
Collaborator

Sorry i couldn't reproduce.
Can you share the entire content of policies.js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants