Lessons learnt: Of Spring Boot + OAuth2 + redirect URIs

TL;DR: make sure NGINX is setup correctly (proxy_set_header) before messing around with your code. Scenario: Deploying a Spring Boot micro-service behind an NGINX reverse proxy gave us issues when using default Google OAuth2 configuration as described here , basically showing the "Redirect URI Mismatch" mentioned at the very end of the linked article Trying the solution based … Continue reading Lessons learnt: Of Spring Boot + OAuth2 + redirect URIs

Advertisements

React JS : Tables in the browser

A good exersize while learning React JS was building a re-usable component that produces HTML tables given an arbitrary JSON array of objects in the form: [{'col1_name':'col1_value','col2_name':'col2_value'} , {'col1_name':'col1_value','col2_name':'col2_value'}] So a practical example of the above would be: [{'name':'dave','age':'12'},{'name':'foo','age':'19'}] With the resulting table being: Here's the reusable code (feel free to improve/include in your projects): … Continue reading React JS : Tables in the browser

Notes on Google Firebase Cloud Messaging

I'm a huge fan of Firebase, so I'm very excited that Google Cloud Messaging [GCM] has been re-branded Firebase Cloud Messaging [FCM], which can be used for cross platform messaging. It's actually very simple to set this up on Android and IOS, but what's more interesting is the web client. I was really hoping things … Continue reading Notes on Google Firebase Cloud Messaging

Integrating Twitter & Wordpress

You might have noticed a new widget on the right titled 'My Tweets'. For the web-savvy this of course shows my recent Twitter messages. For the un-initiated, Twitter is a micro-blogging service. Basically, imagine writing an sms or text from your cell phone, then sending it not to just one person, but to anyone who … Continue reading Integrating Twitter & Wordpress