Grails

OAuth 2.0 using Grails Part – 2

Obtain accessToken from refreshToken In the previous article OAuth 2.0 using Grails Part – 1 I have given a detailed explanation regarding user authentication using OAuth 2.0. In this article i will explain how you can obtain access_token from the refresh_token. Please refer to step(3) of part – 1 of this article where we obtained […]

pulkit
pulkit
Read

Grails

Managing parallel versions of multiple Grails SDK(Software Development Kits) on Unix based systems by GVM

Sometimes we face a problem with our grails system, means we have many applications to work with which are built using different grails versions. So switching between grails version is a terrible task, like switching symbolic links or changing GRAILS_HOME environment variable each time when we run our different application.   How can we solve […]

Grails

How to validate XML file against XSD schema and list all validation errors

Recently in my project, I had a requirement to validate XML file against XSD schema file and list all validation errors. XSD (XML Schema Definition) is a way to specify metadata (schema, constraints, etc) about the xml data. To validate an XML file against an XSD file, we normally do something like this: [groovy] import […]

AWSGrails

Change MySQL Timezone on Amazon RDS

Amazon RDS doesn’t allow you to change timezone, It keeps same UTC time zone across all regions. time_zone variable in the parameter group is read only. You can change the time zone on each connection or session by making a procedure in default mysql database and call this function on each init connection. 1.    Create a procedure for […]

Big DataGrails

Our Experiences of MongoDB afternoon in New Delhi and Bangalore

We at IntelliGrape are an enthusiastic lot when it comes to technology conferences and knowledge sharing sessions. So lot of us were pretty excited to hear the news about mongoDB organising conferences in Delhi and Bangalore. More so, because we are early adaptors of MongoDB. Our entire Node.JS service line uses MongoDB as preferred data-store for […]

Grails

ROME Tools –“All Feeds Lead To Rome”

In our grails application, we recently met with a requirement where we had to facilitate the application user to post his blog post url in our application. The application then had to fetch the blog post’s content and the fetched content had to be displayed in our application. The other part of this requirement was […]

Grails

Receive Email using SubEthaSMTP (The local SMTP server).

In my Grails app, I came across a requirement of setting up an SMTP server for receiving mails and extracting their content. After exploring a lot I found SubEthaSMTP to be the most suitable. SubEthaSMTP lets your application receive an SMTP mail very easily. To setup an SMTP server in your application, You need to […]

Grails

Generate Excel Sheet with Formula embedded in it

Recently in our application, we needed to generate an excel sheet where some of the values for the column needed to be calculated on the basis of values of other columns depending upon an embedded formula in the excel sheet. To work with excel file we need the following in your BuildConfig.groovy: [java] dependencies{ compile […]

Grails

OAuth 2.0 using Grails Part – 1

Following steps need to be followed for OAuth 2.0 authentication : (1) Obtain OAuth 2.0 credentials from the Google Developers Console: First you need to have a google account. create a project at Google Developers Console after logging into your Google account. Click on the project name go to “APIs and auth” click on credentianls […]

pulkit
pulkit
Read
Services