I recently have to build a little contact form that will post to an API. The application will need to firstly authenticate to the API with OAuth to get a token. It then uses that token to post the form to the API. The token will be valid for a number of seconds defined in the … [Read more…]
When my team and I upgraded one of the projects from MVC 4 to MVC 5, we encountered an issue where users get redirected to the default log in URL Account/Login which is different to the one specified in the web.config in the authentication section.
<forms loginUrl="~/Account/Security/Login" timeout="2880" />
After a bit of research on the Internet, I found that … [Read more…]