Browsed by
Category: Tools

How to Implement JWT Token Based Authentication in Spring Boot Microservices

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 applications, angular/react/vue in modern application world) and server side applications. Though process for Token Based Authentication Spring security is needed…

Read More Read More

584 total views, 3 views today

How to change Global Access Control from Google login to jenkins login ?

How to change Global Access Control from Google login to jenkins login ?

How to change Global Access Control from Google login to jenkins login ? Google login is really helpful to control the jenkins access to specific domain users with secured way. But the problem is if you have not configured your google login properly in jenkins > configure global access > google login, then you will face a login problem. In this case, you will not be able to login to your jenkins dashboard using both “jenkins own database” as well…

Read More Read More

318 total views, no views today

RabbitMq Tutorials

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 ? 1.1 RabbitMQ – Docker pull: docker pull rabbitmq 1.2 RabbiMQ – Docker Run: sudo docker run –restart=always -e RABBITMQ_DEFAULT_USER=’rabbitadmin’ -e…

Read More Read More

428 total views, no views today

How to update jenkins in docker container

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 360 total views, 2 views today

360 total views, 2 views today

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 renews all your existing letsencrypt certificates. This blog explain in detail about the letsencrypt certificate renewal process and stuffs. ./certbot-auto…

Read More Read More

892 total views, no views today

How to copy files from linux ec2 to your desktop?

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 command copies all the ec2-path folder data to your local system’s desktop location. Example: scp -i aws-pair.pem ec2-user@ec2-1-2-3-4.us-2.compute.amazonaws.com://YOUR_FOLDER/YOUR_FILE /home/mobaxterm/Desktop/  …

Read More Read More

936 total views, 5 views today

Flowable IDM default username and password

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 will be able to see the list of flowable wars deployed in the manager of apache tomcat in this url…

Read More Read More

973 total views, no views today

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 case for angular universal run, this build is created using the below commands, npm run build:prod (or) yarn run build:prod …

Read More Read More

800 total views, 4 views today

okhttpclient get/post/form requests example:

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(); System.out.println("response => "+response); } }   okhttpclient with multipart form data request example: public class App { public static void…

Read More Read More

878 total views, no views today

How to get JPA Project option in Eclipse STS ?

How to get JPA Project option in Eclipse STS ?

How to get JPA Project option in Eclipse STS ? By default JPA project option is not there when you check under New project in STS eclipse. To make it available install hibernate tools plugin(which is currently Jboss Tools)     Now you will be able to create the JPA Project,   Could not find Database perspective in your eclipse ? Then  you may not have installed the below plugin, which could have caused database perspective issue in your eclipse….

Read More Read More

1,448 total views, 4 views today