
Security News
Deno 2.6 + Socket: Supply Chain Defense In Your CLI
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.
ember-simple-auth-devise-token-auth
Advanced tools
Authenticator and Ember Data adapter mixin for integrating Ember Simple Auth with Devise Token Auth
Authenticator and Ember Data adapter mixin for integrating Ember Simple Auth with Devise Token Auth.
"Ember auth couldn’t be any easier!"                                -You, probably.
ember install ember-simple-auth-devise-token-auth
If you’re not already familiar with setting up Ember Simple Auth, it’s recommended that you take a moment to brush up on it since that library is what does all the heavy lifting. Luckily, it’s amazing and setting up is indeed quite simple.
Now, this is going to be super easy and boils down to two quick steps:
DeviseTokenAuthAuthenticator in your own app/authenticators/my-arbitrarily-named-authenticator.jsDataAdapterMixin into your Ember Data adapter.Note: Since authorizers are deprecated in Ember Simple Auth, ember-simple-auth-devise-token-auth does not provide any authorizers. (This is not to be confused with authenticators). The authorization takes place via the Ember Data adapter mixin.
ember-simple-auth-devise-token-auth ships with sensible defaults and should be ready to use out of the box.
// app/authenticators/devise-token-auth.js
import DeviseTokenAuthAuthenticator from 'ember-simple-auth-devise-token-auth/authenticators/devise-token-auth';
export default DeviseTokenAuthAuthenticator.extend({
});
// app/adapters/application.js
import DS from 'ember-data';
import DataAdapterMixin from 'ember-simple-auth-devise-token-auth/mixins/data-adapter-mixin';
export default DS.JSONAPIAdapter.extend(DataAdapterMixin, {
});
ember-simple-auth-devise-token-auth allow you to customize your setup to give you flexibility.
The configurable values for the authenticator and their corresponding defaults are shown below. These default values match up with the defaults provided by Devise Token Auth:
authHost: /authidentificationAttributeName: emailserverTokenEndpoint: /sign_ininvalidateEndpoint: /sign_outvalidateTokenEndpoint: /validate_tokenFor example, let’s say the host of your JSON API isn’t the same as the host of your Ember SPA. Further, let’s say you’ve customized the Devise Token Auth endpoints in your Rails app and have decided to have your users sign in using a username instead of an email.
Your authenticator may look something like this then:
// app/authenticators/devise-token-auth.js
import DeviseTokenAuthAuthenticator from 'ember-simple-auth-devise-token-auth/authenticators/devise-token-auth';
export default DeviseTokenAuthAuthenticator.extend({
authHost: 'http://localhost:3000/auth',
serverTokenEndpoint: '/login',
invalidateEndpoint: '/logout',
validateTokenEndpoint: '/validate-token',
identificationAttributeName: 'username',
});
See the Contributing guide for details.
This project is licensed under the MIT License.
FAQs
Authenticator and Ember Data adapter mixin for integrating Ember Simple Auth with Devise Token Auth
The npm package ember-simple-auth-devise-token-auth receives a total of 1 weekly downloads. As such, ember-simple-auth-devise-token-auth popularity was classified as not popular.
We found that ember-simple-auth-devise-token-auth demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.

Security News
New DoS and source code exposure bugs in React Server Components and Next.js: what’s affected and how to update safely.

Security News
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.