389 questions
1
vote
0
answers
20
views
Is there a way to redirect user to different login pages depending on current route prefix if session token is expired?
We use Ember Simple Auth to work with authentication in our Ember application. Currently it's Ember v4.
We have two different user types and two different route prefixes in our application for them to ...
1
vote
0
answers
251
views
How to properly restore a session on reload using ember simple auth custom authenticator's restore() function?
I have followed this YouTube tutorial on getting started with ember simple auth: https://www.youtube.com/watch?v=bSWN4_EbTPI&t=908s
I have everything working properly except for when refreshing ...
0
votes
1
answer
130
views
ember-simple-auth user stays logged in despite browser relaunch
For some reason my user is still logged in despite closing my Safari browser.
These are the versions of Ember & stuff that I'm using:
ember-cli: 3.25.3
node: 14.16.0
os: darwin x64
This is my ...
0
votes
1
answer
437
views
Error "str.replace is not a function" when using store.queryRecord with Ember Octane
I'm following an Embercasts course (Ember + Rails). For the screencasts, they used Ember 3.0, but I'm using Octane.
In one video, a custom service is implemented. This is what my version looks like:
...
0
votes
0
answers
79
views
How to plug logic into session invalidation due to cookie expiration
In my app, I want to send some request to the api on session invalidation.
I want to be able to differentiate when a user logs out (clicks on the button), and when he is automatically logged out (eg, ...
0
votes
1
answer
72
views
Ember Simple Auth Devise Authenticator Failing
I'm attempting to set up a new ember app, and I'm trying to set up ESA to integrate with devise.
I'm following the walkthrough with the exception of using the devise authenticator
@action
async ...
1
vote
3
answers
1k
views
Ember Octane How to convert custom mixins
This question is related to: Does Ember Octane Route class support using mixins? Mixins are officially deprecated in Ember Octane.
Question:
What is the best option to replace Ember mixins with and ...
0
votes
0
answers
75
views
Ember Simple Auth Change Default Store
I'm new to ember and ember-simple-auth. My app uses Pods mode. Currently I'm building a login page and want to use SessionStorageStore to store user information, so that the info stored in session ...
0
votes
0
answers
98
views
Using EmberJS and Oauth2, how can I modify the default route after invalidation?
My goal is to send the user to a different page/route other than the oauth default after invalidation. Currently the default is my root login page. How can I change this?
I have this logout code in ...
3
votes
2
answers
592
views
How to replace the authorize method in ember-simple-auth
I'm trying to refactor my Ember acceptance tests to not use the deprecated authorize method, as it is throwing a warning:
The `authorize` method should be overridden in your application adapter
I ...
1
vote
2
answers
84
views
User loading after authentication with ember simple auth
I use ember simple auth to authenticate my users.
It workls perfectly fine except when the user just logged in.
I have an helper that ask for the current user :
import Helper from '@ember/component/...
0
votes
1
answer
77
views
How to refresh token with different endpoint?
I have an Ember app in which I use ember-simple-auth for authentication. My backend is structure in a way that the endpoint for authorization is different from the endpoint for refreshing.
How can I ...
0
votes
1
answer
293
views
ember-cli-mirage trying to stub auth0 (external) URL
I am working on a new Ember.js project and using ember-cli-mirage to stub out my requests. The project is going to use ember-simple-auth and Auth0 for user authentication. I began implementing them in ...
0
votes
1
answer
182
views
ember-simple-auth + oauth2 : session lost on refresh
I read that session restore is supposed to work out of the box, but it doesn't for me, and I can't find what I did wrong.
authenticators/oauth2.js :
import OAuth2PasswordGrant from 'ember-simple-...
0
votes
1
answer
638
views
Ember-simple-auth and ember-fetch no authorization in fetch query
I am using ember with ember-simple-auth(1.7.0) for authentication. Here is the application adapter function :
authorize(xhr) {
let { email, token } = this.get('session.data.authenticated');
...
0
votes
1
answer
509
views
How to implement an Ember Simple Auth using an external redirect
Here's my workflow.
User presses a login button.
User is redirected to the API which redirects to a login page on a third party site (ADFS SAML).
User authenticates there, is returned to the API which ...
2
votes
2
answers
386
views
Ember simple auth how to update when authenticate data is avaiable
Ember app is using adfs login.
when a successful login adfs will redirect to ember web app with a route and query parameters. those query parameters contain
access_token
refresh_token
user_id
scope
...
0
votes
1
answer
246
views
Cannot access session data in Ember (JWT Token Data)
I'm using JWT authentication, using ember-simple-auth for implementing user authentication. I m providing necessary details in my project below.
When Authenticated correctly a jwt token is passing ...
0
votes
2
answers
112
views
Make nested route inside AuthenticatedRouteMixin accessible
I'd like to "free" one nested route, so that also users who are not even logged in can access this route.
For example:
posts
- /create
- /edit
- /show
On the posts route I used the ...
1
vote
1
answer
64
views
Ember simple auth tests failing intermittently
I am struggling to debug failing tests on an Ember 3.0 app. I have a login form using ember-simple-auth. The authenticate action looks like this:
let { identification, password } = this.getProperties(...
0
votes
1
answer
830
views
ember cookie vs server cookie
I am using Ember and Ember-simple-auth. This question is to clear my confusion related to cookies etc.
I have configured ember storage to Cookie.
My server is sending a cookie to be saved at client ...
0
votes
3
answers
581
views
Authentification with ember-simple-auth in before model hook
I create a app thet need to implement authentification with email/password on all pages except one page (mobile_messages), where need to authenticate with refresh token.
I extend from JWT ...
0
votes
1
answer
237
views
ember simple auth with rails devise username instead of email?
I have a rails api that I am using devise for the login routine. I hooked ember into that via ember simple auth. Got it up and running using a typical devise email and password. I typically configure ...
1
vote
1
answer
88
views
Ember-Simple-Auth customised Devise Authenticator serverTokenEndpoint defaulting to users/sign_in
Pretty much as described in the title. I have a basic Ember Simple Auth setup. With a Devise Authenticator I've setup a custom URL for the serverTokenEndpoint.
(Coffeescript)
devise = ...
4
votes
1
answer
633
views
Implementing a custom ember-simple-auth Authenticator
Firstly, I am not a seasoned JS Developer, so please excuse obvious mistakes that I could have made.
I am trying to implement a custom Authenticator for authenticating a user with Keycloak using the ...
2
votes
1
answer
886
views
ember-simple-auth session.isAuthenticated is false after refresh page
I'm using ember-simple-auth with Cookie based authentication.
When i login the {{session.isAuthenticated}} is true, but when i reload the page this is FALSE, but the localStore didn't change.
This is ...
0
votes
0
answers
66
views
Telling ember-simple-auth that the user is now invalidated/logged-out, inside a custom authenticator
From a custom authenticator; is there a way of telling ember-simple-auth that a user is now invalidated/logged-out?
Some background: I am building an authenticator with token refresh, similar to ...
2
votes
0
answers
99
views
torii facebook ember get user and name
Hi I want to get name and email from facebook authentication via torii and simple-auth, but I don't know how recovery this data. I can login via facebook but I can't get name or email.
Could you ...
0
votes
2
answers
345
views
Ember Simple Auth - Authorizer not being setup when the session is restored
The code below currently works but If I remove the line with _setup then the outgoing requests don't have the Authorization header.
It doesn't feel like I should be using the _setup function as it ...
0
votes
1
answer
44
views
Ember-simple-auth how to depend on it in an addon?
I am developing several webapps, and so, I decided to create an addon with all the ccs and bootstrap, moment and other addons to be reused.
One addon I want to use in my foundation addon is ember-...
0
votes
1
answer
243
views
Ember-simple-auth cant get currentUser after reload
I have a simple Ember app (repo) with authentication using ember-simple-auth (i followed this article https://medium.com/@benhansen/token-based-authentication-with-jwt-ember-and-rails-af54b03fe237). ...
0
votes
1
answer
439
views
'ApplicationRouteMix' is defined but never used [Ember.js]
I am creating an authentication to login to my app, but I am with these 3 problems and I do not know how to proceed, I am new to ember, I do not know much about how to fix problems, I am learning it ...
0
votes
2
answers
37
views
How to change users while preserving the store?
I want to implement a "fast login".
I'm developing an enterprise software where a lot of users work in the same organization with the same data in the same computer and I want to be able to know who ...
0
votes
1
answer
225
views
ember-simple-auth and torii firebase TypeError: Converting circular structure to JSON
I started out getting torri and emberfire to work for a login page but when I try to use that with ember simple auth I get the error:
TypeError: Converting circular structure to JSON
at JSON....
0
votes
0
answers
89
views
Google OAUTH2 no refresh_token received
I am using emberjs and i could get this response from https://www.googleapis.com/oauth2/v4/token
{
"access_token": "snip",
"token_type": "Bearer",
"expires_in": 3600,
"id_token": "snip"
}
but i ...
1
vote
1
answer
490
views
ember-cli-mirage response headers are missing from XHR object
Trying to understand the inconsistency in the response between using my api vs ember-cli-mirage.
I have a handler waiting for a response for a POST request to authenticate a user. The expected ...
-2
votes
1
answer
856
views
How to Update JWT token from response header in ember-simple-auth session
I am using ember-simple-auth & ember-simple-auth-token to maintain session on Ember. I do not want to use the refresh-token approach, instead would like to receive a new jwt token in the response ...
5
votes
2
answers
793
views
Managing user roles in emberjs?
I have a nodejs api as shown below
route.post("/token",function(req,res){
authLib
.checkForm(req.body)
.then(authLib.findUser)
.then(authLib.isValidUser)
.then(...
1
vote
1
answer
82
views
Ember-simple-Auth addon throws error
I just installed ember-simple-auth (version 1.3.0) in my application. Before insalling addon, the application is working fine but after installing it throws the following error:
Uncaught TypeError: (...
0
votes
1
answer
332
views
rename `key` to `access_token` in django-rest-auth?
My django-rest-auth on authentication sends the following response
{"key":"XXXXXXXXXXXXXX"}
Now i am using ember-simple-auth specifically oauth2-password-grant for authentication which expects ...
0
votes
1
answer
85
views
Strange deprecation in ember-simple-auth
I am using ember-simple-auth,
and recently I have started receiving this deprecation [deprecation id: ember-simple-auth.configuration.routes] in my tests
I have such options in config
'ember-simple-...
1
vote
0
answers
127
views
ember-simple-auth: only validate the password without logging in
Is it possible to only check the password with ember-simple-auth? I want the user to re-enter their password if they want to delete their account. Can this password check be done without touching the ...
4
votes
1
answer
330
views
EmberJS: When should I use the Torii vs Ember-Simple-Auth?
I'm trying to learn authentication for a web app that I'm writing. All I want is a login and password, and to make sure the user can't write/edit each others posts unless they are logged in.
I'm not ...
0
votes
1
answer
461
views
How get token from ember-simple-auth-token to use with Websocket?
In my implementation below I try get the token from ember-simple-auth-token and use with a URL, used to connect with ActionCable:
...
export default Route.extend({
store: service(),
currentUser:...
3
votes
1
answer
399
views
ember-simple-auth, acceptance tests and waiting for async actions
Struggling with acceptance tests. Started with basic login test:
import { test } from 'qunit';
import moduleForAcceptance from 'static/tests/helpers/module-for-acceptance';
moduleForAcceptance('...
0
votes
1
answer
435
views
Ember fails to create an instance of 'authorizer:token' using ember-simple-auth and ember-simple-auth-token
I'm trying to implement JWT authentication into my Ember application using the ember-simple-auth and ember-simple-auth-token modules by following their README files on GitHub. I got the authentication ...
0
votes
1
answer
128
views
Multiple ember apps with one login app
I have multiple ember apps, but just one of them has the login page. I want to authenticate all of them with this unique page. How can I redirect other apps to an external login page using ember-...
0
votes
1
answer
123
views
using ember-simple-auth to connect to Social Networks after logging in
We have our own Ember to Api login working, using ember-simple-auth, and jwt. In addition, we also want to connect to Facebook and additional third party social networks.
We are able to connect and ...
0
votes
1
answer
94
views
Multiple auth providers at the same time using ember-simple-auth
Is it possible to use ember-simple-auth with multiple auth providers at the same time? For example, in my website I want to call few google analytic APIs using google's JWT auth token and other APIs ...
0
votes
1
answer
664
views
Using custom authenticator with ember-simple-auth and promises returning undefined for resolve
I am using Ember.js and ember-simple-auth.
I have a custom authenticator named apps\authenticators\jwt.js with a method called authenticate:
authenticate(credentials) {
const { identification, ...