Friday, November 02, 2018

Deep linking in mod_auth_openidc to Keycloaks' brokered IDP

Deep linking or using a static link to initiated SSO from application protected by mod_auth_openidc to the SAML/OIDC identity provider brokered by Keycloak.

#SSO flow
IDP -> Keycloak -> Apache + mod_auth_openidc reverse proxy -> App

Use the URL configured in OIDC callback for mod_auth_openidc "OIDCRedirectURI"
If OIDCRedirectURI = http://app.domain.com/app1/callback
App URL  = http://app.domain.com/app1/landing
Keycloak OIDC Issuer =   http://keycloak.domain.com/auth/realms/testrealm
Keycloak configured Identity Provider Alias = myidpalias

#Link
http://app.domain.com/app1/callback?target_link_uri=http%3A//app.domain.com/app1/landing&iss=http://keycloak.domain.com/auth/realms/testrealm&auth_request_params=kc_idp_hint%3Dmyidpalias

So the format is
 ?target_link_uri=&iss=&auth_request_params=kc_idp_hint%3D

Reference : https://github.com/zmartzone/mod_auth_openidc/wiki#13-how-can-i-add-custom-parameters-to-the-authorization-request (Topic 13 c)

Friday, April 20, 2018

Sakalima (Sampai Lima)

Lagu bahasa Amis (Asli Taiwan) - Sakalim (sampai lima)

Arey owak'owak owaken ko^pah namo
Arey owak'owak owaken ko^pah namo

Pasifana'en kami to suwal no pangcah
O saasip konga'ay Malasang to ci akong
Morarawto ko mata

Ccay tosa tolo spat sakalima (satu dua tiga empat sampai lima/isa dalawa tatlo apat hanggang lima)
Limaay ko tarodo' ako (hanya lima jari pada aku??)
Hy a ya ya yae

Arey owak'owak owaken ko^pah namo
Arey owak'owak owaken ko^pah namo

Pasifana'en kami to suwal no pangcah
O saasip konga'ay Malasang aca ci akong
Morarawto misaasip

Ccay tosa tolo spat sakalima
Limaay ko tarodo' ako
Hy a ye ye ye

Si Jantung Hati

Si Jantung Hati - Cover versi Khalifah





Badanku kurus bukannya kurang makan
Mataku merah bukannya kurang tidur
Sedih hatiku kerana si jantung Hati
(si jantung hati, si jantung Hati, si jantung hati)
Oh si jantung hati
Minggu yang lalu si dia telah kembali
Hatiku rindu padanya setengah mati
Pengalamanku dengannya si Jantung hati
(si jantung hati, si Jantung hati, si jantung hati)
Oh si jantung hati

Engkau berjanji hanya aku yang kau nanti
Waktu ku pergi kau suntingkan
Bunga melati
Tapi kini semuanya hanya mimpi
Aku menyanyi sendiri (menyanyi
Sendiri) menghibur hati
(Menghibur hati)

Aku tak mahu terluka kedua kali
Kisah cintaku dengannya si
Jantung hati (si jantung hati, si
Jantung hati, si jantung hati)
Oh si jantung hati
Engkau berjanji hanya aku yang kau nanti
Waktu ku pergi kau suntingkan, bunga melati
Tapi kini semuanya hanya mimpi
Aku menyanyi sendiri menghibur hati

Aku tak mahu terluka kedua kali
Kisah cintaku dengannya si
Jantung hati (si jantung hati, si
Jantung hati, si jantung hati, si
Jantung hati, si jantung hati, si
Jantung hati)
Oh si jantung hati
Oh si jantung hati
Oh si jantung hati
Oh si jantung hati
Ohhh… si jantung hati...

Tuesday, May 19, 2015

Biryani Masala

List of biryani masala I tried.
  • Everest Shahi Biryani Masala
Origin: India
Usage: Complete biryani masala mix. No salt or flavouring. One of the best mix listed here. No Chili
Suggest 6 spoons per 2 cups uncooked rice
  • Sakthi Briyani Masala
 Origin: India (Tamil Nadu)
Usage: Complete biryani masala mix. Little salt, need add for more flavour. Very very spicy!
Somehow lack of fragrant spice therefore I will mix some other biryani masala like adabi/everest to make perfect mix.
Suggest 6 spoon per 2 cups of uncooked rice
  • Adabi Briyani Powder
 
 
Origin: Malaysia
Use: Complete biryani masala mix without salt or flavouring. Little or no chili (0% spicy).
Suggest 7 spoons per 2 cups of uncooked rice.
  • MDH Hyderabadi Biryani Masala

Origin: India
Use: Not a complete masala mix. Requires further mix of spices to complete it. No chili
Suggest 1-2 spoons per 2 cups of uncooked rice.

  •  Shan Bombay Biryani
 
Origin: Pakistan
Usage: Complete biryani masala mix. Heavily salted and flavoured. Moderately spicy
Like most pakistan biryani mix (National, Shan), the variance is very little and almost all are similar in the intensity of spice, chili powder or flavouring.Usually came with 1 or 2 plums inside.
Suggested 6 spoons per 2 cups of uncooked rice 

  •  Maggi Briyani mix
 
Origin: Malaysia
Usage: Heavily artificial flavouring. Very little spice
Seriously, skip this. It's more of a chicken seasoning powder than a biryani mix.
Probably the worse mix I've come across.

Sunday, May 10, 2015

Fragrant rice Biryani

Rice
1.5 cups - Fragrant rice (Thai/Viet) & 1.7 cups of water
1/2 teaspoon - turmeric powder

Biryani mix
2.5 teaspoons - chili powder (ultra spicy level, follow with care)
6 teaspoons - biryani masala mix (see list of mix here)
1 teaspoon  - turmeric powder
1/2-1 teaspoon - chicken stock
1 pinch - pink salt
3-5 teaspoon - extra virgin olive oil




1 piece of chicken thigh or 6 piece of wings/wings drumstick , the more skin/fat the better!
1.5 cups - water

1. sauteed above biryani mix (except chicken/water) for 30sec to 1 min
2. Cook rice for 7 minutes - low heat
3. simultaneously cook above mix with chicken and water for 7 minutes
4. Place chicken piece skin side face down to ooze out every drop of delicious fat.
5. Pour rice onto mix and cook on low heat for another 21-23 minutes.
6. Leave for 5 minutes then mix up rice and serve

Friday, October 24, 2014

Office 365 custom http request headers

x-ms-client-user-agent

Outlook
Microsoft Office/15.0 (Windows NT 6.1; Microsoft Outlook 15.0.4569; Pro)
Thunderbird
-
Android
"brand""model"/"android version"
iPhone
Apple-iPhone6C2/1202.411
iPad
Apple-iPad2C5/1201.405
Lync Mobile App
Lync Mobile