Quantcast
Channel: Ember.JS - Latest topics
Viewing all articles
Browse latest Browse all 4828

ESA - failed to implement current user

$
0
0

@belgoros wrote:

I’m trying without success to get work Implicit Grant authentication and followed the steps described in Ember Simple Auth managing current user guide. After logging I’m still redirected to the route (’/’) path and is not authenticated instead of being redirected to /dashboard. More over, I see the dashboard for a couple of seconds and then I get the route / path again. The code source is here. The backe-end in Rails has users/me route called:

Started GET "/users/me" for 127.0.0.1 at 2018-02-02 15:17:55 +0100
Processing by UsersController#me as application/vnd.api+json
  User Load (1.3ms)  SELECT  "users".* FROM "users" WHERE "users"."username" = $1 LIMIT $2  [["username", "Z28SCAMB"], ["LIMIT", 1]]
  User Load (0.4ms)  SELECT "users".* FROM "users"
[active_model_serializers] Rendered ActiveModel::Serializer::CollectionSerializer with ActiveModelSerializers::Adapter::JsonApi (0.86ms)
Completed 200 OK in 8ms (Views: 2.3ms | ActiveRecord: 1.7ms)

What am I doing wrong, please ? Should I encode the same token on the backend side as well and pass it back to Ember ? Thank you in advance.

Posts: 7

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 4828

Trending Articles