dreamfactorysoftware / angular-sdk

An address book app for AngularJS showing user registration, user login, and CRUD
29 stars 34 forks source link

Authorization fails #7

Open ptwptw opened 8 years ago

ptwptw commented 8 years ago

Authorization fails, same error and details as for the javascript-sdk example. (Existing user details confirmed via dreamfactory interface, but rejected at login).

ajax post request to: https://.enterprise.dreamfactory.com/api/v2/user/session/

params include username and password.

There must be some extra config step required?

jstablesdf commented 8 years ago

Hi @ptwptw, what is the error returned? Be sure the user is not an admin.

ptwptw commented 8 years ago

Hi, I think I struck an issue with dreamfactory rather than your the code here. (I had a similar issue on the javascript-sdk example).

[FYI, from my post on that issue...]

The issue seems to be at the dreamfactory level: When I edit a user, and from the role tab, select the role for this app, and then click "Update" - instead of updating, the role permission reverts to its original value immediately after the "Update" button is pressed. I don't think it's changing at all. Actually, there's seems to be some sort of ongoing bug here ... try changing user roles for an app and then clicking "update". Sometimes it works, sometimes it doesn't.