@Chris_Stewart wrote:
I have a rails API that uses devise with LDAP authentication. This portion of it is working fine. I am selecting to not create users on login, just authenticate with my organizations LDAP server. I hooked up ember with simple auth and thought I had it working. I have been trying to display the username of the logged in person and have not been able to do so.
I put a test on the page like this:
{{#if isAuthenticated}} Yes {{else}} NO {{/if}}
It always sets to NO which leads me to believe that I am not fully authenticating. I checked values in ember inspector of the session and this is what it shows:
So at this point I am confused on if I am authenticated or not in ember? The rails side is working fine. If I do not log in I get redirected to the login page in ember and when I authenticate I get redirected to the proper page. It does seem like it is all working.
I did have to change my devise authenticator to send a username and not email address by adding this identificationAttributeName: ‘username’.
What did I miss here? Sorry this is my first ember app. I don’t really know how to run this one down.
Posts: 1
Participants: 1