

11
Jul, 17
Authy Two Factor Authentication in Grails with spring security core Part-3 (2FA by Phone Call)
Twilio Authy – 2FA by Phone Call Hi, welcome back. 🙂 This blog is a part of a blog series on Authy. I suggest you go through previous blogs of the series. * Authy Two Factor Authentication in Grails with spring security core Part-1 (Configuration) * Authy Two...

10
Jul, 17
Authy Two Factor Authentication in grails with spring security core Part-2 (2FA by SMS)
Twilio Authy – 2FA by SMS 2FA Two-factor authentication also known as 2FA is a method in which user needs to pass through two authentication factor to access their account. In this blog, we will see how to achieve 2FA using Authy in a grails application which is...

10
Jul, 17
Authy Two Factor Authentication in grails with spring security core Part-1 (Configuration)
Twilio Authy Configuration in Grails/Gradle application I am going to start a blog series on Authy (Best Rated 2FA (Two-Factor Authentication) App) using Twilio (Build software that communicates with everyone in the world). But before this, let’s see how to...

6
Jul, 17
Google API with Grails
Creating a Google API Console project and client ID Before you can integrate Google Sign-In into your website, you must have a Google API Console project. In the project, you create a client ID, which you need to call the sign-in API. To create a Google...

5
Jul, 17
SEO – Search Engine Optimization Technique using Google
Step 1 – Go to Google Search Console Web master (url is available in screen-shot). Step 2 – Verify your Property from your DNS provider. Step 3 – Follow the step that are given in Message  Step 4 – Edit your robots.txt from your hosting server....

4
Jul, 17
Facebook SDK in Grails 3 (3.2.9)
Facebook SDK : no more 0Auth remote database…no more sign up form…use Facebook for sign up… use own database to validate users…no more third party database… short coding ( need only 2 JavaScript – sdk.js and facebook.js ) Fast...

13
May, 17
How to implement Websocket and make a MQTT connection using Grails 3
Websocket or socket is a computer communication protocol, providing full-duplex communication channels over a single TCP connection and MQTT is a lightweight messaging protocol for small sensors and mobile devices. To make a socket connection in Grails...

23
Aug, 16
Connect with gmail store via imap using Oauth2
In my recent project I need to access the email from gmail inbox. I implemented the functionality but there is an issue when I implemented this, the issue is that user has to enable the less secure sign-in technology if they want that app should read the...

16
Aug, 16
Update the trigger of quartz job at Runtime
Recently I was in a scenario where I need to update job data map of the quartz job trigger at runtime, After a little bit research and exploring the API for quartz 2.2.1, I found the required solution. Firstly I have created the cron trigger, where I have set the...

30
Jun, 16
Geofencing
Geofencing is actually a process of creating/defining geofence on the maps. It can be either circle,rectangle or n-sided polygon shaped. Geofence is nothing but a virtual boundary that is drawn on map. Geofence have many applications like: If a vehicle moves out of a...

24
May, 16
Spring annotation in Grails 3
I was recently working on a grails project and found that it is possible to read the configuration/properties defined in application.yml using spring annotation in Grails 3. Its possible in Grails 3 because it uses Spring boot under the hood. Here is an example:...

12
Mar, 16
CSS Wildcard characters
Hello Everyone! Recently, I was working on a UI task and I had to give CSS styling to a div on the basis of ID. The div was being generated dynamically(with dynamic ID/class) using jquery mobile. I observed that the ID contained some identifiable pattern(along with...

28
Jan, 16
Change Mysql password.
We all have worked in Mysql with the default username ‘root’ and password ‘root’ but we should not keep our Mysql password to default as its insecure. I am here with a blog which helps you change the password of Mysql with minimal...

13
Jan, 16
Observer Design pattern
Hello folks, This post is all about to the Observer Design pattern. There is common occurring problem where we need to define ” a one-to-many dependency between objects so that when one object changes state, all its dependents are notified and updated...

5
Jan, 16
Handle session timeout in Ajax request
Recently, I was working on a grails application in which I wanted to handle session timeout when ajax request was fired. When session expires in case of normal request, the browser redirects to login page which is handled by spring security. In case of...

5
Jan, 16
Hibernate OneToMany Bidirectional relationship mapping.
Hello folks. In this post we are going to discuss about Hibernate OneToMany bidirectional relationship mapping using annotations metadata. In general all we know any an artist can have many albums. Lets consider this use case and try to implement Hibernate OneToMany...

17
Oct, 15
Test forward method of Controller
This blogpost titled “Test forward method of Controller” explains the technique that can be used to test forward method of controller. Recently, I was writing test cases in grails to test an action : [php] def performAction() { forward(controller:...

15
Sep, 15
Nginx selective forwarding to tomcat
Nginx selective forwarding I encountered a situation today where Nginx had to forward all requests to tomcat except couple of URL’s which will be served by static content located inside Nginx root folder. This is what I did: [php] server { server_name...

30
Aug, 15
Working with Stripe in Grails
In a recent project, I got a requirement to integrate a Payment gateway. I choose Stripe as it is PCI Level 1 complaint which is the most stringent level of all 4. Following are the steps to integrate stripe in Grails. Create an Account on Stripe. Goto Account...
Recent Comments