I have a REST service built with Delphi XE7 and the MVC Framework (so no datasnap is being used). The frontend is build with angular, but thats not relevant for the topic.
Now I have the requirement to authorize the users via Kerberos authentication. When run from the same domain, the user should be logged inside the web application automatically - in that case its a single sign on-, and when called outside the domain, a username/password window should pop up where the user can logon with his windows credentials.
In .Net thats just 4 lines of code (actually its just settings that need to be set) but in delphi I struggle to perform this action. I searched a lot and found this Kerberos ticket with delphi where it says that I should implement the InitializeSecurityContext function from windows. I found couple other answers that point in that direction and some of them also say that I need to rebuild a the whole NTLM authentication bcz there is no such thing out of the box for delphi. But since I am not that familiar with the windows authentication protocol, I wanted to ask whether somebody has implemented a kerberos authentication with delphi and if there is some other way to achive what I need
Regards Semir