{"id":18305,"library":"ember-cli-simple-auth","title":"Ember CLI Simple Auth","description":"An Ember CLI addon that packages the Ember Simple Auth base library for use with Ember applications. Version 0.8.0 is deprecated and unmaintained; the project has been superseded by ember-simple-auth. It provides authentication, authorization, and session management for Ember apps. Differentiators: tight integration with Ember CLI; includes generators for custom authenticators, authorizers, session stores, and sessions; configuration via config/environment.js.","status":"deprecated","version":"0.8.0","language":"javascript","source_language":"en","source_url":"git://github.com/simplabs/ember-cli-simple-auth","tags":["javascript","ember-addon"],"install":[{"cmd":"npm install ember-cli-simple-auth","lang":"bash","label":"npm"},{"cmd":"yarn add ember-cli-simple-auth","lang":"bash","label":"yarn"},{"cmd":"pnpm add ember-cli-simple-auth","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"ES module import; the addon automatically initializes, manual import often not needed.","wrong":"const SimpleAuth = require('ember-cli-simple-auth')","symbol":"default","correct":"import SimpleAuth from 'ember-cli-simple-auth'"},{"note":"Named import from subpath is incorrect; must import base class from specific path.","wrong":"import { Authenticator } from 'ember-cli-simple-auth'","symbol":"Authenticator","correct":"import Authenticator from 'ember-cli-simple-auth/authenticators/base'"},{"note":"Same as Authenticator; import from subpath.","wrong":"import { Authorizer } from 'ember-cli-simple-auth'","symbol":"Authorizer","correct":"import Authorizer from 'ember-cli-simple-auth/authorizers/base'"},{"note":"Session base class must be imported from the sessions subpath.","wrong":"import { Session } from 'ember-cli-simple-auth'","symbol":"Session","correct":"import Session from 'ember-cli-simple-auth/sessions/base'"},{"note":"Store base class must be imported from the stores subpath.","wrong":"import { SessionStore } from 'ember-cli-simple-auth'","symbol":"SessionStore","correct":"import SessionStore from 'ember-cli-simple-auth/stores/base'"}],"quickstart":{"code":"// Install the addon\nember install ember-cli-simple-auth\n\n// Configure in config/environment.js\nmodule.exports = function(environment) {\n  var ENV = {\n    // ... other config\n    'simple-auth': {\n      routeAfterAuthentication: '/protected',\n      serverTokenEndpoint: '/api/token',\n      serverTokenRevocationEndpoint: '/api/revoke'\n    }\n  };\n  return ENV;\n};\n\n// Use the session in a route or controller\nimport Session from 'ember-cli-simple-auth/sessions/base';\n\nexport default Ember.Controller.extend({\n  session: Ember.inject.service(),\n  actions: {\n    login: function() {\n      this.get('session').authenticate('simple-auth-authenticator:oauth2-password-grant', {\n        identification: this.get('username'),\n        password: this.get('password')\n      });\n    },\n    logout: function() {\n      this.get('session').invalidate();\n    }\n  }\n});","lang":"javascript","description":"Basic installation, configuration, and usage of authentication and session management."},"warnings":[{"fix":"Replace with ember-simple-auth: remove ember-cli-simple-auth, add ember-simple-auth, update imports and configuration.","message":"This package is deprecated. Use ember-simple-auth instead.","severity":"deprecated","affected_versions":">=0.0.0"},{"fix":"Upgrade Ember CLI to at least 0.0.44.","message":"Requires at least Ember CLI 0.0.44; incompatible with older versions.","severity":"breaking","affected_versions":"<0.8.0"},{"fix":"Use `ember install ember-cli-simple-auth` for modern Ember CLI (>=0.2.3).","message":"Installation command differs based on Ember CLI version: for 0.2.2 or older use `ember install:addon`, for 0.1.4 or older use manual npm + generate.","severity":"gotcha","affected_versions":">=0.0.0"},{"fix":"Do not manually import 'ember-cli-simple-auth' in your app unless you have a specific reason.","message":"The addon automatically initializes; manual import of the main module is not required and may cause issues.","severity":"gotcha","affected_versions":">=0.0.0"}],"env_vars":null,"last_verified":"2026-04-25T00:00:00.000Z","next_check":"2026-07-24T00:00:00.000Z","problems":[{"fix":"Run `ember install ember-cli-simple-auth` to install and add to dependencies.","cause":"Package not installed or not added to package.json.","error":"Cannot find module 'ember-cli-simple-auth'"},{"fix":"Ensure you have the session service injected: session: Ember.inject.service().","cause":"Session service not injected or session property is undefined.","error":"Uncaught TypeError: Cannot read property 'authenticate' of undefined"},{"fix":"Check that the authenticator is correctly registered, e.g., `export default Ember.SimpleAuth.Authenticators.OAuth2PasswordGrant.extend(...)` or installed via addon.","cause":"Missing or misspelled authenticator name; the authenticator must be registered.","error":"Assertion Failed: Unable to find authenticator: simple-auth-authenticator:oauth2-password-grant"},{"fix":"Upgrade Ember CLI to at least 0.0.44.","cause":"Ember CLI version is too old.","error":"The `ember-cli-simple-auth` addon requires an Ember CLI version of 0.0.44 or above"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}