authentication
BitBucket: Host key verification failed
The message says Host key verification failed. nothing about authentication, so you are working on the wrong field. It means that the host key of the bitbucket.org is not in your ~/.ssh/known_hosts and your client does not have any way how to verify it. It was answered many times how to workaround it, but how … Read more
Limiting user login attempts in PHP [duplicate]
I saw a creative approach to this once… For each login attempt, that fails, the lockout time increases… exponentially. attempt | lockout time ====================== 1 | 2s 2 | 4s 3 | 8s 4 | 16s 5 | 32s 6 | 64s 7 | 128s 8 | 256s 9 | 512s 10 | 1024s In … Read more
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
Adding Captcha to Symfony2 Login Page
Adding Captcha to Symfony2 Login Page I am not sure this is a great idea. But it’s doable. Where is the symfony or FOSUserBundle login form type? There is no form type for the login. The form is directly embed in the template as you can see in login.html.twig. How could you do it? You … Read more
Authenticating users using Active Directory in Client-Server Application
You do an NTLM/Kerberos/Negotiate SSPI exchange loop. There is a a full sample on MSDN for both the client and the server. To be clear: you do not use any sort of LDAP access explictily. Is the LSA (Local Security Authority) that talks with LDAP and establishes the identity of the client. If you are … 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