How to Implement JWT Token Based Authentication in Spring Boot Microservices

JWT (JSON Web Token) tokens are an open, industry standard RFC 7519 method for representing claims securely between two parties. It is highly recommended and used authentication method for REST API & Webservices. Today we are going to see how to implement JWT token based authentication in spring boot microservices to securely communicate and transfer the data’s between the client(any client […]

 1,372 total views,  3 views today

» Read more

RabbitMq Tutorials

RabbitMQ is publish-subscribe tool which is effectively used in microservices for their inter communications. RabbitMQ is an open-source message-broker software that originally implemented the Advanced Message Queuing Protocol and has since been extended with a plug-in architecture to support Streaming Text Oriented Messaging Protocol, Message Queuing Telemetry Transport, and other protocols. 1. How to install RabbitMQ in Docker Container ? […]

 814 total views,  3 views today

» Read more

How to update jenkins in docker container

sudo docker container exec -u 0 -it czcjenkins bash here czcjenkins is my container name. wget http://updates.jenkins-ci.org/download/war/2.176.1/jenkins.war This jenkins url can be copied from the official jenkins link or download copy save link from existing jenkins login. mv ./jenkins.war /usr/share/jenkins/ chown jenkins:jenkins /usr/share/jenkins/jenkins.war here jenkins is the user, so keep same as it is only. sudo docker restart czcjenkins  695 total […]

 695 total views

» Read more

Letsencrypt commands for beginners

letsencrypt commands for beginners

Letsencrypt commands for beginners ./certbot-auto certificates: This commands lists down all the letsencrypt certificates (both active and expired) with exact path details where the certificate exists. ./certbot-auto certonly -a standalone: This command helps to create a new ssl certificate, if you want to create for more than one domain then enter the domain names with comma. ./letsencrypt-auto renew: This command […]

 1,277 total views

» Read more

How to copy files from linux ec2 to your desktop?

How to copy files from linux ec2 to your desktop? Please install Mobaxterm software, which is available here, this software is available for both community and premium versions. You will be able to download the files from aws ec2 linux machine to your local desktop system using free community version itself. Command Syntax: scp -i DOCKER-PEM-FILE-PATH AWS-EC2-ID:/ec2-path/* /home/mobaxterm/Desktop/   This […]

 1,371 total views

» Read more

Flowable IDM default username and password

Flowable IDM default username and password Flowable is a fantastic tool for BPMN process implementations in java with spring boot frameworks.   You have to download flowable-6.4.0(latest while writing this article) and download the apache tomcat, then move all the below five war files to webapps then do tomcat restart for the deployments. flowable-admin.war flowable-idm.war flowable-modeler.war flowable-rest.war flowable-task.war Then you […]

 1,399 total views

» Read more

pm2 and forever command for beginnners

pm2 and forever command for beginnners

pm2 and forever is a tool to run the process at the background, many of the angular developers are using these tools nowadays in any linux/amazon ec2 machines for angular universal server side rendering(ssr) for seo and many other features.   Herewith I have listed the few mostly used commands: pm2 commands: pm2 start your_js_file (pm2 start local.js) in my […]

 1,147 total views

» Read more

okhttpclient get/post/form requests example:

okhttpclient get/post/form requests example: Maven dependency: <dependency> <groupId>com.squareup.okhttp3</groupId> <artifactId>okhttp</artifactId> <version>3.11.0</version> </dependency> okhttpclient with formbody example: public class App { public static void main( String[] args ) throws IOException { OkHttpClient client = new OkHttpClient(); RequestBody formBody = new FormBody.Builder() .add("client_id", "some_value") .add("client_secret", "some_value") .build(); Request request = new Request.Builder() .url("some_url") .post(formBody) .addHeader("authorization", "headers_here") .addHeader("cache-control", "no-cache") .build(); Response response = client.newCall(request).execute(); […]

 1,188 total views

» Read more
1 2 3 5