Skip to content

Commit

Permalink
Merge pull request #9 from tasn/esa-1.0
Browse files Browse the repository at this point in the history
Update to suppert ESA 1.0.
  • Loading branch information
zaubererty committed Dec 21, 2015
2 parents 8460a85 + cd4016c commit 6fe280e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/authenticators/django-rest.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import Ember from 'ember';
import Base from 'simple-auth/authenticators/base';
import Base from 'ember-simple-auth/authenticators/base';
import isSecureUrl from './../utils/is-secure-url';

export default Base.extend({

init: function() {
var globalConfig = window.ENV['simple-auth'] || {};
var globalConfig = window.ENV['ember-simple-auth'] || {};
this.serverTokenEndpoint = globalConfig.serverTokenEndpoint || '/api-token-auth/';
},

Expand Down
2 changes: 1 addition & 1 deletion app/authorizers/django-rest.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Base from 'simple-auth/authorizers/base';
import Base from 'ember-simple-auth/authorizers/base';
import isSecureUrl from './../utils/is-secure-url';

export default Base.extend({
Expand Down
2 changes: 1 addition & 1 deletion app/initializers/django-rest.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import Authorizer from './../authorizers/django-rest';

export default {
name: 'django-rest-auth',
before: 'simple-auth',
before: 'ember-simple-auth',
initialize: function(container, application){
container.register('authorizer:django-rest', Authorizer);
container.register('authenticator:django-rest', Authenticator);
Expand Down

0 comments on commit 6fe280e

Please sign in to comment.