Questions tagged [ember-simple-auth]

Ember Simple Auth is a lightweight library for implementing authentication/authorization with Ember.js applications. It has minimal requirements with respect to the application structure, routes etc. With its pluggable strategies it can support all kinds of authentication and authorization mechanisms.

What does it do?

  • it manages a client side session and synchronizes that across tabs/ windows
  • it authenticates users against the application's own server, external providers like Facebook etc.
  • it authorizes requests to the backend server
  • it is easily customizable and extensible

This is only a very brief overview of Ember Simple Auth's features. More detailed docs can be found in the following,

388 questions
0
votes
2 answers

ReferenceError: parameters is not defined in Ember.js

App.StaticConfig = Ember.Object.extend({ URL: null, parameters: null, consumerSecret: null, encodedSignature: null, callback: null, }); var staticConfig = App.StaticConfig.create({ URL:…
Sohaib Ahmed
  • 31
  • 1
  • 6
0
votes
0 answers

Ember.js Authorizaton header and oauth_signature

How I can generate the oauth_signature and oauth_nonce in ember.js? How I can pass Authorization Header in Ember.js? App.TwitterController = Ember.ObjectController.extend({ actions: { URL : '…
Sohaib Ahmed
  • 31
  • 1
  • 6
0
votes
1 answer

Installing addon in ember-cli

I am trying to install ember-simple-auth in ember CLI, but something is wrong. I have created a new ember CLI project, and run the following to install ember-simple-auth. npm install --save-dev ember-cli-simple-auth ember generate…
aquavitae
  • 17,414
  • 11
  • 63
  • 106
0
votes
1 answer

How to add client side validation to ember-simple-auth

I implemented ember-simple-auth to my project but I didn't find any info how to add client side validation to it. By default it pass all requests to backend. In sessionAuthenticationFailed function I can handle all errors from backend but how I can…
0
votes
1 answer

How to add authentication token as header in subsequent request in ember-simple-auth?

I am using simple-auth for authentication in my project. I am doing simple username/password authentication. I have created custom authenticator which makes AJAX call to server which returns token. My question is how do I add this token as request…
Tushar Patel
  • 365
  • 3
  • 16
0
votes
1 answer

ember-cli custom authenticator simple auth session authentication failed

What do I need to add to the code to initiate the sessionAuthenticationFailed(error). Right now it works when I have a successful login but I would like it also to show a message when when an incorrect username and/or password is entered. here is…
user3813559
  • 123
  • 3
  • 14
0
votes
0 answers

SimpleAuth on refresh lose User object

When authenticating with correct username/password with oauth2 authorize it successfully authenticate. But when refreshing the page with authenticate is true the user object is lost. I am using ember-cli. Here are all the related code for…
Pranaya Behera
  • 545
  • 1
  • 9
  • 24
0
votes
1 answer

Ember:SimpleAuth is undefined using ember-simple-auth

I am a newbie to JaveScript and HTML. Looking at an existing code and struggling with below from quite some time now. Below is the console output. Getting the Uncaught error at below line in my code. App.CustomAuthenticator =…
learner
  • 21
  • 5
0
votes
1 answer

Ember: call method on mixin from controller

I'm trying to call the authenticate method in Simple Auth's login-controller-mixin. Here's my controller: ApplicationController = Ember.Controller.extend( LoginControllerMixin, authenticator: 'simple-auth-authenticator:devise' actions: …
niftygrifty
  • 3,452
  • 2
  • 28
  • 49
0
votes
0 answers

Simple-Auth: Trouble getting started

I am having trouble following SimpLabs' starting guide for ember-simple-auth. Following the guides on the home page, word for word, does not work. When I test my login form, the "authenticate" action goes up to the controller and…
Grapho
  • 1,654
  • 15
  • 33
0
votes
1 answer

Ember SimpleAuth isAuthorised on itemController

In my app I need users to be given access to organisations according to a many-to-many relationship like this: App.User = DS.Model.extend({ fullname: DS.attr('string'), password: DS.attr('string'), administrator: DS.attr('boolean'), …
Graeme Stuart
  • 5,837
  • 2
  • 26
  • 46
0
votes
1 answer

Ember simple auth invalidateSession from own controller

At the moment i'm facing the problem that I need to use the invalidateSession() action from ember-simple-auth (https://github.com/simplabs/ember-simple-auth/) in one of my own controllers. I normally use it like they do in their examples: {{ action…
DominikAngerer
  • 6,354
  • 5
  • 33
  • 60
0
votes
1 answer

Custom Session interfering with acceptance tests

I am using ember-cli-simple-auth and ember-cli-simple-auth-devise in an ember-cli project. I'm also customizing simple-auth's Session via an initializer: // app/initializers/custom-session.js import Ember from 'ember'; import Session from…
Sam Selikoff
  • 12,366
  • 13
  • 58
  • 104
0
votes
1 answer

Ember SimpleAuth authenticate access to protected resources

I have an app where users can edit organisations in various 'pages'. App.Router.map(function() { this.resource('organisation', {path: '/:orgname'}, function () { this.route('foo'); this.route('bar'); }); }); I want users to be able to…
Graeme Stuart
  • 5,837
  • 2
  • 26
  • 46
0
votes
1 answer

how to use ember-simple-oauth2 authenticate from imy CustomAuthenticator

I am able to successfully authenticate using my own customAuthenticator. I need to use a customAuthenticator as the authenticating back end server requires the request header to have the client_id and client_secret. Something like this. headers:…
user3630294
  • 51
  • 1
  • 8
1 2 3
25
26