Skip to content
kmosdev edited this page Jul 15, 2015 · 2 revisions

This is taken from this discussion: tjwebb's answer in this discussion: https://github.com/tjwebb/sails-auth/issues/19

There are three ways you can login:

  1. Use a 3rd party provider by navigating (GET) to /auth/, e.g. /auth/google. This will create a session and the browser will remain authenticated.

  2. Create a form that POSTs to /auth/local. This will also create a session. POST variables are identifier (email) and password.

  3. Use Basic Auth, e.g. https://github.com/hashware/hashpanel/blob/master/js/index.js#L23-L29

Clone this wiki locally