Posts

Spring boot with gradle

In this post we will discuss how to create a simple spring boot application with Gradle. what is Gradle Gradle  is a build automation system that is based upon the concepts from Apache Maven and Apache Ant. It uses  domain-specific language   Groovy , differentiating it from Apache Maven, which uses XML for its project configuration. Gradle uses directed acyclic graph to determine the task order. Several developers created Gradle and first released in 2007, and in 2013, it was  adopted by Google  as the build system for Android projects. It was designed to support multi-project builds that are expected to be quite huge. It also allows for incrementally adding to your build, because it knows which parts of your project are updated. Tasks that are dependent on updated parts are no longer re-executed. For now, the latest stable release is version 3.4, which was launched in February 2017. It supports development and subsequent deployment using Java, Scala, and Groovy, with other

OAUTH 2.0 with Spring Boot Securities

Image
In this post we will be discussing about how we implemented OAUTH 2.0 security with spring boot. We will be implementing AuthorisationServer, ResourceServer and some REST API for different crud operations and test these APIs using Postman. We will be using in-memory (H2) database to read user credentials for authentication. What is OAUTH OAuth is an open-standard authorisation protocol or framework that provides applications the ability for “secure designated access.” For example, you can tell Facebook that it’s OK for quora.com to access your profile or post updates to your timeline without having to give Quora your Facebook password. This minimises risk in a major way: In the event quora suffers a breach, your Facebook password remains safe.OAuth doesn’t share password data but instead uses authorisation tokens to prove an identity between consumers and service providers. OAuth is an authentication protocol that allows you to approve one application interacting with a