ember.js simple-auth with django rest: No authenticator for factory "simple-auth-authenticator:django-rest-auth" could be found -


i'm trying ember work ember-simple-auth (https://github.com/simplabs/ember-simple-auth) , django-rest-auth (https://www.npmjs.com/package/ember-cli-django-rest-auth) looks i'm missing something..

i keep getting

"uncaught error: assertion failed: no authenticator factory "simple-auth-authenticator:django-rest" found!" , i'm not sure i'm missing. 

basically followed example https://github.com/simplabs/ember-cli-simple-auth-example , replaced authenticator django-rest-auth , added initializer ember-cli-django-rest-auth docs.

any ideas i'm missing? if there's working example of ember-cli-django-rest-auth great.

thanks!

edit: added config environment.js

env.app.api_host = 'http://localhost:8000'; env.app.api_namespace = 'chat/api'; env['simple-auth'] = {     authorizer: 'authorizer:django-rest',     servertokenendpoint: 'http://localhost:8000/api-token-auth/',     crossoriginwhitelist: ['http://localhost:8000'],     store: 'simple-auth-session-store:ephemeral' }; 

difficult without seeing code, 1 thing noticed should "django-rest" not "django-rest-auth". relevant simple-auth section of environment.js like?


Comments

Popular posts from this blog

How has firefox/gecko HTML+CSS rendering changed in version 38? -

javascript - Complex json ng-repeat -

jquery - Cloning of rows and columns from the old table into the new with colSpan and rowSpan -