AD Authentication and auto login #7336
I have seen many post about this subject most of them are very old but there is no clear answer or sample.
We have a ABP zero project running in our network (v7 Core/Angular). We want users to auto login in our application (not entering username and password). Such a simple wish :-)
How do we accomplish that (without using ADFS)? Are there working samples out there?
Unfortunately, there is no sample for this. But, you can try to do something like this:
- When user opens the login page, you can send a request to server app (you need to create a new endpoint for this).
- On this server-side endpoint, you need to get username of the windows user. I assume all users are using Windows.
- Then, you need to automatically login the user using LDAP authentication.
- After all, you can return a token to Angular client app, so Angular app can use this token for futher requests (This is tone automatically).