trailsjs / sails-auth

Passport-based User Authentication system for sails.js applications. Designed to work well with the sails-permissions module.
https://www.npmjs.org/package/sails-auth
MIT License
265 stars 141 forks source link

Sails-Auth req.secure Override #97

Open ayyappaappana opened 8 years ago

ayyappaappana commented 8 years ago

How to override req.secure to work even if it is http request. http://localhost:80/user/:userid/something

{ error: "https required for basic auth. refusing login request" }

xyzController is having BasicAuth policy is extended for the Endpoint Action.

sylvainlap commented 8 years ago

+1

sylvainlap commented 8 years ago

securityLevel is a CORS options in sails. What is the connection ?

ayyappaappana commented 8 years ago

@sylvainlap Yes your correct, did you got any solution.?

sylvainlap commented 8 years ago

It has been fixed by https://github.com/tjwebb/sails-auth/pull/100