RestTemplate with pem certificate

So knowledge about using pem certificate with RestTemplate is distracted. Steps which must be done: Add server certificate to trustStore, using keytool or portecle. When you want to use custom trusttore use this script Next configure ssl to RestTemplate. It may be done like below: @Configuration public class SSLConfiguration { @Value(“${certificate.name}”) private String name; @Bean(name … Read more

Adding basic HTTP auth to a WCF REST service

I was also interested in custom authentication in a REST HTTP WCF service and finally got it to work. That being said my code will give you a way to get it working, but I recommend reading this guide which explains everything in more depth: http://wcfsecurityguide.codeplex.com/ First, change the system.web portion of your Web.Config to … Read more

How to fetch a wordpress admin page using google apps script?

There might be an issue with Google Apps Scripts and post-ing to a URL that gives you back a redirection header. It seems like it might not be possible to follow the redirect with a post – here’s a discussion on the issue – https://issuetracker.google.com/issues/36754794 Would it be possible, if you modify your code to … Read more

API Authentication for user logged in to a Web App server

You could consider the doorkeeper gem for your API authorization. I considered it but decided against it because of complexity and lacking documentation for my use cases. Put simply I couldn’t get it working properly. There is a good article on authentication using warden without devise which should give you a good feel for the … Read more