Ember-simple-auth: An example for custom auth ( eg, just user/pass login system) would be nice.

Created on 11 May 2017  路  4Comments  路  Source: simplabs/ember-simple-auth

I am trying to wrap my head around implementing custom auth with my own simple Username/pass auth service (only secure cookies , no tokens ).

Any example would be really nice . Currently it is very very hard to follow.

documentation

Most helpful comment

Check out the docs for the BaseAuthenticator and the implementation of the rather simple DeviseAuthenticator. That should give you an idea of the necessary steps for implementing a custom authenticator.

I agree that a guide on how to write a custom authenticator would be great. /cc @srvance ;)

All 4 comments

Join the club. I'm having some issues getting my head around this too. You find packages such as Ember-Simple-Auth, but they don't seem to explain themselves very well. I have the same requirements.

I don't need an authorizer, none of that. I just need something that POSTs to a URL and that's it.

Check out the docs for the BaseAuthenticator and the implementation of the rather simple DeviseAuthenticator. That should give you an idea of the necessary steps for implementing a custom authenticator.

I agree that a guide on how to write a custom authenticator would be great. /cc @srvance ;)

I'd glad to join the club as well. I have an example app that uses a corporate authentication page, the master branch contains a login button. The thing I'm stuck now is to remove login button and to redirect to the corporate login page in case if the user is not authenticated (either the first time he/she comes to the app or after logging out). The failed version is on a separate branch. Even after logging out, the user is immediately re-logged in. No way to figure out how to implement it. Unfortunately, dummy app does not provide an example, other ones on the Web use all either login/password authentication or a login page.

cleaning old issues

Was this page helpful?
0 / 5 - 0 ratings