Reputation: 127543
I am trying to write a custom authentication module for the Remote Desktop Gateway API. However there is no example code of how to use it on the MSDN. I also have been looking around on the net for any kind of tutorial for writing a custom authentication module, but have found none.
I have found a few high level overviews of how RD Gateway works and how to set it up, and I can get the system as a whole working using Active Directory. However, I need to replace the AD login with a custom authentication module (the reason for the API), but I have not seen a single tutorial or working example code that implements the API.
Can anyone provide some working example code that uses the RD Gateway API? I have a strong feeling that I will not find any tutorials, but just seeing someone else's example code would help immensely.
Language does not matter, but as I have learned from my other question about this API it would be better if the solution was native instead of managed, but a managed solution is fine too.
Upvotes: 3
Views: 1464
Reputation: 2887
Sample code can be found here -- http://code.msdn.microsoft.com/Remote-Desktop-Gateway-517d6273
Upvotes: 2
Reputation: 127543
I ended up not going with the custom authentication module route, we just made a new domain and added users to that new domain instead.
The closest I ever found in the way of examples was this MSDN archive titled "Remote Desktop Services Developer Resources".
There is a document named "Using the Pluggable Authentication and Authorization (PAA) Framework for RD Gateway.docx" that has some information, but no example code. You can also check the "Resource Publishing and Connection Brokering" release and it does have some example code of the other RDS modules.
Upvotes: 2