I have to write an api for authenticating the user based on a unique token generated by our user access management providers.
The process it that we have applications developed in php which manages authenticating the user with Username and password. On that php application we have links for other .net and java applications . When the link is clicked , the 3rd party user access management is contacted which in turn gives a unique token something like a guid which is passed as a query string parameter to the .net application. In our .net application is was developed way too old in 2008 it uses a vb script to authenticate that unique token against the 3rd party user management application.
I have done a lot of research and was trying to write a asp.net MVC4 Web Api to get rid of the vb script and make it extendable. Please let me know if my approach is right or what should be used to accomplish the below requirements
- Api should be able to serve any number of application links provided on the main PHP application.
- the other applications using this api for authenticating the token would be in java and .net.
- am I right in choosing mvc4 web api to accomplish the same
- If yes then what type of authentication should be used (Basic, Forms, etc)
- Is there any sample code to have a look because I have found many examples which are not that relevant to my scenario.
These java and .net applications should just authenticate based on the unique token which is passed on from the php application.