-
Notifications
You must be signed in to change notification settings - Fork 141
Logging In
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:
-
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.
-
Create a form that POSTs to /auth/local. This will also create a session. POST variables are identifier (email) and password.
-
Use Basic Auth, e.g. https://github.com/hashware/hashpanel/blob/master/js/index.js#L23-L29