If this blog helped you in any way, please donate a dollar here

Sunday, June 22, 2014

[OFF] Shingara Dadu

When I was very young, about 6 or 7 maybe, I remember having a visitor at home. A friend of my grandfather whom I referred to as "Shingara Dadu" in Bangla. Translated to English that means, well, "Shingara"-Grandfather.

What is a "Shingara" you ask?



That is a "Shingara", or samosa, when translated to Hindi.

Does that mean he had some super "Shingara" powers? Did I bite him and come to this conclusion that his skin tastes like "Shingara"?

Apart from the fact that I was not not a cannibal (and probably am not now) let me tell you in all honesty that this nomenclature was done by me on the basis of pure love.

In my home, we had a tradition that whenever a guest would come during a Puja, we would serve them "Shingara"s and "Mishti" (Sweets). Since he would come just after a Puja, these Shingaras would be given to him. However, sometimes, he would come when none of these servings would be available. All I could offer him was some imaginary "Shingaras".

Yes, imaginary. I would cook them up and serve it to him, in my imaginary yet well stocked kitchen, which he would graciously accept. He would pretend to eat them as well, praising the fine taste and cooking prowess it had required.

He carried a walking stick with him and wore black specs with thick glasses. He was lean and tall, around 5 feet 11. He would talk slowly and softly. I remember.

One day, he died.

I was pissed off. Who would eat my "Shingaras" now? I hated him so much for that.

I realised much later what that meant. It was not his fault he did not come. His time was over. My "Shingaras" had killed him. I never give my imaginary "Shingaras" to anybody else now.

I dismantled my kitchen.

PS: I only play Kitchen Scramble now.

Thursday, June 5, 2014

Omniauth OpenAM Gem

Hello people, here's presenting a brand new gem!

For folks, who think they hit a jackpot, think ruby. Yeah, well, this is an omniauth gem for Ruby on Rails people for openam. There has been an outstanding request for this gem on the requests page and here it is:

https://github.com/rghose/omniauth-openam

You can get the full list of omniauth gems here:

https://github.com/intridea/omniauth/wiki/List-of-Strategies

For those who are still confused, omniauth is one of the marvels of ruby which provides options for authentication options to devise based on external providers. I am still a newbie here, so pardon me please.

Friday, May 30, 2014

OpenAM database connectivity with MySql


This post comes after a long time. I had been really stuck with my project in creating a Single Sign On implementation. I was working with an amazing piece of software, OpenAM, formerly OpenSSO, currently maintained by the Forgerock community. 

My setup: I used Tomcat with Mysql and OpenAM 11.0.0 running on Centos

So first things first, install mysql-connector-java for your operating system and you should get a jar file. Here is what I got on my box:

# rpm -ql mysql-connector-java | grep jar
/usr/share/java/mysql-connector-java-5.1.17.jar
/usr/share/java/mysql-connector-java.jar
Now copy this to your tomcat installation directory. At "$CATALINA_HOME/lib" and restart tomcat.

Friday, March 21, 2014

Setup gitlab with OpenAM (OpenID Connect)

OpenAM, formerly OpenSSO, is an amazing piece of offering for providing Identity Management capabilities in an organisation. So this is what I wanted to do, integrate OpenAM with Gitlab.

Like in my previous post on integrating with an OpenID provider (which is different from OpenID Connect) we follow similar steps. We are going to use OpenAM as an Openid Connect provider.

OpenID Connect protocol, finalized on 26th February, 2014 is a not a very new protocol and has existed for a long time.[1] It is OpenID protocol encapsulated in OAuth2 protocol.

Gitlab configuration: